diff --git a/.gitignore b/.gitignore index 8c44b1c6..838faddd 100644 --- a/.gitignore +++ b/.gitignore @@ -13,10 +13,8 @@ /test-driver /*.pro.user* /doxygen-doc/ -/kat-0.2.1/ /.metadata/ /*.tar.gz -/kat-0.3.3/ /config.h config.h.in configure @@ -24,12 +22,10 @@ configure Makefile.in /*.log /*.scan -/kat-1.0.3/ /build-aux/ -/kat-1.0.4/ /*.layout /nbproject/ -/kat-1.0.6/ +/kat-*/ /libtool /kat /gcp/ @@ -41,7 +37,5 @@ Makefile.in /.libs/ *.hpp *.Makefile.am.swp -!/src/filter_sequence.hpp -!/src/filter_kmer.hpp -!/src/filter.hpp -!/src/inc/distance_metrics.hpp \ No newline at end of file +*.pc +*.la diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..704f34c7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,41 @@ +language: cpp + +matrix: + include: + - os: linux + sudo: required + compiler: gcc + env: PLOT=none + - os: linux + sudo: required + compiler: gcc + env: PLOT=python + - os: linux + sudo: required + compiler: gcc + env: PLOT=gnuplot + - os: linux + sudo: required + compiler: gcc + env: COMPILER=GCC5 PLOT=python + - os: osx + compiler: clang + +# Setup compiler +before_install: +- ./.travis/before_install.sh + +# Install dependencies: (Boost and python, and setup KAT) +install: +- ./.travis/install.sh + +# Build KAT +- ./autogen.sh + +# Make sure python's available at runtime (if necessary) and then build KAT and run tests +script: +- if [[ "$PLOT" == "python" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test-environment && export LD_LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib:$LD_LIBRARY_PATH"; fi +- ./configure --disable-silent-rules && make && make check && make distcheck + + + diff --git a/.travis/before_install.sh b/.travis/before_install.sh new file mode 100755 index 00000000..a2fdd255 --- /dev/null +++ b/.travis/before_install.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + brew update +else + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + sudo apt-get update -qq + if [ "$COMPILER" == "GCC5" ]; then + sudo apt-get install -qq g++-5 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100 + export CXX="g++-5" + export CC="gcc-5" + else + sudo apt-get install -qq g++-4.9 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 100 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 100 + export CXX="g++-4.9" + export CC="gcc-4.9" + fi + gcc --version +fi diff --git a/.travis/install.sh b/.travis/install.sh new file mode 100755 index 00000000..38e2934b --- /dev/null +++ b/.travis/install.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + + # Install boost -- looks like boost 1.55.0_2 is already installed with brew + #brew install boost + + + # install anaconda + wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; + bash miniconda.sh -b -p $HOME/miniconda; + export PATH="$HOME/miniconda/bin:$PATH"; + hash -r; + conda config --set always_yes yes --set changeps1 no; + conda update -q conda; + conda info -a + conda create -q -n test-environment python=3.5 anaconda; + +else + + # Boost installation + wget -q http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download + mv download boost.tar.gz + tar -xf boost.tar.gz + cd boost_1_59_0 + sudo ./bootstrap.sh --with-libraries=chrono,timer,program_options,filesystem,system + if [[ "$COMPILER" == "GCC5" ]]; then + sudo ./b2 -d0 --toolset=gcc-5 install; + else + sudo ./b2 -d0 --toolset=gcc-4.9 install; + fi + cd .. + + + # Plotting installation + if [[ "$PLOT" == "python" ]]; then + wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; + bash miniconda.sh -b -p $HOME/miniconda; + export PATH="$HOME/miniconda/bin:$PATH"; + hash -r; + conda config --set always_yes yes --set changeps1 no; + conda update -q conda; + conda info -a + conda create -q -n test-environment python=3.5 anaconda; + elif [ "$PLOT" == "gnuplot" ]; then + sudo apt-get install gnuplot + gnuplot --version; + fi + +fi + diff --git a/AUTHORS b/AUTHORS index 9fea661d..f3d75ae6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,6 +1,6 @@ -Bernardo Clavijo -Daniel Mapleson -Darren Heavens -Sarah Ayling -Mario Caccamo -George Kettleborough +Daniel Mapleson (The software architect and developer) +Gonzalo Garcia (KAT superuser and primary tester) +George Kettleborough (For the recent python plotting functionality) +Jon Wright (KAT superuser and documentation writer) +Bernardo Clavijo (KAT's godfather, evangelist and all-round k-mer guru) + diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index f9b1692a..00000000 --- a/ChangeLog +++ /dev/null @@ -1,69 +0,0 @@ - -KAT Changelog - - -=========================================== - -V1.0.5 - 28th April 2014 - -Removed call to auto configure when running the autogen.sh script. - -Fixed issue where title could not be overriden by the user in the plotting -tools. - -Changed short option name for the "list" option in spectra-mx plot tool to -'c'. This is to avoid a conflict with the "title" option. - -Provided a more descriptive error message if the user enters a malformed -value for the "list" option in the spectra-mx tool. - -Removed call to set the size ratio to 1 in the spectra-mx tool - -=========================================== - -V1.0.4 (internal release) - 1st April 2014 - -Dropped autoconf version to 2.59 to allow KAT to run in more environments. - -Changed floats to doubles in sect. Previously, we may have got imprecise -mean coverage estimates when using really big sequences, such as whole -chromosome length. - -Fixed spectra-cn issue, where we were not including all high copy kmers in a -final band of the spectra-cn plot. - -=========================================== - -V1.0.3 - 28th November 2013 - -Fixed an overflow bug with SECT, where sequences of over 64K in length, were -not handled correctly. - -Fixed an issue with the gnuplot handler, which prevented compilation on Mac - -Added and fixed unit tests. Unit tests can now be run by typing "make check" -assuming the boost unit test framework is installed. - -Overhauled build system. Added more dependency checks. Added ability to -access dependencies in non-standard locations. Removed auto-generated files -from repository (configure script can be regenerated with "autogen.sh") - -=========================================== - -V1.0.2 - 8th October 2013 - -Fix to installation procedure when cloning a fresh repository. - - Modified compiler options so that -all-static is off - - Added Makefile.in to git repo - - Modified README to emphasise that only 1.1.10 works with this version. - -Fix to spectra-hist so that x-max can be properly adjusted when logscale is on - -=========================================== - -V1.0.1 - 3rd October 2013 - -Initial Release of KAT. - -=========================================== - diff --git a/INSTALL b/INSTALL deleted file mode 100644 index 5bbea6f2..00000000 --- a/INSTALL +++ /dev/null @@ -1,385 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation, -Inc. - - Copying and distribution of this file, with or without modification, -are permitted in any medium without royalty provided the copyright -notice and this notice are preserved. This file is offered as-is, -without warranty of any kind. - -Basic Installation -================== - - Briefly, the shell commands `./configure; make; make install' should -configure, build, and install this package. The following -more-detailed instructions are mostly generic; see the `README' file for -instructions specific to this package. Some packages provide this -`INSTALL' file but do not implement all of the features documented -below. The lack of an optional feature in a given package is not -necessarily a bug. More recommendations for GNU packages can be found -in *note Makefile Conventions: (standards)Makefile Conventions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. Caching is -disabled by default to prevent problems with accidental use of stale -cache files. - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You need `configure.ac' if -you want to change it or regenerate `configure' using a newer version -of `autoconf'. - - The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. - - Running `configure' might take a while. While running, it prints - some messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package, generally using the just-built uninstalled binaries. - KAT requires boost to be installed and available for unit testing. - - 4. Type `make install' to install the programs and any data files and - documentation. When installing into a prefix owned by root, it is - recommended that the package be configured and built as a regular - user, and only the `make install' phase executed with root - privileges. - - 5. Optionally, type `make installcheck' to repeat any self-tests, but - this time using the binaries in their final installed location. - This target does not install anything. Running this target as a - regular user, particularly if the prior `make install' required - root privileges, verifies that the installation completed - correctly. - - 6. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - - 7. Often, you can also type `make uninstall' to remove the installed - files again. In practice, not all packages have tested that - uninstallation works correctly, even though it is required by the - GNU Coding Standards. - - 8. Some packages, particularly those that use Automake, provide `make - distcheck', which can by used by developers to test that all other - targets like `make install' and `make uninstall' work correctly. - This target is generally not run by end users. - - 9. In case you would like to automatically generate code documentation - this is done by typing "make doxygen-doc". Doxygen must be - installed and available for this to work. - -Compilers and Options -===================== - - Some systems require unusual options for compilation or linking that -the `configure' script does not know about. Run `./configure --help' -for details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c99 CFLAGS=-g LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - - You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you can use GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. This -is known as a "VPATH" build. - - With a non-GNU `make', it is safer to compile the package for one -architecture at a time in the source code directory. After you have -installed the package for one architecture, use `make distclean' before -reconfiguring for another architecture. - - On MacOS X 10.5 and later systems, you can create libraries and -executables that work on multiple system types--known as "fat" or -"universal" binaries--by specifying multiple `-arch' options to the -compiler but only a single `-arch' option to the preprocessor. Like -this: - - ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ - CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ - CPP="gcc -E" CXXCPP="g++ -E" - - This is not guaranteed to produce working output in all cases, you -may have to build one architecture at a time and combine the results -using the `lipo' tool if you have problems. - -Installation Names -================== - - By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX', where PREFIX must be an -absolute file name. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses -PREFIX as the prefix for installing programs and libraries. -Documentation and other data files still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. In general, the -default for these options is expressed in terms of `${prefix}', so that -specifying just `--prefix' will affect all of the other directory -specifications that were not explicitly provided. - - The most portable way to affect installation locations is to pass the -correct locations to `configure'; however, many packages provide one or -both of the following shortcuts of passing variable assignments to the -`make install' command line to change installation locations without -having to reconfigure or recompile. - - The first method involves providing an override variable for each -affected directory. For example, `make install -prefix=/alternate/directory' will choose an alternate location for all -directory configuration variables that were expressed in terms of -`${prefix}'. Any directories that were specified during `configure', -but not in terms of `${prefix}', must each be overridden at install -time for the entire installation to be relocated. The approach of -makefile variable overrides for each directory variable is required by -the GNU Coding Standards, and ideally causes no recompilation. -However, some platforms have known limitations with the semantics of -shared libraries that end up requiring recompilation when using this -method, particularly noticeable in packages that use GNU Libtool. - - The second method involves providing the `DESTDIR' variable. For -example, `make install DESTDIR=/alternate/directory' will prepend -`/alternate/directory' before all installation names. The approach of -`DESTDIR' overrides is not required by the GNU Coding Standards, and -does not work on platforms that have drive letters. On the other hand, -it does better at avoiding recompilation issues, and works well even -when some directory options were not specified in terms of `${prefix}' -at `configure' time. - -Optional Features -================= - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - - Some packages offer the ability to configure how verbose the -execution of `make' will be. For these packages, running `./configure ---enable-silent-rules' sets the default to minimal output, which can be -overridden with `make V=1'; while running `./configure ---disable-silent-rules' sets the default to verbose, which can be -overridden with `make V=0'. - -Particular systems -================== - - On HP-UX, the default C compiler is not ANSI C compatible. If GNU -CC is not installed, it is recommended to use the following options in -order to use an ANSI C compiler: - - ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" - -and if that doesn't work, install pre-built binaries of GCC for HP-UX. - - HP-UX `make' updates targets which have the same time stamps as -their prerequisites, which makes it generally unusable when shipped -generated files such as `configure' are involved. Use GNU `make' -instead. - - On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot -parse its `' header file. The option `-nodtk' can be used as -a workaround. If GNU CC is not installed, it is therefore recommended -to try - - ./configure CC="cc" - -and if that doesn't work, try - - ./configure CC="cc -nodtk" - - On Solaris, don't put `/usr/ucb' early in your `PATH'. This -directory contains several dysfunctional programs; working variants of -these programs are available in `/usr/bin'. So, if you need `/usr/ucb' -in your `PATH', put it _after_ `/usr/bin'. - - On Haiku, software installed for all users goes in `/boot/common', -not `/usr/local'. It is recommended to use the following options: - - ./configure --prefix=/boot/common - -Specifying the System Type -========================== - - There may be some features `configure' cannot figure out -automatically, but needs to determine by the type of machine the package -will run on. Usually, assuming the package is built to be run on the -_same_ architectures, `configure' can figure that out, but if it prints -a message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS - KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - - Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). - -Unfortunately, this technique does not work for `CONFIG_SHELL' due to -an Autoconf limitation. Until the limitation is lifted, you can use -this workaround: - - CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash - -`configure' Invocation -====================== - - `configure' recognizes the following options to control how it -operates. - -`--help' -`-h' - Print a summary of all of the options to `configure', and exit. - -`--help=short' -`--help=recursive' - Print a summary of the options unique to this package's - `configure', and exit. The `short' variant lists options used - only in the top level, while the `recursive' variant lists options - also present in any nested packages. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`--prefix=DIR' - Use DIR as the installation prefix. *note Installation Names:: - for more details, including other options available for fine-tuning - the installation locations. - -`--no-create' -`-n' - Run the configure checks, but stop before creating any output - files. -`--with-seqan' - For specifiying a custom directory for the seqan dependency. SeqAn - is required for kat to run correctly. -`--with-boost' - For specifying a custom directory for boost. Boost is only used - for unit test -`--with-doxygen' - For specifying a custom directory for Doxygen. Doxygen is only - required if you which to generate code documention using "make - doxygen-doc" - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. diff --git a/Makefile.am b/Makefile.am index cf61996b..f4b82b0e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,29 +2,40 @@ # Tells aclocal to put 'aclocal.m4' into the 'm4' directory ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} +# Blank man target (used in doc) +man: + cd doc && $(MAKE) $(AM_MAKEFLAGS) man +.PHONY: man + # ADDITIONAL FILES TO INSTALL -EXTRA_DIST = README.md \ - COPYING \ - AUTHORS \ - INSTALL \ - ChangeLog - +EXTRA_DIST = \ + README.md \ + COPYING \ + AUTHORS \ + NEWS + # Scripts NOT to install -dist_noinst_SCRIPTS = autogen.sh clean.sh +dist_noinst_SCRIPTS = autogen.sh antigen.sh # Scripts to install -dist_bin_SCRIPTS = scripts/dist_analysis.py \ - scripts/colormaps.py \ - scripts/density.py \ - scripts/findpeaks.py \ - scripts/header.py \ - scripts/profile.py \ - scripts/spectra-cn.py \ - scripts/spectra-hist.py \ - scripts/spectra-mx.py +dist_bin_SCRIPTS = \ + scripts/kat_distanalysis.py \ + scripts/kat_plot_misc.py \ + scripts/kat_plot_colormaps.py \ + scripts/kat_plot_density.py \ + scripts/kat_plot_profile.py \ + scripts/kat_plot_spectra-cn.py \ + scripts/kat_plot_spectra-hist.py \ + scripts/kat_plot_spectra-mx.py # SRC DIRS -SUBDIRS = deps/jellyfish-2.2.0 deps/seqan-library-2.0.0 src tests +make_dirs=deps/jellyfish-2.2.0 deps/seqan-library-2.0.0 lib src tests + +if MAKE_DOCS + make_dirs += doc +endif + +SUBDIRS = $(make_dirs) -AUTOMAKE_OPTIONS = subdir-objects +AUTOMAKE_OPTIONS = subdir-objects \ No newline at end of file diff --git a/NEWS b/NEWS new file mode 100644 index 00000000..1949a21e --- /dev/null +++ b/NEWS @@ -0,0 +1,218 @@ + +KAT Changelog + +=========================================== + +V2.1.0 - ???? + +Added filtering tools for filtering k-mer hashes and sequences based on presence +or absence of a set of k-mers. + +Enhanced plotting functionality through python matplotlib. Configuration +scripts still allow for gnuplot plotting, if user's don't have matplotlib +available on their system + +Added online documentation available at: https://readthedocs.org/projects/kat/ + +KAT library now available, containing core functionality, such as k-mer +counting (i.e. a simplified interface to jellyfish2). + +Fixed automated testing functionality, unit tests operate only on KAT +library code, and system tests operate on KAT tools. + +Travis CI integration, checks KAT compiles, passes all tests and can +correctly create a distributable after every commit to github. + +Changed jellyfish output artifacts to have a "kat_" prefix which will prevent +incompatibilities with existing jellyfish installations. Also modified all +scripts to include a "kat_" prefix as well. + +Converted distanalysis script to be python3 code. + +Removed checks permitting .gz extension, jellyfish doesn't directly handle compressed +input. + +Updated makefile to put jellyfish headers into a unique directory. + +Various bug fixes, performance improvements and tidying up of the codebase. + +=========================================== + +V2.0.8 - 4th December 2015 + +Modified jellyfish executable to have 'k' suffix to avoid overwriting existing +jellyfish2 installs. Shared libraries and the include directory contains a 'k' +prefix before the version number to avoid the same problem. + +Fix some issues with unit tests. Some unit tests removed for jellyfish as these +are not appropriate in the KAT codebase. + +Remove any install_hooks and simply treat seqan as a proper sub project in KAT +with its own Makefile. + +=========================================== + +V2.0.7 - 28th November 2015 + +Made output type selection an option for all tools that produce plots. + +Fixed a bug in the configuration scripts which occurs in some environments +caused by spaces rather than tabs. + +=========================================== + +V2.0.6 - 24th September 2015 + +More fixes for handling inputs correctly. It seems like in some cases we lost +some globbed paths because the paths went out of scope. I've now forced them to +be shared ptrs which ensures they stick around until the input handler goes out +of scope. + +=========================================== + +V2.0.5 - 22nd September 2015 + +Fixed a bug with input handling not throwing exceptions properly. The issue +stemmed from globbing the input strings, and not returning any paths if the +files pointed to did not exist. The fix is to ensure globbing returns the +originally specified path if nothing else is returned. + +Added additional fields to sect stats output. Now include number and percent of +invalid bases in sequence, plus percent non zero after accounting for invalid +bases. + +Fixed a bug in SECT when handling sequences with length less than that of kmer +length. + +=========================================== + +V2.0.4 - 26th August 2015 + +Added ability in the comp tool to handle multiple input files listed explicitly +and separated by spaces. + +Fixed an issue checking for gnuplot during configure. + +=========================================== + +V2.0.3 - 21st August 2015 + +Removed user option to calculate mean or median in sect, now we just add mean +and median to the output anyway. + +Added additional output to the sect stats file. Now outputs # zero count bases +for each sequence and the percentage of bases that have some coverage in the +sequence. + +Fix error which sometimes occurs when creating output directories + +Fixed a bug which meant we can't handle non canonical bases in sequences passed +to sect. + +=========================================== + +V2.0.2 - 19th August 2015 + +Removed an unecessary include directive, which made it difficult to compile on +various Mac platforms. + +=========================================== + +V2.0.1 - 12th August 2015 + +Overhauled code base to incorperate jellyfish 2 and seqan, meaning these bits +of software are no longer external dependencies. + +Can now k-mer count directly from the KAT tools, simplifying the workflow + +Various bugfixes and optimisations. + +=========================================== + +V1.0.7 - 24th March 2015 + +New functionality for sect: ability to request median coverage for each sequence +rather than the mean. This tends to give much better results as occasionally we +have a few kmers with extremely high coverage in a sequence which skews the mean +coverage. + +Fixed a bug in the configuration. Now correctly includes pthread library when +linking the kat and test binaries. + +=========================================== + +V1.0.6 - 17th October 2014 + +Fixed a bug with the spectra-cn plots where we duplicated the entry for the +highest copy number displayed before combining all together. + +Added a feature to spectra-cn so that we can show cumulative increases in +distinct kmers as kmer coverage increases. + +Updated Jellyfish version requirement to 1.1.11 + +=========================================== + +V1.0.5 - 28th April 2014 + +Removed call to auto configure when running the autogen.sh script. + +Fixed issue where title could not be overriden by the user in the plotting +tools. + +Changed short option name for the "list" option in spectra-mx plot tool to +'c'. This is to avoid a conflict with the "title" option. + +Provided a more descriptive error message if the user enters a malformed +value for the "list" option in the spectra-mx tool. + +Removed call to set the size ratio to 1 in the spectra-mx tool + +=========================================== + +V1.0.4 (internal release) - 1st April 2014 + +Dropped autoconf version to 2.59 to allow KAT to run in more environments. + +Changed floats to doubles in sect. Previously, we may have got imprecise +mean coverage estimates when using really big sequences, such as whole +chromosome length. + +Fixed spectra-cn issue, where we were not including all high copy kmers in a +final band of the spectra-cn plot. + +=========================================== + +V1.0.3 - 28th November 2013 + +Fixed an overflow bug with SECT, where sequences of over 64K in length, were +not handled correctly. + +Fixed an issue with the gnuplot handler, which prevented compilation on Mac + +Added and fixed unit tests. Unit tests can now be run by typing "make check" +assuming the boost unit test framework is installed. + +Overhauled build system. Added more dependency checks. Added ability to +access dependencies in non-standard locations. Removed auto-generated files +from repository (configure script can be regenerated with "autogen.sh") + +=========================================== + +V1.0.2 - 8th October 2013 + +Fix to installation procedure when cloning a fresh repository. + - Modified compiler options so that -all-static is off + - Added Makefile.in to git repo + - Modified README to emphasise that only 1.1.10 works with this version. + +Fix to spectra-hist so that x-max can be properly adjusted when logscale is on + +=========================================== + +V1.0.1 - 3rd October 2013 + +Initial Release of KAT. + +=========================================== + diff --git a/README.md b/README.md index 4ca1e3ea..be677915 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +![alt text](doc/source/images/kat_logo.png "The K-mer Analysis Toolkit") #KAT - The K-mer Analysis Toolkit @@ -19,24 +20,41 @@ KAT is a suite of tools that analyse jellyfish hashes or sequence files (fasta o In addition, KAT contains a python script for analysing the mathematical distributions present in the K-mer spectra in order to determine how much content is present in each peak. +This README only contains some brief details of how to install and use KAT. For more +extensive documentation please visit: https://kat.readthedocs.org/en/latest/ -##Installation: -Generic installation description can be found in the INSTALL file. Short summary: +##Installation: - - Acquire the source code. Either download and decompress the distributable ("tar -xvf kat-.tar.gz"), or clone the git repository (For ssh: ```git clone git@github.com:TGAC/KAT.git```; or for https: ```git clone https://github.com/TGAC/KAT.git```), into a directory on your machine. +Generic installation description can be found in the INSTALL file. There are two ways to install KAT from source, either by cloning the git repository, or by downloading a distributable package, the later method is generally recommended as it reduces the number of installation steps and dependencies required to be on your system. + +Installing from distributable: + - Confirm dependencies are installed and configured: + - GCC V4.8+ + - make + - libtool V2.4.2+ + - Boost (system,filesystem,program_options,chrono,timer) V1.53+ + - Plotting engine: + - Option 1 (preferred) python3, with matplotlib. We recommend installing anaconda3 as this has all the required packages preinstalled. + - Option 2 gnuplot + - Optional - Sphinx documentation V1.3+ (comes with anaconda3) + - Download tarball from https://github.com/TGAC/KAT/releases + - Decompress and untar: ```tar -xvf kat-.tar.gz``` + - Change into directory: ```cd kat-x.x.x``` + - Generate makefiles and confirm dependencies: ```./configure``` + - Compile software: ```make``` + - Run tests (optional) ```make check``` + - Install: ```sudo make install``` + + +Installing from cloned repository + - Clone the git repository (For ssh: ```git clone git@github.com:TGAC/KAT.git```; or for https: ```git clone https://github.com/TGAC/KAT.git```), into a directory on your machine. - "cd" into root directory of the installation - Ensure these tools are correctly installed and available on your system: - - gcc V4.9+ - autoconf V2.53+ - automake V1.11+ - - libtool V2.4.2+ - - make - - boost V1.53+ - - Optionally python3 with matplotlib or gnuplot (required for plotting at runtime, must be available on the path to use this functionality) - - If you cloned the git repository you must first run "./autogen.sh" to create the configure and make files for your project. (If you downloaded a source code distribution tarball then you can skip this step.) - - For a typical installation on a machine where you have root access type ```./configure; make; sudo make install;``` - + - Create configuration script by typing: ```./autogen.sh```. + - Follow all steps described in "Installing from a distributable" (except for the download and decompress tarball steps).``` The configure script can take several options as arguments. One commonly modified option is ```--prefix```, which will install KAT to a custom directory. By default this is "/usr/local", so the KAT executable would be found at "/usr/local/bin" by default. In addition, some options specific to managing KAT dependencies located in non-standard locations are: @@ -44,25 +62,28 @@ The configure script can take several options as arguments. One commonly modifi Type ```./configure --help``` for full details. -The Makefile for KAT can take several goals. Full details of common make goals can be found in the INSTALL file. Typically, the following options can optionally used by KAT: - - - ```make check``` - runs unit tests. - - ```make dist``` - packages the installation into a tarballed distributable. - - ```make distcheck``` - runs some sanity tests to ensure the tarballed distributable is likely to work. - -KAT can also make plots. To enable plotting functionality we require either python3, with numpy, scipy and matplotlib installed, or gnuplot. The python plotting method is the preferred method and will produce nicer results. -If you don't already have python3 installed on your system we recommend installing anaconda3 as this contains everything you need. -The type of plotting engine used will be determined when running the configure script, which will select the first engine detected in the following order: python, gnuplot, none. -There is currently no way to select the plotting directory from a custom location, so the plotting system needs to be properly installed and configured on your system: i.e. python3 or gnuplot must be available on the PATH. - -KAT also come with a python script called "dist_analysis.py", which allows the user to determine the amount of content under each peak in the K-mer spectra. This script will automatically be moved into your selected install directory after running "make install". However, before running this script you will need to install python and the python numpy and scipy libraries. In future versions this script will be properly integrated into KAT as another subtool written in C++. - +KAT can also make plots. To enable plotting functionality we require either python3, + with numpy, scipy and matplotlib packages installed. The python installation +must come with the python shared library, on debian systems you can install this +with "sudo apt-get install python3-dev". If you don't already have python3 installed on your system +we recommend installing anaconda3 as this contains everything you need. Alternatively, +you can use gnuplot, although the python plotting method is the preferred method and will +produce nicer results. + +The type of plotting engine used will be determined when running the configure +script, which will select the first engine detected in the following order: python, gnuplot, none. +There is currently no way to select the plotting directory from a custom location, +so the plotting system needs to be properly installed and configured on your +system: i.e. python3 or gnuplot must be available on the PATH. + +If sphinx is installed and detected on your system then html documentation and man +pages are automatically built during the build process. If it is not detected then this step +is skipped. Should you wish to create a PDF version of the manual you can do so +by typing ```make pdf```, this is not executed by default. ##Operating Instructions: -After KAT has been installed, the following tools should be available: - - - **kat** - a single executable binary file that contains a number of subtools. +After KAT has been installed, the ```kat``` executable file should be available which contains a number of subtools. Running ```kat --help``` will bring up a list of available tools within kat. To get help on any of these subtools simple type: ```kat --help```. For example: ```kat sect --help``` will show details on how to use the sequence coverage estimator tool. @@ -86,21 +107,19 @@ GNU GPL V3. See COPYING file for more details. ##Authors: -Bernardo Clavijo -Daniel Mapleson -Darren Heavens -Sarah Ayling -Mario Caccamo -George Kettleborough - +* Daniel Mapleson (The software architect and developer) +* Gonzalo Garcia (KAT superuser and primary tester) +* George Kettleborough (For the recent python plotting functionality) +* Jon Wright (KAT superuser and documentation writer) +* Bernardo Clavijo (KAT's godfather, evangelist and all-round k-mer guru) See AUTHORS file for more details. ##Acknowledgements: -Affiliation: The Genome Analysis Centre (TGAC) -Funding: The Biotechnology and Biological Sciences Research Council (BBSRC) + * Affiliation: The Genome Analysis Centre (TGAC) + * Funding: The Biotechnology and Biological Sciences Research Council (BBSRC) We would also like to thank the authors of Jellyfish: https://github.com/gmarcais/Jellyfish; and SeqAn: http://www.seqan.de/. Both are embedded inside KAT. diff --git a/antigen.sh b/antigen.sh new file mode 100755 index 00000000..946cbd21 --- /dev/null +++ b/antigen.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# +# An utility script to remove all generated files. +# +# Running autogen.sh will be required after running this script since +# the 'configure' script will also be removed. +# +# This script is mainly useful when testing autoconf/automake changes +# and as a part of their development process. + +# If there's a Makefile, then run the 'distclean' target first (which +# will also remove the Makefile). +if test -f Makefile; then + make distclean +fi + +# Also clean docs +cd doc +if test -f Makefile; then + make clean +fi +cd .. + +# Remove all tar-files (assuming there are some packages), and any expanded directories. +rm -f *.tar.* *.tgz +rm -Rf kat-*/ + +# Remove the build_aux directory +rm -Rf build-aux + +# Also remove the autotools cache directory. +rm -Rf autom4te.cache + +# Remove rest of the generated files. +rm -f Makefile.in tests/Makefile.in config.* aclocal.m4 configure depcomp install-sh missing libtool ltmain.sh + +# And do the same for jellyfish +cd deps/jellyfish-2.2.0 + +# Also remove the autotools cache directory. +rm -Rf autom4te.cache + +# Remove rest of the generated files. +rm -f Makefile.in config.* aclocal.m4 configure depcomp install-sh missing libtool ltmain.sh compile test-driver + +# Move to seqan +cd ../seqan-library-2.0.0 + +rm -f Makefile.in + +# Move back +cd ../../ \ No newline at end of file diff --git a/clean b/clean deleted file mode 100644 index 4332bb2d..00000000 --- a/clean +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -e - -rm -r -f autom4te.cache build-aux autoscan.* Makefile Makefile.in aclocal.m4 configure config.* *.scan stamp-h1 */*.o *~ kat-* kat.pro.user src/Makefile src/Makefile.in tests/Makefile tests/Makefile.in clean - - diff --git a/clean.sh b/clean.sh deleted file mode 100755 index 4332bb2d..00000000 --- a/clean.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -e - -rm -r -f autom4te.cache build-aux autoscan.* Makefile Makefile.in aclocal.m4 configure config.* *.scan stamp-h1 */*.o *~ kat-* kat.pro.user src/Makefile src/Makefile.in tests/Makefile tests/Makefile.in clean - - diff --git a/configure.ac b/configure.ac index 4a48d51a..d319a3f7 100644 --- a/configure.ac +++ b/configure.ac @@ -3,45 +3,37 @@ ########################################################################## # Autoconf initialistion. Sets package name version and contact details -AC_INIT([Kmer Analysis Toolkit (KAT)],[2.1.0],[bernardo.clavijo@tgac.ac.uk and/or daniel.mapleson@tgac.ac.uk],[kat],[http://www.tgac.ac.uk/kat]) - -# Require autoconf 2.53 or higher -AC_PREREQ([2.53]) - -# Check that the configure script is being run from the right directory +AC_PREREQ([2.68]) +AC_INIT([kat],[2.1.0],[https://github.com/TGAC/KAT/issues],[kat],[https://github.com/TGAC/KAT]) AC_CONFIG_SRCDIR([src/kat.cc]) - -# Put auxillary build scripts in 'build-aux' directory AC_CONFIG_AUX_DIR([build-aux]) - -# Set the macro directory AC_CONFIG_MACRO_DIR([m4]) - -# Automake initialisation. -AM_INIT_AUTOMAKE([1.11 subdir-objects foreign no-define tar-ustar]) - -# Use this to display simplified compilation output -#AM_SILENT_RULES([yes]) - -# Most of KAT is written in C++. This is what this macro means: "Do compilation tests using CXX and CXXCPP and use extension .C for test programs. Use compilation flags: CPPFLAGS with CXXCPP, and both CPPFLAGS and CXXFLAGS with CXX." AC_LANG_CPLUSPLUS - -# Set output variable CXXCPP to a command that runs the C++ preprocessor. If ā€˜$CXX -Eā€™ doesn't work, /lib/cpp is used. It is portable to run CXXCPP only on files with a .c, .C, .cc, or .cpp extension. AC_PROG_CXXCPP - -# Identify a c++ compiler to use AC_PROG_CXX +AC_PROG_INSTALL # Ensure there's C++11 support AX_CXX_COMPILE_STDCXX_11(,[mandatory]) -# Create the 'install-sh' script, which is used as the 'install' make target -AC_PROG_INSTALL - -# Required for using the archiver +# Automake configuration. +AM_INIT_AUTOMAKE([1.11 subdir-objects foreign no-define tar-ustar]) +AM_SILENT_RULES([yes]) m4_pattern_allow([AM_PROG_AR]) AM_PROG_AR +# Libtool setup +LT_INIT + +# Detect OS +UNAME_S=`uname -s` +if test x"${UNAME_S}" == x"Linux"; then + AC_DEFINE([OS_LINUX], [1], [Linux detected]) +fi +if test x"${UNAME_S}" == x"Darwin"; then + AC_DEFINE([OS_MAC], [1], [Mac detected]) +fi + ###################################################################### # Dependency checks @@ -76,27 +68,48 @@ AC_CHECK_HEADERS([glob.h]) # Check pthreads exists AX_PTHREAD(, [AC_MSG_ERROR([pthreads lib not found. Please ensure that pthreads is properly built and configured.])]) -AX_PYTHON - -pymod_good="yes" -AX_PYTHON_MODULE(numpy, ,python3) -if test x"${PYMOD}" = x"no"; then - pymod_good="no" -fi -AX_PYTHON_MODULE(matplotlib, ,python3) -if test x"${PYMOD}" = x"no"; then - pymod_good="no" +# Required for Boost chrono on linux (clock_gettime). Doesn't exist on Mac +if test x"${UNAME_S}" != x"Darwin"; then + AC_SEARCH_LIBS([clock_gettime], [rt], + [RT_LIB="-lrt"], + [AC_MSG_ERROR([rt lib not found. Please ensure that rt is properly built and configured.])]) +else + RT_LIB="" fi -AX_PYTHON_MODULE(scipy, ,python3) -if test x"${PYMOD}" = x"no"; then - pymod_good="no" + +# Plotting +AC_ARG_ENABLE([gnuplot], AS_HELP_STRING([--enable-gnuplot], [Enable gnuplot plotting even if python matplotlib is available]), enable_gnuplot="yes", enable_gnuplot="no") + +AM_PATH_PYTHON([], [], AC_MSG_ERROR([Python interpreter not found.])) + +AX_PYTHON_DEVEL([>= '3.1']) + +pymod_good="no" +if [[ -n "${PYTHON_VERSION}" ]]; then + if [[ -z "${PYTHON_EXTRA_LIBS}" ]]; then + pymod_good="no" + AC_MSG_WARN([Python3 detected but Python3 development library was not found. If you wish to use python plotting please install python3 library. e.g. "sudo apt-get install python3-dev" on debian systems.]) + fi + pymod_good="yes" + AX_PYTHON_MODULE(numpy, ,python3) + if [[ "${PYMOD}" == "no" ]]; then + pymod_good="no" + fi + AX_PYTHON_MODULE(matplotlib, ,python3) + if [[ "${PYMOD}" == "no" ]]; then + pymod_good="no" + fi + AX_PYTHON_MODULE(scipy, ,python3) + if [[ "${PYMOD}" == "no" ]]; then + pymod_good="no" + fi fi # Check for gnuplot on path. Just emit a warning if not present -if test x"${pymod_good}" = x"no"; then +if [[ "${pymod_good}" == "no" ]] || [[ "${enable_gnuplot}" == "yes" ]]; then AC_DEFINE([HAVE_PYTHON], [0], [Python not present]) AC_CHECK_PROG([gnuplot_found], [gnuplot], [yes], [no]) - if test x"${gnuplot_found}" = x"no"; then + if [[ "${gnuplot_found}" == "no" ]] ; then AC_DEFINE([HAVE_GNUPLOT], [0], [Gnuplot not present]) else AC_DEFINE([HAVE_GNUPLOT], [1], [Gnuplot present]) @@ -105,6 +118,27 @@ else AC_DEFINE([HAVE_PYTHON], [1], [Python present]) fi +# Check for sphinx to build documentation (optional) +AC_CHECK_PROG([sphinx], [sphinx-build], [yes], [no]) +if [[ "${sphinx}" == "yes" ]]; then + #Now check if the version is correct + sphinx_major_version=`sphinx-build --version 2>&1 | cut -d' ' -f3 | cut -d '.' -f 1 | tr -d " \t\n\r"` + sphinx_minor_version=`sphinx-build --version 2>&1 | cut -d' ' -f3 | cut -d '.' -f 2 | tr -d " \t\n\r"` + if [[ -z "${sphinx_major_version}" ]] ; then sphinx_major_version=0; fi + if [[ -z "${sphinx_minor_version}" ]] ; then sphinx_minor_version=0; fi + major_size=${#sphinx_major_version} + minor_size=${#sphinx_minor_version} + if (( ("${major_size}" > 2) || ("${minor_size}" > 2) )); then sphinx_major_version=0; sphinx_minor_version=0; fi + if (( ("${sphinx_major_version}" < 1 ) || ( ( "${sphinx_major_version}" >= 1 ) && ( "${sphinx_minor_version}" < 3 ) ) )); then + AC_MSG_WARN([Sphinx detected, but version is too old. Wont create documentation. You can still find the documentation online at: https://kat.readthedocs.org/en/latest/]) + sphinx="no" + fi +else + AC_MSG_WARN([Sphinx not detected, wont create documentation. You can still find the documentation online at: https://kat.readthedocs.org/en/latest/]) +fi +AM_CONDITIONAL([MAKE_DOCS], [test x$sphinx = xyes]) +AC_SUBST([MAKE_DOCS]) + ## Check for boost AX_BOOST_BASE([1.52],, [AC_MSG_ERROR([Boost not found. Please ensure that boost is properly built and the BOOST_ROOT environment variable is set. Alternatively you can override BOOST_ROOT with the --with-boost option.])]) @@ -113,44 +147,57 @@ AX_BOOST_SYSTEM AX_BOOST_PROGRAM_OPTIONS AX_BOOST_CHRONO AX_BOOST_TIMER -AX_BOOST_UNIT_TEST_FRAMEWORK + + +define([PC_FILE], lib/kat-2.1.pc) # Combine BOOST variables (apart for BOOST_TEST) BOOST_LIBS="${BOOST_FILESYSTEM_LIB} ${BOOST_PROGRAM_OPTIONS_LIB} ${BOOST_SYSTEM_LIB} ${BOOST_TIMER_LIB}" -BOOST_STATIC_LIBS="${BOOST_TIMER_STATIC_LIB} ${BOOST_CHRONO_STATIC_LIB} ${BOOST_FILESYSTEM_STATIC_LIB} ${BOOST_PROGRAM_OPTIONS_STATIC_LIB} ${BOOST_SYSTEM_STATIC_LIB} " +BOOST_STATIC_LIBS="${BOOST_TIMER_STATIC_LIB} ${BOOST_CHRONO_STATIC_LIB} ${RT_LIB} ${BOOST_FILESYSTEM_STATIC_LIB} ${BOOST_PROGRAM_OPTIONS_STATIC_LIB} ${BOOST_SYSTEM_STATIC_LIB} " AC_SUBST([BOOST_STATIC_LIBS]) AM_CXXFLAGS="-DCPLUSPLUS" AC_SUBST([AM_CXXFLAGS]) -AM_LDFLAGS="${BOOST_LDFLAGS} -Xlinker -export-dynamic" -AC_SUBST([AM_LDFLAGS]) - -if test x"${pymod_good}" = x"yes"; then - AM_CPPFLAGS="${BOOST_CPPFLAGS} -I${PYTHON_INCLUDE_DIR}" - AM_LIBS="${PTHREAD_CFLAGS} ${BOOST_STATIC_LIBS} -ldl -lutil -lm -l${PYTHON_LIB}" +if [[ "${pymod_good}" == "yes" ]]; then + AM_CPPFLAGS="${BOOST_CPPFLAGS} ${PYTHON_CPPFLAGS}" + AM_LIBS="${PTHREAD_CFLAGS} ${BOOST_STATIC_LIBS} ${PYTHON_EXTRA_LIBS} ${PYTHON_LIBS}" + AM_LDFLAGS="${BOOST_LDFLAGS} ${PYTHON_EXTRA_LDFLAGS}" else AM_CPPFLAGS="${BOOST_CPPFLAGS}" AM_LIBS="${PTHREAD_CFLAGS} ${BOOST_STATIC_LIBS}" + AM_LDFLAGS="${BOOST_LDFLAGS}" fi AC_SUBST([AM_CPPFLAGS]) +AC_SUBST([AM_LDFLAGS]) AC_SUBST([AM_LIBS]) + AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile deps/seqan-library-2.0.0/Makefile]) +AC_CONFIG_FILES([Makefile doc/Makefile doc/source/conf.py lib/kat-2.1.pc lib/Makefile src/Makefile tests/Makefile tests/compat.sh deps/seqan-library-2.0.0/Makefile]) AC_CONFIG_SUBDIRS([deps/jellyfish-2.2.0]) AC_OUTPUT -if test x"${pymod_good}" = x"yes"; then - echo "Using python plotting" +if [[ "${pymod_good}" == "yes" ]] && [[ "$enable_gnuplot" == "no" ]] ; then + AC_MSG_NOTICE([Using python plotting]) else - if test x"${gnuplot_found}" = x"yes"; then - AC_MSG_WARN([Python3, or some required python modules where not found. Python via matplotlib is the preferred plotting method in KAT. If you want to use python plotting (the preferred option) then we suggest you install anaconda3 (or python3 with numpy, scipy and matplotlib separately). However, gnuplot was detected so KAT plots will be generated via gnuplot instead.]) + if [[ "${gnuplot_found}" == "yes" ]]; then + if [[ "$enable_gnuplot" == "no" ]]; then + AC_MSG_WARN([Python3, or some required python modules where not found. Python via matplotlib is the preferred plotting method in KAT. If you want to use python plotting (the preferred option) then we suggest you install anaconda3 (or python3 with numpy, scipy and matplotlib separately). However, gnuplot was detected so KAT plots will be generated via gnuplot instead.]) + else + AC_MSG_NOTICE([Using gnuplot plotting]) + fi else AC_MSG_WARN([Neither python (with plotting modules present) or Gnuplot not detected. KAT will still work (minus plots). Should you require plotting functionality, you must install either anaconda3 (or python3 with numpy, scipy and matplotlib) or gnuplot, and then reconfigure and compile to enable plotting in KAT.]) fi fi +if [[ "${sphinx}" == "no" ]]; then + AC_MSG_WARN([Sphinx not detected, or version is too old. Wont create documentation. You can still find the documentation online at: https://kat.readthedocs.org/en/latest/]) +else + AC_MSG_NOTICE([Building documentation with sphinx]) +fi + diff --git a/deps/jellyfish-2.2.0/.gitignore b/deps/jellyfish-2.2.0/.gitignore index 49fda343..27c4a14c 100644 --- a/deps/jellyfish-2.2.0/.gitignore +++ b/deps/jellyfish-2.2.0/.gitignore @@ -20,5 +20,6 @@ /libjellyfish-2.0.la /.libs/ /bin/ +/.deps/ *.la *.log diff --git a/deps/jellyfish-2.2.0/Makefile.am b/deps/jellyfish-2.2.0/Makefile.am index 14b82258..966de078 100644 --- a/deps/jellyfish-2.2.0/Makefile.am +++ b/deps/jellyfish-2.2.0/Makefile.am @@ -1,14 +1,14 @@ SUBDIRS = . $(MAYBE_SWIG) ACLOCAL_AMFLAGS = -I m4 -EXTRA_DIST = doc/jellyfish.pdf doc/jellyfish.man README LICENSE # jellyfish.spec -man1_MANS = doc/jellyfish.man +EXTRA_DIST = doc/kat_jellyfish.pdf doc/kat_jellyfish.man README LICENSE # jellyfish.spec +man1_MANS = doc/kat_jellyfish.man pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = jellyfish-k2.0.pc +pkgconfig_DATA = kat_jellyfish-2.0.pc AM_LDFLAGS = -lpthread # $(VALGRIND_LIBS) -AM_CPPFLAGS = -Wall -Wnon-virtual-dtor -I$(top_srcdir) -I$(top_srcdir)/include -g -O3 $(VALGRIND_CFLAGS) +AM_CPPFLAGS = -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -I$(top_srcdir) -I$(top_srcdir)/include -g -O3 $(VALGRIND_CFLAGS) AM_CXXFLAGS = $(ALL_CXXFLAGS) -g -O3 noinst_HEADERS = $(YAGGO_SOURCES) @@ -17,7 +17,7 @@ dist_bin_SCRIPTS = data_DATA = BUILT_SOURCES = $(YAGGO_SOURCES) CLEANFILES = -DISTCLEANFILES = $(BUILT_SOURCES) +DISTCLEANFILES = # Yaggo automatic rules with silencing V_YAGGO = $(V_YAGGO_$(V)) @@ -29,15 +29,15 @@ V_YAGGO_0 = @echo " YAGGO " $@; YAGGO_SOURCES = # Append all file to be built by yaggo # What to build -bin_PROGRAMS += bin/jellyfishk -lib_LTLIBRARIES = libjellyfish-k2.0.la -LDADD = libjellyfish-k2.0.la # $(VALGRIND_LIBS) +bin_PROGRAMS += bin/kat_jellyfish +lib_LTLIBRARIES = libkat_jellyfish-2.0.la +LDADD = libkat_jellyfish-2.0.la # $(VALGRIND_LIBS) check_PROGRAMS = bin/generate_sequence ############################ # Build Jellyfish the exec # ############################ -bin_jellyfishk_SOURCES = sub_commands/jellyfish.cc \ +bin_kat_jellyfish_SOURCES = sub_commands/jellyfish.cc \ sub_commands/count_main.cc \ sub_commands/info_main.cc \ sub_commands/dump_main.cc \ @@ -49,7 +49,7 @@ bin_jellyfishk_SOURCES = sub_commands/jellyfish.cc \ sub_commands/cite_main.cc \ sub_commands/mem_main.cc \ jellyfish/merge_files.cc -bin_jellyfishk_LDFLAGS = $(AM_LDFLAGS) $(STATIC_FLAGS) +bin_kat_jellyfish_LDFLAGS = $(AM_LDFLAGS) $(STATIC_FLAGS) YAGGO_SOURCES += sub_commands/count_main_cmdline.hpp \ @@ -66,8 +66,8 @@ YAGGO_SOURCES += sub_commands/count_main_cmdline.hpp \ ###################################### # Build Jellyfish the shared library # ###################################### -libjellyfish_k2_0_la_LDFLAGS = -version-info 2:0:0 -libjellyfish_k2_0_la_SOURCES = lib/rectangular_binary_matrix.cc \ +libkat_jellyfish_2_0_la_LDFLAGS = -version-info 2:0:0 +libkat_jellyfish_2_0_la_SOURCES = lib/rectangular_binary_matrix.cc \ lib/mer_dna.cc lib/storage.cc \ lib/allocators_mmap.cc lib/misc.cc \ lib/int128.cc lib/thread_exec.cc \ @@ -75,7 +75,7 @@ libjellyfish_k2_0_la_SOURCES = lib/rectangular_binary_matrix.cc \ lib/generator_manager.cc -library_includedir=$(includedir)/jellyfish-@PACKAGE_VERSION@/jellyfish +library_includedir=$(includedir)/kat_jellyfish-@PACKAGE_VERSION@/jellyfish JFI = include/jellyfish library_include_HEADERS = $(JFI)/allocators_mmap.hpp \ $(JFI)/backtrace.hpp $(JFI)/atomic_gcc.hpp \ @@ -136,7 +136,7 @@ YAGGO_SOURCES += jellyfish/generate_sequence_cmdline.hpp # Tests # ######### TEST_EXTENSIONS = .sh -SH_LOG_COMPILER = /bin/sh +SH_LOG_COMPILER = $(SHELL) AM_SH_LOG_FLAGS = TESTS = tests/generate_sequence.sh tests/parallel_hashing.sh \ @@ -203,7 +203,7 @@ bin_test_all_SOURCES = unit_tests/test_main.cc \ unit_tests/test_stdio_filebuf.cc bin_test_all_SOURCES += jellyfish/backtrace.cc -bin_test_all_CPPFLAGS = -Dprotected=public -Dprivate=public -DJSON_IS_AMALGAMATION=1 +bin_test_all_CPPFLAGS = -DJSON_IS_AMALGAMATION=1 bin_test_all_CXXFLAGS = $(AM_CXXFLAGS) -I$(top_srcdir)/unit_tests/gtest/include -I$(top_srcdir)/unit_tests -I$(top_srcdir)/include bin_test_all_LDADD = libgtest.la $(LDADD) YAGGO_SOURCES += unit_tests/test_main_cmdline.hpp diff --git a/deps/jellyfish-2.2.0/configure.ac b/deps/jellyfish-2.2.0/configure.ac index 53d11b70..e2bd8248 100644 --- a/deps/jellyfish-2.2.0/configure.ac +++ b/deps/jellyfish-2.2.0/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([jellyfish], [k2.2.0], [gmarcais@umd.edu]) +AC_INIT([kat_jellyfish], [2.2.0], [gmarcais@umd.edu]) AC_CANONICAL_HOST AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([subdir-objects foreign parallel-tests color-tests]) @@ -14,7 +14,7 @@ AC_LANG(C++) AC_PROG_CXX # Major version of the library -AC_SUBST([PACKAGE_LIB], [k2.0]) +AC_SUBST([PACKAGE_LIB], [2.0]) # Check for md5 or md5sum AC_ARG_VAR([MD5], [Path to md5 hashing program]) @@ -27,7 +27,7 @@ AC_ARG_VAR([YAGGO], [Yaggo switch parser generator]) AS_IF([test "x$YAGGO" = "x"], [AC_PATH_PROG([YAGGO], [yaggo], [false])]) dnl define([concat], $1$2$3)dnl -define([PC_FILE], jellyfish-k2.0.pc) +define([PC_FILE], kat_jellyfish-2.0.pc) AC_CONFIG_FILES([ Makefile tests/compat.sh diff --git a/deps/jellyfish-2.2.0/doc/jellyfish.man b/deps/jellyfish-2.2.0/doc/kat_jellyfish.man similarity index 100% rename from deps/jellyfish-2.2.0/doc/jellyfish.man rename to deps/jellyfish-2.2.0/doc/kat_jellyfish.man diff --git a/deps/jellyfish-2.2.0/doc/jellyfish.pdf b/deps/jellyfish-2.2.0/doc/kat_jellyfish.pdf similarity index 100% rename from deps/jellyfish-2.2.0/doc/jellyfish.pdf rename to deps/jellyfish-2.2.0/doc/kat_jellyfish.pdf diff --git a/deps/jellyfish-2.2.0/include/jellyfish/locks_pthread.hpp b/deps/jellyfish-2.2.0/include/jellyfish/locks_pthread.hpp index 55496a88..76619cde 100644 --- a/deps/jellyfish-2.2.0/include/jellyfish/locks_pthread.hpp +++ b/deps/jellyfish-2.2.0/include/jellyfish/locks_pthread.hpp @@ -20,6 +20,11 @@ #include #include +#ifdef __MACH__ +#include +#include +#endif + #include #ifdef HAVE_CONFIG_H #include @@ -52,7 +57,16 @@ class cond } inline int timedwait(time_t seconds) { struct timespec curtime; -#ifdef HAVE_CLOCK_GETTIME + +#ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time + clock_serv_t cclock; + mach_timespec_t mts; + host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); + clock_get_time(cclock, &mts); + mach_port_deallocate(mach_task_self(), cclock); + curtime.tv_sec = mts.tv_sec; + curtime.tv_nsec = mts.tv_nsec; +#elif HAVE_CLOCK_GETTIME clock_gettime(CLOCK_REALTIME, &curtime); #else struct timeval timeofday; @@ -60,6 +74,7 @@ class cond curtime.tv_sec = timeofday.tv_sec; curtime.tv_nsec = timeofday.tv_usec * 1000; #endif + curtime.tv_sec += seconds; return timedwait(&curtime); } diff --git a/deps/jellyfish-2.2.0/include/jellyfish/mer_qual_iterator.hpp b/deps/jellyfish-2.2.0/include/jellyfish/mer_qual_iterator.hpp index 3d7dbbcd..8368cb03 100644 --- a/deps/jellyfish-2.2.0/include/jellyfish/mer_qual_iterator.hpp +++ b/deps/jellyfish-2.2.0/include/jellyfish/mer_qual_iterator.hpp @@ -81,7 +81,7 @@ class mer_qual_iterator : public std::iterator do { const int code = m_.code(*cseq_++); - const char qual = cqual_ < equal_ ? *cqual_++ : std::numeric_limits::min(); + const char qual = cqual_ < equal_ ? *cqual_++ : std::numeric_limits::max(); if(code >= 0 && qual >= min_qual_) { m_.shift_left(code); if(canonical_) diff --git a/deps/jellyfish-2.2.0/include/jellyfish/time.hpp b/deps/jellyfish-2.2.0/include/jellyfish/time.hpp index e490c1cd..962451ce 100644 --- a/deps/jellyfish-2.2.0/include/jellyfish/time.hpp +++ b/deps/jellyfish-2.2.0/include/jellyfish/time.hpp @@ -18,6 +18,10 @@ #define __JELLYFISH_TIME_HPP__ #include +#ifdef __MACH__ +#include +#include +#endif #include #include #include @@ -75,7 +79,20 @@ class Time { return tv.tv_sec < o.tv.tv_sec || (tv.tv_sec == o.tv.tv_sec && tv.tv_usec < o.tv.tv_usec); } - void now() { gettimeofday(&tv, NULL); } + void now() { +#ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time + clock_serv_t cclock; + mach_timespec_t mts; + host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); + clock_get_time(cclock, &mts); + mach_port_deallocate(mach_task_self(), cclock); + tv.tv_sec = mts.tv_sec; + tv.tv_usec = mts.tv_nsec / 1000; +#else + gettimeofday(&tv, NULL); +#endif + + } Time elapsed() const { return Time() - *this; } diff --git a/deps/jellyfish-2.2.0/jellyfish/.deps/.dirstamp b/deps/jellyfish-2.2.0/jellyfish/.deps/.dirstamp deleted file mode 100644 index e69de29b..00000000 diff --git a/deps/jellyfish-2.2.0/jellyfish/.deps/.gitignore b/deps/jellyfish-2.2.0/jellyfish/.deps/.gitignore deleted file mode 100644 index ee50cd7a..00000000 --- a/deps/jellyfish-2.2.0/jellyfish/.deps/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.Po diff --git a/deps/jellyfish-2.2.0/jellyfish/.dirstamp b/deps/jellyfish-2.2.0/jellyfish/.dirstamp deleted file mode 100644 index e69de29b..00000000 diff --git a/deps/jellyfish-2.2.0/jellyfish/.gitignore b/deps/jellyfish-2.2.0/jellyfish/.gitignore index 5761abcf..3b835998 100644 --- a/deps/jellyfish-2.2.0/jellyfish/.gitignore +++ b/deps/jellyfish-2.2.0/jellyfish/.gitignore @@ -1 +1,3 @@ +/.deps/ *.o +*.dirstamp diff --git a/deps/jellyfish-2.2.0/jellyfish-k2.0.pc.in b/deps/jellyfish-2.2.0/kat_jellyfish-2.0.pc.in similarity index 82% rename from deps/jellyfish-2.2.0/jellyfish-k2.0.pc.in rename to deps/jellyfish-2.2.0/kat_jellyfish-2.0.pc.in index 5061ab02..7f9880c8 100644 --- a/deps/jellyfish-2.2.0/jellyfish-k2.0.pc.in +++ b/deps/jellyfish-2.2.0/kat_jellyfish-2.0.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: Jellyfish Description: A multi-threaded hash based k-mer counter. Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -ljellyfish-k2.0 -lpthread +Libs: -L${libdir} -lkat_jellyfish-2.0 -lpthread Cflags: -I${includedir}/jellyfish-@PACKAGE_VERSION@ diff --git a/deps/jellyfish-2.2.0/lib/.deps/.dirstamp b/deps/jellyfish-2.2.0/lib/.deps/.dirstamp deleted file mode 100644 index e69de29b..00000000 diff --git a/deps/jellyfish-2.2.0/lib/.dirstamp b/deps/jellyfish-2.2.0/lib/.dirstamp deleted file mode 100644 index e69de29b..00000000 diff --git a/deps/jellyfish-2.2.0/lib/.gitignore b/deps/jellyfish-2.2.0/lib/.gitignore index 7f18ac5d..0c472128 100644 --- a/deps/jellyfish-2.2.0/lib/.gitignore +++ b/deps/jellyfish-2.2.0/lib/.gitignore @@ -1,2 +1,4 @@ +/.deps/ *.o *.lo +*.dirstamp diff --git a/deps/jellyfish-2.2.0/m4/.gitignore b/deps/jellyfish-2.2.0/m4/.gitignore new file mode 100644 index 00000000..0f4126cd --- /dev/null +++ b/deps/jellyfish-2.2.0/m4/.gitignore @@ -0,0 +1 @@ +*.m4 diff --git a/deps/jellyfish-2.2.0/m4/libtool.m4 b/deps/jellyfish-2.2.0/m4/libtool.m4 deleted file mode 100644 index 44e0ecff..00000000 --- a/deps/jellyfish-2.2.0/m4/libtool.m4 +++ /dev/null @@ -1,7982 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define([_LT_COPYING], [dnl -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is part of GNU Libtool. -# -# GNU Libtool is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or -# obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -]) - -# serial 57 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun([LT_PREREQ], -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, - [m4_default([$3], - [m4_fatal([Libtool version $1 or higher is required], - 63)])], - [$2])]) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun([_LT_CHECK_BUILDDIR], -[case `pwd` in - *\ * | *\ *) - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; -esac -]) - - -# LT_INIT([OPTIONS]) -# ------------------ -AC_DEFUN([LT_INIT], -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_BEFORE([$0], [LT_LANG])dnl -AC_BEFORE([$0], [LT_OUTPUT])dnl -AC_BEFORE([$0], [LTDL_INIT])dnl -m4_require([_LT_CHECK_BUILDDIR])dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE([LTOPTIONS_VERSION])dnl -AC_REQUIRE([LTSUGAR_VERSION])dnl -AC_REQUIRE([LTVERSION_VERSION])dnl -AC_REQUIRE([LTOBSOLETE_VERSION])dnl -m4_require([_LT_PROG_LTMAIN])dnl - -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) - -dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ltmain" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define([LT_INIT]) -])# LT_INIT - -# Old names: -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -m4_defun([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -]) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. -m4_defun([_LT_FILEUTILS_DEFAULTS], -[: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -])# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun([_LT_SETUP], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl - -_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl -dnl -_LT_DECL([], [host_alias], [0], [The host system])dnl -_LT_DECL([], [host], [0])dnl -_LT_DECL([], [host_os], [0])dnl -dnl -_LT_DECL([], [build_alias], [0], [The build system])dnl -_LT_DECL([], [build], [0])dnl -_LT_DECL([], [build_os], [0])dnl -dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl -dnl -AC_REQUIRE([LT_CMD_MAX_LEN])dnl -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl -dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl -m4_require([_LT_CMD_RELOAD])dnl -m4_require([_LT_CHECK_MAGIC_METHOD])dnl -m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl -m4_require([_LT_CMD_OLD_ARCHIVE])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_WITH_SYSROOT])dnl - -_LT_CONFIG_LIBTOOL_INIT([ -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi -]) -if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - -_LT_CHECK_OBJDIR - -m4_require([_LT_TAG_COMPILER])dnl - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld="$lt_cv_prog_gnu_ld" - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - _LT_PATH_MAGIC - fi - ;; -esac - -# Use C for the default configuration in the libtool script -LT_SUPPORTED_TAG([CC]) -_LT_LANG_C_CONFIG -_LT_LANG_DEFAULT_CONFIG -_LT_CONFIG_COMMANDS -])# _LT_SETUP - - -# _LT_PREPARE_SED_QUOTE_VARS -# -------------------------- -# Define a few sed substitution that help us do robust quoting. -m4_defun([_LT_PREPARE_SED_QUOTE_VARS], -[# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([["`\\]]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' -]) - -# _LT_PROG_LTMAIN -# --------------- -# Note that this code is called both from `configure', and `config.status' -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, -# `config.status' has no value for ac_aux_dir unless we are using Automake, -# so we pass a copy along to make sure it has a sensible value anyway. -m4_defun([_LT_PROG_LTMAIN], -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) -ltmain="$ac_aux_dir/ltmain.sh" -])# _LT_PROG_LTMAIN - - -## ------------------------------------- ## -## Accumulate code for creating libtool. ## -## ------------------------------------- ## - -# So that we can recreate a full libtool script including additional -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS -# in macros and then make a single call at the end using the `libtool' -# label. - - -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) -# ---------------------------------------- -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL_INIT], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) - - -# _LT_CONFIG_LIBTOOL([COMMANDS]) -# ------------------------------ -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) - - -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) -# ----------------------------------------------------- -m4_defun([_LT_CONFIG_SAVE_COMMANDS], -[_LT_CONFIG_LIBTOOL([$1]) -_LT_CONFIG_LIBTOOL_INIT([$2]) -]) - - -# _LT_FORMAT_COMMENT([COMMENT]) -# ----------------------------- -# Add leading comment marks to the start of each line, and a trailing -# full-stop to the whole comment if one is not present already. -m4_define([_LT_FORMAT_COMMENT], -[m4_ifval([$1], [ -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) -)]) - - - -## ------------------------ ## -## FIXME: Eliminate VARNAME ## -## ------------------------ ## - - -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) -# ------------------------------------------------------------------- -# CONFIGNAME is the name given to the value in the libtool script. -# VARNAME is the (base) name used in the configure script. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on -# VARNAME. Any other value will be used directly. -m4_define([_LT_DECL], -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], - [m4_ifval([$1], [$1], [$2])]) - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) - m4_ifval([$4], - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) - lt_dict_add_subkey([lt_decl_dict], [$2], - [tagged?], [m4_ifval([$5], [yes], [no])])]) -]) - - -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) -# -------------------------------------------------------- -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) - - -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_tag_varnames], -[_lt_decl_filter([tagged?], [yes], $@)]) - - -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) -# --------------------------------------------------------- -m4_define([_lt_decl_filter], -[m4_case([$#], - [0], [m4_fatal([$0: too few arguments: $#])], - [1], [m4_fatal([$0: too few arguments: $#: $1])], - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], - [lt_dict_filter([lt_decl_dict], $@)])[]dnl -]) - - -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) -# -------------------------------------------------- -m4_define([lt_decl_quote_varnames], -[_lt_decl_filter([value], [1], $@)]) - - -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_dquote_varnames], -[_lt_decl_filter([value], [2], $@)]) - - -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_varnames_tagged], -[m4_assert([$# <= 2])dnl -_$0(m4_quote(m4_default([$1], [[, ]])), - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) -m4_define([_lt_decl_varnames_tagged], -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) - - -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_all_varnames], -[_$0(m4_quote(m4_default([$1], [[, ]])), - m4_if([$2], [], - m4_quote(lt_decl_varnames), - m4_quote(m4_shift($@))))[]dnl -]) -m4_define([_lt_decl_all_varnames], -[lt_join($@, lt_decl_varnames_tagged([$1], - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl -]) - - -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) -# ------------------------------------ -# Quote a variable value, and forward it to `config.status' so that its -# declaration there will have the same value as in `configure'. VARNAME -# must have a single quote delimited value for this to work. -m4_define([_LT_CONFIG_STATUS_DECLARE], -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) - - -# _LT_CONFIG_STATUS_DECLARATIONS -# ------------------------------ -# We delimit libtool config variables with single quotes, so when -# we write them to config.status, we have to be sure to quote all -# embedded single quotes properly. In configure, this macro expands -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: -# -# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAGS -# ---------------- -# Output comment and list of tags supported by the script -m4_defun([_LT_LIBTOOL_TAGS], -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl -available_tags="_LT_TAGS"dnl -]) - - -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) -# ----------------------------------- -# Extract the dictionary values for VARNAME (optionally with TAG) and -# expand to a commented shell variable setting: -# -# # Some comment about what VAR is for. -# visible_name=$lt_internal_name -m4_define([_LT_LIBTOOL_DECLARE], -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], - [description])))[]dnl -m4_pushdef([_libtool_name], - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), - [0], [_libtool_name=[$]$1], - [1], [_libtool_name=$lt_[]$1], - [2], [_libtool_name=$lt_[]$1], - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl -]) - - -# _LT_LIBTOOL_CONFIG_VARS -# ----------------------- -# Produce commented declarations of non-tagged libtool config variables -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG -# section) are produced by _LT_LIBTOOL_TAG_VARS. -m4_defun([_LT_LIBTOOL_CONFIG_VARS], -[m4_foreach([_lt_var], - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAG_VARS(TAG) -# ------------------------- -m4_define([_LT_LIBTOOL_TAG_VARS], -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) - - -# _LT_TAGVAR(VARNAME, [TAGNAME]) -# ------------------------------ -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) - - -# _LT_CONFIG_COMMANDS -# ------------------- -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of -# variables for single and double quote escaping we saved from calls -# to _LT_DECL, we can put quote escaped variables declarations -# into `config.status', and then the shell code to quote escape them in -# for loops in `config.status'. Finally, any additional code accumulated -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. -m4_defun([_LT_CONFIG_COMMANDS], -[AC_PROVIDE_IFELSE([LT_OUTPUT], - dnl If the libtool generation code has been placed in $CONFIG_LT, - dnl instead of duplicating it all over again into config.status, - dnl then we will have config.status run $CONFIG_LT later, so it - dnl needs to know what name is stored there: - [AC_CONFIG_COMMANDS([libtool], - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], - dnl If the libtool generation code is destined for config.status, - dnl expand the accumulated commands and init code now: - [AC_CONFIG_COMMANDS([libtool], - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) -])#_LT_CONFIG_COMMANDS - - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], -[ - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -_LT_CONFIG_STATUS_DECLARATIONS -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$[]1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_quote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_dquote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -_LT_OUTPUT_LIBTOOL_INIT -]) - -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) -# ------------------------------------ -# Generate a child script FILE with all initialization necessary to -# reuse the environment learned by the parent script, and make the -# file executable. If COMMENT is supplied, it is inserted after the -# `#!' sequence but before initialization text begins. After this -# macro, additional text can be appended to FILE to form the body of -# the child script. The macro ends with non-zero status if the -# file could not be fully written (such as if the disk is full). -m4_ifdef([AS_INIT_GENERATED], -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], -[m4_defun([_LT_GENERATED_FILE_INIT], -[m4_require([AS_PREPARE])]dnl -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl -[lt_write_fail=0 -cat >$1 <<_ASEOF || lt_write_fail=1 -#! $SHELL -# Generated by $as_me. -$2 -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$1 <<\_ASEOF || lt_write_fail=1 -AS_SHELL_SANITIZE -_AS_PREPARE -exec AS_MESSAGE_FD>&1 -_ASEOF -test $lt_write_fail = 0 && chmod +x $1[]dnl -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT - -# LT_OUTPUT -# --------- -# This macro allows early generation of the libtool script (before -# AC_OUTPUT is called), incase it is used in configure for compilation -# tests. -AC_DEFUN([LT_OUTPUT], -[: ${CONFIG_LT=./config.lt} -AC_MSG_NOTICE([creating $CONFIG_LT]) -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], -[# Run this file to recreate a libtool stub with the current configuration.]) - -cat >>"$CONFIG_LT" <<\_LTEOF -lt_cl_silent=false -exec AS_MESSAGE_LOG_FD>>config.log -{ - echo - AS_BOX([Running $as_me.]) -} >&AS_MESSAGE_LOG_FD - -lt_cl_help="\ -\`$as_me' creates a local libtool stub from the current configuration, -for use in further configure time tests before the real libtool is -generated. - -Usage: $[0] [[OPTIONS]] - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - -Report bugs to ." - -lt_cl_version="\ -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) -configured by $[0], generated by m4_PACKAGE_STRING. - -Copyright (C) 2011 Free Software Foundation, Inc. -This config.lt script is free software; the Free Software Foundation -gives unlimited permision to copy, distribute and modify it." - -while test $[#] != 0 -do - case $[1] in - --version | --v* | -V ) - echo "$lt_cl_version"; exit 0 ;; - --help | --h* | -h ) - echo "$lt_cl_help"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --quiet | --q* | --silent | --s* | -q ) - lt_cl_silent=: ;; - - -*) AC_MSG_ERROR([unrecognized option: $[1] -Try \`$[0] --help' for more information.]) ;; - - *) AC_MSG_ERROR([unrecognized argument: $[1] -Try \`$[0] --help' for more information.]) ;; - esac - shift -done - -if $lt_cl_silent; then - exec AS_MESSAGE_FD>/dev/null -fi -_LTEOF - -cat >>"$CONFIG_LT" <<_LTEOF -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -AC_MSG_NOTICE([creating $ofile]) -_LT_OUTPUT_LIBTOOL_COMMANDS -AS_EXIT(0) -_LTEOF -chmod +x "$CONFIG_LT" - -# configure is writing to config.log, but config.lt does its own redirection, -# appending to config.log, which fails on DOS, as config.log is still kept -# open by configure. Here we exec the FD to /dev/null, effectively closing -# config.log, so it can be properly (re)opened and appended to by config.lt. -lt_cl_success=: -test "$silent" = yes && - lt_config_lt_args="$lt_config_lt_args --quiet" -exec AS_MESSAGE_LOG_FD>/dev/null -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false -exec AS_MESSAGE_LOG_FD>>config.log -$lt_cl_success || AS_EXIT(1) -])# LT_OUTPUT - - -# _LT_CONFIG(TAG) -# --------------- -# If TAG is the built-in tag, create an initial libtool script with a -# default configuration from the untagged config vars. Otherwise add code -# to config.status for appending the configuration named by TAG from the -# matching tagged config vars. -m4_defun([_LT_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_CONFIG_SAVE_COMMANDS([ - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl - m4_if(_LT_TAG, [C], [ - # See if we are running on zsh, and set the options which allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - - cfgfile="${ofile}T" - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL - -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -_LT_COPYING -_LT_LIBTOOL_TAGS - -# ### BEGIN LIBTOOL CONFIG -_LT_LIBTOOL_CONFIG_VARS -_LT_LIBTOOL_TAG_VARS -# ### END LIBTOOL CONFIG - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - _LT_PROG_LTMAIN - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - _LT_PROG_REPLACE_SHELLFNS - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -], -[cat <<_LT_EOF >> "$ofile" - -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded -dnl in a comment (ie after a #). -# ### BEGIN LIBTOOL TAG CONFIG: $1 -_LT_LIBTOOL_TAG_VARS(_LT_TAG) -# ### END LIBTOOL TAG CONFIG: $1 -_LT_EOF -])dnl /m4_if -], -[m4_if([$1], [], [ - PACKAGE='$PACKAGE' - VERSION='$VERSION' - TIMESTAMP='$TIMESTAMP' - RM='$RM' - ofile='$ofile'], []) -])dnl /_LT_CONFIG_SAVE_COMMANDS -])# _LT_CONFIG - - -# LT_SUPPORTED_TAG(TAG) -# --------------------- -# Trace this macro to discover what tags are supported by the libtool -# --tag option, using: -# autoconf --trace 'LT_SUPPORTED_TAG:$1' -AC_DEFUN([LT_SUPPORTED_TAG], []) - - -# C support is built-in for now -m4_define([_LT_LANG_C_enabled], []) -m4_define([_LT_TAGS], []) - - -# LT_LANG(LANG) -# ------------- -# Enable libtool support for the given language if not already enabled. -AC_DEFUN([LT_LANG], -[AC_BEFORE([$0], [LT_OUTPUT])dnl -m4_case([$1], - [C], [_LT_LANG(C)], - [C++], [_LT_LANG(CXX)], - [Go], [_LT_LANG(GO)], - [Java], [_LT_LANG(GCJ)], - [Fortran 77], [_LT_LANG(F77)], - [Fortran], [_LT_LANG(FC)], - [Windows Resource], [_LT_LANG(RC)], - [m4_ifdef([_LT_LANG_]$1[_CONFIG], - [_LT_LANG($1)], - [m4_fatal([$0: unsupported language: "$1"])])])dnl -])# LT_LANG - - -# _LT_LANG(LANGNAME) -# ------------------ -m4_defun([_LT_LANG], -[m4_ifdef([_LT_LANG_]$1[_enabled], [], - [LT_SUPPORTED_TAG([$1])dnl - m4_append([_LT_TAGS], [$1 ])dnl - m4_define([_LT_LANG_]$1[_enabled], [])dnl - _LT_LANG_$1_CONFIG($1)])dnl -])# _LT_LANG - - -m4_ifndef([AC_PROG_GO], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_GO. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ -m4_defun([AC_PROG_GO], -[AC_LANG_PUSH(Go)dnl -AC_ARG_VAR([GOC], [Go compiler command])dnl -AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -AC_CHECK_TOOL(GOC, gccgo) -if test -z "$GOC"; then - if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) - fi -fi -if test -z "$GOC"; then - AC_CHECK_PROG(GOC, gccgo, gccgo, false) -fi -])#m4_defun -])#m4_ifndef - - -# _LT_LANG_DEFAULT_CONFIG -# ----------------------- -m4_defun([_LT_LANG_DEFAULT_CONFIG], -[AC_PROVIDE_IFELSE([AC_PROG_CXX], - [LT_LANG(CXX)], - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) - -AC_PROVIDE_IFELSE([AC_PROG_F77], - [LT_LANG(F77)], - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) - -AC_PROVIDE_IFELSE([AC_PROG_FC], - [LT_LANG(FC)], - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) - -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal -dnl pulling things in needlessly. -AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], - [LT_LANG(GCJ)], - [m4_ifdef([AC_PROG_GCJ], - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([A][M_PROG_GCJ], - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([LT_PROG_GCJ], - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) - -AC_PROVIDE_IFELSE([AC_PROG_GO], - [LT_LANG(GO)], - [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) - -AC_PROVIDE_IFELSE([LT_PROG_RC], - [LT_LANG(RC)], - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) -])# _LT_LANG_DEFAULT_CONFIG - -# Obsolete macros: -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) -dnl AC_DEFUN([AC_LIBTOOL_F77], []) -dnl AC_DEFUN([AC_LIBTOOL_FC], []) -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) -dnl AC_DEFUN([AC_LIBTOOL_RC], []) - - -# _LT_TAG_COMPILER -# ---------------- -m4_defun([_LT_TAG_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_TAG_COMPILER - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -m4_defun([_LT_COMPILER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -m4_defun([_LT_LINKER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* -])# _LT_LINKER_BOILERPLATE - -# _LT_REQUIRED_DARWIN_CHECKS -# ------------------------- -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ - case $host_os in - rhapsody* | darwin*) - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) - AC_CHECK_TOOL([LIPO], [lipo], [:]) - AC_CHECK_TOOL([OTOOL], [otool], [:]) - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) - _LT_DECL([], [DSYMUTIL], [1], - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) - _LT_DECL([], [NMEDIT], [1], - [Tool to change global to local symbols on Mac OS X]) - _LT_DECL([], [LIPO], [1], - [Tool to manipulate fat objects and archives on Mac OS X]) - _LT_DECL([], [OTOOL], [1], - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) - _LT_DECL([], [OTOOL64], [1], - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) - - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], - [lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test $_lt_result -eq 0; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi]) - - AC_CACHE_CHECK([for -exported_symbols_list linker flag], - [lt_cv_ld_exported_symbols_list], - [lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [lt_cv_ld_exported_symbols_list=yes], - [lt_cv_ld_exported_symbols_list=no]) - LDFLAGS="$save_LDFLAGS" - ]) - - AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], - [lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD - echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD - $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - ]) - case $host_os in - rhapsody* | darwin1.[[012]]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[[012]]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$lt_cv_apple_cc_single_mod" = "yes"; then - _lt_dar_single_mod='$single_module' - fi - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac -]) - - -# _LT_DARWIN_LINKER_FEATURES([TAG]) -# --------------------------------- -# Checks for linker and compiler features on darwin -m4_defun([_LT_DARWIN_LINKER_FEATURES], -[ - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_automatic, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - if test "$lt_cv_ld_force_load" = "yes"; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], - [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='' - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" - case $cc_basename in - ifort*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test "$_lt_dar_can_shared" = "yes"; then - output_verbose_link_cmd=func_echo_all - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - m4_if([$1], [CXX], -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" - fi -],[]) - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi -]) - -# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) -# ---------------------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -# Store the results from the different compilers for each TAGNAME. -# Allow to override them for all tags through lt_cv_aix_libpath. -m4_defun([_LT_SYS_MODULE_PATH_AIX], -[m4_require([_LT_DECL_SED])dnl -if test "${lt_cv_aix_libpath+set}" = set; then - aix_libpath=$lt_cv_aix_libpath -else - AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], - [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ - lt_aix_libpath_sed='[ - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }]' - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi],[]) - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" - fi - ]) - aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) -fi -])# _LT_SYS_MODULE_PATH_AIX - - -# _LT_SHELL_INIT(ARG) -# ------------------- -m4_define([_LT_SHELL_INIT], -[m4_divert_text([M4SH-INIT], [$1 -])])# _LT_SHELL_INIT - - - -# _LT_PROG_ECHO_BACKSLASH -# ----------------------- -# Find how we can fake an echo command that does not interpret backslash. -# In particular, with Autoconf 2.60 or later we add some code to the start -# of the generated configure script which will find a shell with a builtin -# printf (which we can use as an echo command). -m4_defun([_LT_PROG_ECHO_BACKSLASH], -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -AC_MSG_CHECKING([how to print strings]) -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$[]1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - -case "$ECHO" in - printf*) AC_MSG_RESULT([printf]) ;; - print*) AC_MSG_RESULT([print -r]) ;; - *) AC_MSG_RESULT([cat]) ;; -esac - -m4_ifdef([_AS_DETECT_SUGGESTED], -[_AS_DETECT_SUGGESTED([ - test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test "X`printf %s $ECHO`" = "X$ECHO" \ - || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) - -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) -])# _LT_PROG_ECHO_BACKSLASH - - -# _LT_WITH_SYSROOT -# ---------------- -AC_DEFUN([_LT_WITH_SYSROOT], -[AC_MSG_CHECKING([for sysroot]) -AC_ARG_WITH([sysroot], -[ --with-sysroot[=DIR] Search for dependent libraries within DIR - (or the compiler's sysroot if not specified).], -[], [with_sysroot=no]) - -dnl lt_sysroot will always be passed unquoted. We quote it here -dnl in case the user passed a directory name. -lt_sysroot= -case ${with_sysroot} in #( - yes) - if test "$GCC" = yes; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - AC_MSG_RESULT([${with_sysroot}]) - AC_MSG_ERROR([The sysroot must be an absolute path.]) - ;; -esac - - AC_MSG_RESULT([${lt_sysroot:-no}]) -_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl -[dependent libraries, and in which our libraries should be installed.])]) - -# _LT_ENABLE_LOCK -# --------------- -m4_defun([_LT_ENABLE_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AS_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD="${LD-ld}_sol2" - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks="$enable_libtool_lock" -])# _LT_ENABLE_LOCK - - -# _LT_PROG_AR -# ----------- -m4_defun([_LT_PROG_AR], -[AC_CHECK_TOOLS(AR, [ar], false) -: ${AR=ar} -: ${AR_FLAGS=cru} -_LT_DECL([], [AR], [1], [The archiver]) -_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) - -AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], - [lt_cv_ar_at_file=no - AC_COMPILE_IFELSE([AC_LANG_PROGRAM], - [echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' - AC_TRY_EVAL([lt_ar_try]) - if test "$ac_status" -eq 0; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - AC_TRY_EVAL([lt_ar_try]) - if test "$ac_status" -ne 0; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - ]) - ]) - -if test "x$lt_cv_ar_at_file" = xno; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi -_LT_DECL([], [archiver_list_spec], [1], - [How to feed a file listing to the archiver]) -])# _LT_PROG_AR - - -# _LT_CMD_OLD_ARCHIVE -# ------------------- -m4_defun([_LT_CMD_OLD_ARCHIVE], -[_LT_PROG_AR - -AC_CHECK_TOOL(STRIP, strip, :) -test -z "$STRIP" && STRIP=: -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) - -AC_CHECK_TOOL(RANLIB, ranlib, :) -test -z "$RANLIB" && RANLIB=: -_LT_DECL([], [RANLIB], [1], - [Commands used to install an old-style archive]) - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac -_LT_DECL([], [old_postinstall_cmds], [2]) -_LT_DECL([], [old_postuninstall_cmds], [2]) -_LT_TAGDECL([], [old_archive_cmds], [2], - [Commands used to build an old-style archive]) -_LT_DECL([], [lock_old_archive_extraction], [0], - [Whether to use a lock for old archive extraction]) -])# _LT_CMD_OLD_ARCHIVE - - -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([_LT_COMPILER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $RM conftest* -]) - -if test x"[$]$2" = xyes; then - m4_if([$5], , :, [$5]) -else - m4_if([$6], , :, [$6]) -fi -])# _LT_COMPILER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) - - -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------- -# Check whether the given linker option works -AC_DEFUN([_LT_LINKER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $RM -r conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - m4_if([$4], , :, [$4]) -else - m4_if([$5], , :, [$5]) -fi -])# _LT_LINKER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) - - -# LT_CMD_MAX_LEN -#--------------- -AC_DEFUN([LT_CMD_MAX_LEN], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8 ; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -max_cmd_len=$lt_cv_sys_max_cmd_len -_LT_DECL([], [max_cmd_len], [0], - [What is the maximum length of a command?]) -])# LT_CMD_MAX_LEN - -# Old name: -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) - - -# _LT_HEADER_DLFCN -# ---------------- -m4_defun([_LT_HEADER_DLFCN], -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl -])# _LT_HEADER_DLFCN - - -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# ---------------------------------------------------------------- -m4_defun([_LT_TRY_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -[#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisbility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -}] -_LT_EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_TRY_DLOPEN_SELF - - -# LT_SYS_DLOPEN_SELF -# ------------------ -AC_DEFUN([LT_SYS_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -_LT_DECL([dlopen_support], [enable_dlopen], [0], - [Whether dlopen is supported]) -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], - [Whether dlopen of programs is supported]) -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], - [Whether dlopen of statically linked programs is supported]) -])# LT_SYS_DLOPEN_SELF - -# Old name: -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) - - -# _LT_COMPILER_C_O([TAGNAME]) -# --------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler. -# This macro does not hard code the compiler like AC_PROG_CC_C_O. -m4_defun([_LT_COMPILER_C_O], -[m4_require([_LT_DECL_SED])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* -]) -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], - [Does compiler simultaneously support -c and -o options?]) -])# _LT_COMPILER_C_O - - -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) -# ---------------------------------- -# Check to see if we can do hard links to lock some files if needed -m4_defun([_LT_COMPILER_FILE_LOCKS], -[m4_require([_LT_ENABLE_LOCK])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_COMPILER_C_O([$1]) - -hard_links="nottested" -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) -])# _LT_COMPILER_FILE_LOCKS - - -# _LT_CHECK_OBJDIR -# ---------------- -m4_defun([_LT_CHECK_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -_LT_DECL([], [objdir], [0], - [The name of the directory that contains temporary libtool files])dnl -m4_pattern_allow([LT_OBJDIR])dnl -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", - [Define to the sub-directory in which libtool stores uninstalled libraries.]) -])# _LT_CHECK_OBJDIR - - -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) -# -------------------------------------- -# Check hardcoding attributes. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || - test -n "$_LT_TAGVAR(runpath_var, $1)" || - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existent directories. - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -_LT_TAGDECL([], [hardcode_action], [0], - [How to hardcode a shared library path into an executable]) -])# _LT_LINKER_HARDCODE_LIBPATH - - -# _LT_CMD_STRIPLIB -# ---------------- -m4_defun([_LT_CMD_STRIPLIB], -[m4_require([_LT_DECL_EGREP]) -striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) -_LT_DECL([], [striplib], [1]) -])# _LT_CMD_STRIPLIB - - -# _LT_SYS_DYNAMIC_LINKER([TAG]) -# ----------------------------- -# PORTME Fill in your ld.so characteristics -m4_defun([_LT_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_OBJDUMP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -m4_if([$1], - [], [ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; - *) lt_sed_strip_eq="s,=/,/,g" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[[4-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - library_names_spec='${libname}.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec="$LIB" - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[23]].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=yes - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[[3-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], - [lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], - [lt_cv_shlibpath_overrides_runpath=yes])]) - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - ]) - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -fi -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" -fi - -_LT_DECL([], [variables_saved_for_relink], [1], - [Variables whose values should be saved in libtool wrapper scripts and - restored at link time]) -_LT_DECL([], [need_lib_prefix], [0], - [Do we need the "lib" prefix for modules?]) -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) -_LT_DECL([], [version_type], [0], [Library versioning type]) -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) -_LT_DECL([], [shlibpath_overrides_runpath], [0], - [Is shlibpath searched before the hard-coded library search path?]) -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) -_LT_DECL([], [library_names_spec], [1], - [[List of archive names. First name is the real one, the rest are links. - The last name is the one that the linker finds with -lNAME]]) -_LT_DECL([], [soname_spec], [1], - [[The coded name of the library, if different from the real name]]) -_LT_DECL([], [install_override_mode], [1], - [Permission mode override for installation of shared libraries]) -_LT_DECL([], [postinstall_cmds], [2], - [Command to use after installation of a shared archive]) -_LT_DECL([], [postuninstall_cmds], [2], - [Command to use after uninstallation of a shared archive]) -_LT_DECL([], [finish_cmds], [2], - [Commands used to finish a libtool library installation in a directory]) -_LT_DECL([], [finish_eval], [1], - [[As "finish_cmds", except a single script fragment to be evaled but - not shown]]) -_LT_DECL([], [hardcode_into_libs], [0], - [Whether we should hardcode library paths into libraries]) -_LT_DECL([], [sys_lib_search_path_spec], [2], - [Compile-time system search path for libraries]) -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], - [Run-time system search path for libraries]) -])# _LT_SYS_DYNAMIC_LINKER - - -# _LT_PATH_TOOL_PREFIX(TOOL) -# -------------------------- -# find a file program which can recognize shared library -AC_DEFUN([_LT_PATH_TOOL_PREFIX], -[m4_require([_LT_DECL_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="m4_if([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -_LT_DECL([], [MAGIC_CMD], [0], - [Used to examine libraries when file_magic_cmd begins with "file"])dnl -])# _LT_PATH_TOOL_PREFIX - -# Old name: -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) - - -# _LT_PATH_MAGIC -# -------------- -# find a file program which can recognize a shared library -m4_defun([_LT_PATH_MAGIC], -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# _LT_PATH_MAGIC - - -# LT_PATH_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([LT_PATH_LD], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl - -AC_ARG_WITH([gnu-ld], - [AS_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no])dnl - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - -_LT_DECL([], [deplibs_check_method], [1], - [Method to check whether dependent libraries are shared objects]) -_LT_DECL([], [file_magic_cmd], [1], - [Command to use when deplibs_check_method = "file_magic"]) -_LT_DECL([], [file_magic_glob], [1], - [How to find potential files when deplibs_check_method = "file_magic"]) -_LT_DECL([], [want_nocaseglob], [1], - [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) -])# _LT_CHECK_MAGIC_METHOD - - -# LT_PATH_NM -# ---------- -# find the pathname to a BSD- or MS-compatible name lister -AC_DEFUN([LT_PATH_NM], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - : ${lt_cv_path_NM=no} -fi]) -if test "$lt_cv_path_NM" != "no"; then - NM="$lt_cv_path_NM" -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols" - ;; - *) - DUMPBIN=: - ;; - esac - fi - AC_SUBST([DUMPBIN]) - if test "$DUMPBIN" != ":"; then - NM="$DUMPBIN" - fi -fi -test -z "$NM" && NM=nm -AC_SUBST([NM]) -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl - -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], - [lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) - cat conftest.out >&AS_MESSAGE_LOG_FD - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest*]) -])# LT_PATH_NM - -# Old names: -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_PROG_NM], []) -dnl AC_DEFUN([AC_PROG_NM], []) - -# _LT_CHECK_SHAREDLIB_FROM_LINKLIB -# -------------------------------- -# how to determine the name of the shared library -# associated with a specific link library. -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -m4_require([_LT_DECL_DLLTOOL]) -AC_CACHE_CHECK([how to associate runtime and link libraries], -lt_cv_sharedlib_from_linklib_cmd, -[lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh - # decide which to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd="$ECHO" - ;; -esac -]) -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - -_LT_DECL([], [sharedlib_from_linklib_cmd], [1], - [Command to associate shared and link libraries]) -])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB - - -# _LT_PATH_MANIFEST_TOOL -# ---------------------- -# locate the manifest tool -m4_defun([_LT_PATH_MANIFEST_TOOL], -[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], - [lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&AS_MESSAGE_LOG_FD - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest*]) -if test "x$lt_cv_path_mainfest_tool" != xyes; then - MANIFEST_TOOL=: -fi -_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl -])# _LT_PATH_MANIFEST_TOOL - - -# LT_LIB_M -# -------- -# check for math library -AC_DEFUN([LT_LIB_M], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -AC_SUBST([LIBM]) -])# LT_LIB_M - -# Old name: -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_CHECK_LIBM], []) - - -# _LT_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------- -m4_defun([_LT_COMPILER_NO_RTTI], -[m4_require([_LT_TAG_COMPILER])dnl - -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - case $cc_basename in - nvcc*) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; - *) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; - esac - - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], - [Compiler flag to turn off builtin functions]) -])# _LT_COMPILER_NO_RTTI - - -# _LT_CMD_GLOBAL_SYMBOLS -# ---------------------- -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([LT_PATH_NM])dnl -AC_REQUIRE([LT_PATH_LD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_TAG_COMPILER])dnl - -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function - # and D for any global variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK ['"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ -" s[1]~/^[@?]/{print s[1], s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx]" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) -/* DATA imports from DLLs on WIN32 con't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT@&t@_DLSYM_CONST -#elif defined(__osf__) -/* This system does not cope well with relocations in const data. */ -# define LT@&t@_DLSYM_CONST -#else -# define LT@&t@_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT@&t@_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[[]] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], - [Take the output of nm and produce a listing of raw symbols and C names]) -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], - [Transform the output of nm in a proper C declaration]) -_LT_DECL([global_symbol_to_c_name_address], - [lt_cv_sys_global_symbol_to_c_name_address], [1], - [Transform the output of nm in a C name address pair]) -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], - [Transform the output of nm in a C name address pair when lib prefix is needed]) -_LT_DECL([], [nm_file_list_spec], [1], - [Specify filename containing input files for $NM]) -]) # _LT_CMD_GLOBAL_SYMBOLS - - -# _LT_COMPILER_PIC([TAGNAME]) -# --------------------------- -m4_defun([_LT_COMPILER_PIC], -[m4_require([_LT_TAG_COMPILER])dnl -_LT_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_TAGVAR(lt_prog_compiler_static, $1)= - -m4_if([$1], [CXX], [ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix[[4-9]]*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - ecpc* ) - # old Intel C++ for x86_64 which still supported -KPIC. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - icpc* ) - # Intel C++, used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) - # IBM XL 8.0, 9.0 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' - if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - hpux9* | hpux10* | hpux11*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu) - case $cc_basename in - # old Intel for x86_64 which still supported -KPIC. - ecc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' - ;; - nagfor*) - # NAG Fortran compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - *Sun\ F* | *Sun*Fortran*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Intel*\ [[CF]]*Compiler*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - *Portland\ Group*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -AC_CACHE_CHECK([for $compiler option to produce PIC], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) -_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], - [Additional compiler flags for building library objects]) - -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], - [How to pass a linker flag through the compiler]) -# -# Check to make sure the static flag actually works. -# -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], - [Compiler flag to prevent dynamic linking]) -])# _LT_COMPILER_PIC - - -# _LT_LINKER_SHLIBS([TAGNAME]) -# ---------------------------- -# See if the linker supports building shared libraries. -m4_defun([_LT_LINKER_SHLIBS], -[AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -m4_if([$1], [CXX], [ - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - case $host_os in - aix[[4-9]]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - # Also, AIX nm treats weak defined symbols like other global defined - # symbols, whereas GNU nm marks them as "W". - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw* | cegcc*) - case $cc_basename in - cl*) - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - ;; - esac - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -], [ - runpath_var= - _LT_TAGVAR(allow_undefined_flag, $1)= - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(archive_cmds, $1)= - _LT_TAGVAR(archive_expsym_cmds, $1)= - _LT_TAGVAR(compiler_needs_object, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(hardcode_automatic, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(hardcode_libdir_separator, $1)= - _LT_TAGVAR(hardcode_minus_L, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(inherit_rpath, $1)=no - _LT_TAGVAR(link_all_deplibs, $1)=unknown - _LT_TAGVAR(module_cmds, $1)= - _LT_TAGVAR(module_expsym_cmds, $1)= - _LT_TAGVAR(old_archive_from_new_cmds, $1)= - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_TAGVAR(thread_safe_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. -dnl Note also adjust exclude_expsyms for C++ above. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - _LT_TAGVAR(ld_shlibs, $1)=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test "$with_gnu_ld" = yes; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; - *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test "$lt_use_gnu_ld_interface" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[[3-9]]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test "$host_os" = linux-dietlibc; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test "$tmp_diet" = no - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - _LT_TAGVAR(whole_archive_flag_spec, $1)= - tmp_sharedflag='--shared' ;; - xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix[[4-9]]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - # Also, AIX nm treats weak defined symbols like other global - # defined symbols, whereas GNU nm marks them as "W". - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' - - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - if test "$with_gnu_ld" = yes; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - bsdi[[45]]*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; - else - sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile="$lt_outputfile.exe" - lt_tool_outputfile="$lt_tool_outputfile.exe" - ;; - esac~ - if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC wrapper - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - esac - ;; - - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes && test "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - m4_if($1, [], [ - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - _LT_LINKER_OPTION([if $CC understands -b], - _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], - [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], - [lt_cv_irix_exported_symbol], - [save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - AC_LINK_IFELSE( - [AC_LANG_SOURCE( - [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], - [C++], [[int foo (void) { return 0; }]], - [Fortran 77], [[ - subroutine foo - end]], - [Fortran], [[ - subroutine foo - end]])])], - [lt_cv_irix_exported_symbol=yes], - [lt_cv_irix_exported_symbol=no]) - LDFLAGS="$save_LDFLAGS"]) - if test "$lt_cv_irix_exported_symbol" = yes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' - fi - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *nto* | *qnx*) - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='${wl}' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - if test x$host_vendor = xsni; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' - ;; - esac - fi - fi -]) -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) -test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld - -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl -_LT_DECL([], [extract_expsyms_cmds], [2], - [The commands to extract the exported symbol list from a shared archive]) - -# -# Do we need to explicitly link libc? -# -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_CACHE_CHECK([whether -lc should be explicitly linked in], - [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), - [$RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) - _LT_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) - then - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no - else - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - ]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) - ;; - esac - fi - ;; -esac - -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], - [Whether or not to add -lc for building shared libraries]) -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], - [enable_shared_with_static_runtimes], [0], - [Whether or not to disallow shared libs when runtime libs are static]) -_LT_TAGDECL([], [export_dynamic_flag_spec], [1], - [Compiler flag to allow reflexive dlopens]) -_LT_TAGDECL([], [whole_archive_flag_spec], [1], - [Compiler flag to generate shared objects directly from archives]) -_LT_TAGDECL([], [compiler_needs_object], [1], - [Whether the compiler copes with passing no objects directly]) -_LT_TAGDECL([], [old_archive_from_new_cmds], [2], - [Create an old-style archive from a shared archive]) -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], - [Create a temporary old-style archive to link instead of a shared archive]) -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) -_LT_TAGDECL([], [archive_expsym_cmds], [2]) -_LT_TAGDECL([], [module_cmds], [2], - [Commands used to build a loadable module if different from building - a shared archive.]) -_LT_TAGDECL([], [module_expsym_cmds], [2]) -_LT_TAGDECL([], [with_gnu_ld], [1], - [Whether we are building with GNU ld or not]) -_LT_TAGDECL([], [allow_undefined_flag], [1], - [Flag that allows shared libraries with undefined symbols to be built]) -_LT_TAGDECL([], [no_undefined_flag], [1], - [Flag that enforces no undefined symbols]) -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], - [Flag to hardcode $libdir into a binary during linking. - This must work even if $libdir does not exist]) -_LT_TAGDECL([], [hardcode_libdir_separator], [1], - [Whether we need a single "-rpath" flag with a separated argument]) -_LT_TAGDECL([], [hardcode_direct], [0], - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes - DIR into the resulting binary]) -_LT_TAGDECL([], [hardcode_direct_absolute], [0], - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes - DIR into the resulting binary and the resulting library dependency is - "absolute", i.e impossible to change by setting ${shlibpath_var} if the - library is relocated]) -_LT_TAGDECL([], [hardcode_minus_L], [0], - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_shlibpath_var], [0], - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_automatic], [0], - [Set to "yes" if building a shared library automatically hardcodes DIR - into the library and all subsequent libraries and executables linked - against it]) -_LT_TAGDECL([], [inherit_rpath], [0], - [Set to yes if linker adds runtime paths of dependent libraries - to runtime path list]) -_LT_TAGDECL([], [link_all_deplibs], [0], - [Whether libtool must link a program against all its dependency libraries]) -_LT_TAGDECL([], [always_export_symbols], [0], - [Set to "yes" if exported symbols are required]) -_LT_TAGDECL([], [export_symbols_cmds], [2], - [The commands to list exported symbols]) -_LT_TAGDECL([], [exclude_expsyms], [1], - [Symbols that should not be listed in the preloaded symbols]) -_LT_TAGDECL([], [include_expsyms], [1], - [Symbols that must always be exported]) -_LT_TAGDECL([], [prelink_cmds], [2], - [Commands necessary for linking programs (against libraries) with templates]) -_LT_TAGDECL([], [postlink_cmds], [2], - [Commands necessary for finishing linking programs]) -_LT_TAGDECL([], [file_list_spec], [1], - [Specify filename containing input files]) -dnl FIXME: Not yet implemented -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], -dnl [Compiler flag to generate thread safe objects]) -])# _LT_LINKER_SHLIBS - - -# _LT_LANG_C_CONFIG([TAG]) -# ------------------------ -# Ensure that the configuration variables for a C compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to `libtool'. -m4_defun([_LT_LANG_C_CONFIG], -[m4_require([_LT_DECL_EGREP])dnl -lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_TAG_COMPILER -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - LT_SYS_DLOPEN_SELF - _LT_CMD_STRIPLIB - - # Report which library types will actually be built - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$can_build_shared" = "no" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_CONFIG($1) -fi -AC_LANG_POP -CC="$lt_save_CC" -])# _LT_LANG_C_CONFIG - - -# _LT_LANG_CXX_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a C++ compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to `libtool'. -m4_defun([_LT_LANG_CXX_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -else - _lt_caught_CXX_error=yes -fi - -AC_LANG_PUSH(C++) -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(compiler_needs_object, $1)=no -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the CXX compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_caught_CXX_error" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="int some_variable = 0;" - - # Code to be used in simple link tests - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_CFLAGS=$CFLAGS - lt_save_LD=$LD - lt_save_GCC=$GCC - GCC=$GXX - lt_save_with_gnu_ld=$with_gnu_ld - lt_save_path_LD=$lt_cv_path_LD - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx - else - $as_unset lt_cv_prog_gnu_ld - fi - if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX - else - $as_unset lt_cv_path_LD - fi - test -z "${LDCXX+set}" || LD=$LDCXX - CC=${CXX-"c++"} - CFLAGS=$CXXFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - # We don't want -fno-exception when compiling C++ code, so set the - # no_builtin_flag separately - if test "$GXX" = yes; then - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - else - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - fi - - if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - LT_PATH_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | - $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - GXX=no - with_gnu_ld=no - wlarc= - fi - - # PORTME: fill in a description of your system's C++ link characteristics - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) - _LT_TAGVAR(ld_shlibs, $1)=yes - case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aix[[4-9]]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' - - if test "$GXX" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to - # export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty - # executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - if test "$with_gnu_ld" = yes; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared - # libraries. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32* | cegcc*) - case $GXX,$cc_basename in - ,cl* | no,cl*) - # Native MSVC - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; - else - $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile="$lt_outputfile.exe" - lt_tool_outputfile="$lt_tool_outputfile.exe" - ;; - esac~ - func_to_tool_file "$lt_outputfile"~ - if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # g++ - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - freebsd2.*) - # C++ shared libraries reported to be fairly broken before - # switch to ELF - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - freebsd-elf*) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - gnu*) - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test "$GXX" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' - fi - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc* | ecpc* ) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - case `$CC -V` in - *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ - compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ - $RANLIB $oldlib' - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - ;; - *) # Version 6 and above use weak symbols - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' - ;; - xl* | mpixl* | bgxl*) - # IBM XL 8.0 on PPC, with GNU ld - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - - lynxos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - m88k*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - - *nto* | *qnx*) - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - openbsd2*) - # C++ shared libraries are fairly broken - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd=func_echo_all - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - case $host in - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; - esac - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - case $host in - osf3*) - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - ;; - *) - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ - $RM $lib.exp' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - case $host in - osf3*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - psos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | $GREP -v '^2\.7' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - fi - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ - '"$_LT_TAGVAR(old_archive_cmds, $1)" - _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ - '"$_LT_TAGVAR(reload_cmds, $1)" - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - vxworks*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) - test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - - _LT_TAGVAR(GCC, $1)="$GXX" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS - LDCXX=$LD - LD=$lt_save_LD - GCC=$lt_save_GCC - with_gnu_ld=$lt_save_with_gnu_ld - lt_cv_path_LDCXX=$lt_cv_path_LD - lt_cv_path_LD=$lt_save_path_LD - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -fi # test "$_lt_caught_CXX_error" != yes - -AC_LANG_POP -])# _LT_LANG_CXX_CONFIG - - -# _LT_FUNC_STRIPNAME_CNF -# ---------------------- -# func_stripname_cnf prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# -# This function is identical to the (non-XSI) version of func_stripname, -# except this one can be used by m4 code that may be executed by configure, -# rather than the libtool script. -m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl -AC_REQUIRE([_LT_DECL_SED]) -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) -func_stripname_cnf () -{ - case ${2} in - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; - esac -} # func_stripname_cnf -])# _LT_FUNC_STRIPNAME_CNF - -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) -# --------------------------------- -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl -# Dependencies to place before and after the object being linked: -_LT_TAGVAR(predep_objects, $1)= -_LT_TAGVAR(postdep_objects, $1)= -_LT_TAGVAR(predeps, $1)= -_LT_TAGVAR(postdeps, $1)= -_LT_TAGVAR(compiler_lib_search_path, $1)= - -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF -int a; -void foo (void) { a = 0; } -_LT_EOF -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF -class Foo -{ -public: - Foo (void) { a = 0; } -private: - int a; -}; -_LT_EOF -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer*4 a - a=0 - return - end -_LT_EOF -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer a - a=0 - return - end -_LT_EOF -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF -public class foo { - private int a; - public void bar (void) { - a = 0; - } -}; -_LT_EOF -], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF -package foo -func foo() { -} -_LT_EOF -]) - -_lt_libdeps_save_CFLAGS=$CFLAGS -case "$CC $CFLAGS " in #( -*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; -*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; -*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; -esac - -dnl Parse the compiler output and extract the necessary -dnl objects, libraries and library flags. -if AC_TRY_EVAL(ac_compile); then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - for p in `eval "$output_verbose_link_cmd"`; do - case ${prev}${p} in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" || - test $p = "-R"; then - prev=$p - continue - fi - - # Expand the sysroot to ease extracting the directories later. - if test -z "$prev"; then - case $p in - -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; - -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; - -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; - esac - fi - case $p in - =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; - esac - if test "$pre_test_object_deps_done" = no; then - case ${prev} in - -L | -R) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then - _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" - else - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$_LT_TAGVAR(postdeps, $1)"; then - _LT_TAGVAR(postdeps, $1)="${prev}${p}" - else - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" - fi - fi - prev= - ;; - - *.lto.$objext) ;; # Ignore GCC LTO objects - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then - _LT_TAGVAR(predep_objects, $1)="$p" - else - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" - fi - else - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then - _LT_TAGVAR(postdep_objects, $1)="$p" - else - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling $1 test program" -fi - -$RM -f confest.$objext -CFLAGS=$_lt_libdeps_save_CFLAGS - -# PORTME: override above test on systems where it is broken -m4_if([$1], [CXX], -[case $host_os in -interix[[3-9]]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - _LT_TAGVAR(predep_objects,$1)= - _LT_TAGVAR(postdep_objects,$1)= - _LT_TAGVAR(postdeps,$1)= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - if test "$solaris_use_stlport4" != yes; then - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC* | sunCC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) - -case " $_LT_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac - _LT_TAGVAR(compiler_lib_search_dirs, $1)= -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` -fi -_LT_TAGDECL([], [compiler_lib_search_dirs], [1], - [The directories searched by this compiler when creating a shared library]) -_LT_TAGDECL([], [predep_objects], [1], - [Dependencies to place before and after the objects being linked to - create a shared library]) -_LT_TAGDECL([], [postdep_objects], [1]) -_LT_TAGDECL([], [predeps], [1]) -_LT_TAGDECL([], [postdeps], [1]) -_LT_TAGDECL([], [compiler_lib_search_path], [1], - [The library search path used internally by the compiler when linking - a shared library]) -])# _LT_SYS_HIDDEN_LIBDEPS - - -# _LT_LANG_F77_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a Fortran 77 compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_F77_CONFIG], -[AC_LANG_PUSH(Fortran 77) -if test -z "$F77" || test "X$F77" = "Xno"; then - _lt_disable_F77=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the F77 compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_disable_F77" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC="$CC" - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${F77-"f77"} - CFLAGS=$FFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - GCC=$G77 - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$can_build_shared" = "no" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)="$G77" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC="$lt_save_CC" - CFLAGS="$lt_save_CFLAGS" -fi # test "$_lt_disable_F77" != yes - -AC_LANG_POP -])# _LT_LANG_F77_CONFIG - - -# _LT_LANG_FC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for a Fortran compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_FC_CONFIG], -[AC_LANG_PUSH(Fortran) - -if test -z "$FC" || test "X$FC" = "Xno"; then - _lt_disable_FC=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for fc test sources. -ac_ext=${ac_fc_srcext-f} - -# Object file extension for compiled fc test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the FC compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_disable_FC" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC="$CC" - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${FC-"f95"} - CFLAGS=$FCFLAGS - compiler=$CC - GCC=$ac_cv_fc_compiler_gnu - - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$can_build_shared" = "no" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS -fi # test "$_lt_disable_FC" != yes - -AC_LANG_POP -])# _LT_LANG_FC_CONFIG - - -# _LT_LANG_GCJ_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Java Compiler compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_GCJ_CONFIG], -[AC_REQUIRE([LT_PROG_GCJ])dnl -AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GCJ-"gcj"} -CFLAGS=$GCJFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)="$LD" -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GCJ_CONFIG - - -# _LT_LANG_GO_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Go compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_GO_CONFIG], -[AC_REQUIRE([LT_PROG_GO])dnl -AC_LANG_SAVE - -# Source file extension for Go test sources. -ac_ext=go - -# Object file extension for compiled Go test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="package main; func main() { }" - -# Code to be used in simple link tests -lt_simple_link_test_code='package main; func main() { }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GOC-"gccgo"} -CFLAGS=$GOFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)="$LD" -_LT_CC_BASENAME([$compiler]) - -# Go did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GO_CONFIG - - -# _LT_LANG_RC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for the Windows resource compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_RC_CONFIG], -[AC_REQUIRE([LT_PROG_RC])dnl -AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC= -CC=${RC-"windres"} -CFLAGS= -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -if test -n "$compiler"; then - : - _LT_CONFIG($1) -fi - -GCC=$lt_save_GCC -AC_LANG_RESTORE -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_RC_CONFIG - - -# LT_PROG_GCJ -# ----------- -AC_DEFUN([LT_PROG_GCJ], -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], - [AC_CHECK_TOOL(GCJ, gcj,) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS)])])[]dnl -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_GCJ], []) - - -# LT_PROG_GO -# ---------- -AC_DEFUN([LT_PROG_GO], -[AC_CHECK_TOOL(GOC, gccgo,) -]) - - -# LT_PROG_RC -# ---------- -AC_DEFUN([LT_PROG_RC], -[AC_CHECK_TOOL(RC, windres,) -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_RC], []) - - -# _LT_DECL_EGREP -# -------------- -# If we don't have a new enough Autoconf to choose the best grep -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_EGREP], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_REQUIRE([AC_PROG_FGREP])dnl -test -z "$GREP" && GREP=grep -_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) -_LT_DECL([], [EGREP], [1], [An ERE matcher]) -_LT_DECL([], [FGREP], [1], [A literal string matcher]) -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too -AC_SUBST([GREP]) -]) - - -# _LT_DECL_OBJDUMP -# -------------- -# If we don't have a new enough Autoconf to choose the best objdump -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_OBJDUMP], -[AC_CHECK_TOOL(OBJDUMP, objdump, false) -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) -AC_SUBST([OBJDUMP]) -]) - -# _LT_DECL_DLLTOOL -# ---------------- -# Ensure DLLTOOL variable is set. -m4_defun([_LT_DECL_DLLTOOL], -[AC_CHECK_TOOL(DLLTOOL, dlltool, false) -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) -AC_SUBST([DLLTOOL]) -]) - -# _LT_DECL_SED -# ------------ -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -m4_defun([_LT_DECL_SED], -[AC_PROG_SED -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" -_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], - [Sed that helps us avoid accidentally triggering echo(1) options like -n]) -])# _LT_DECL_SED - -m4_ifndef([AC_PROG_SED], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ - -m4_defun([AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -])#AC_PROG_SED -])#m4_ifndef - -# Old name: -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_SED], []) - - -# _LT_CHECK_SHELL_FEATURES -# ------------------------ -# Find out whether the shell is Bourne or XSI compatible, -# or has some other useful features. -m4_defun([_LT_CHECK_SHELL_FEATURES], -[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) -# Try some XSI features -xsi_shell=no -( _lt_dummy="a/b/c" - test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ - = c,a/b,b/c, \ - && eval 'test $(( 1 + 1 )) -eq 2 \ - && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ - && xsi_shell=yes -AC_MSG_RESULT([$xsi_shell]) -_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) - -AC_MSG_CHECKING([whether the shell understands "+="]) -lt_shell_append=no -( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ - >/dev/null 2>&1 \ - && lt_shell_append=yes -AC_MSG_RESULT([$lt_shell_append]) -_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl -])# _LT_CHECK_SHELL_FEATURES - - -# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) -# ------------------------------------------------------ -# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and -# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. -m4_defun([_LT_PROG_FUNCTION_REPLACE], -[dnl { -sed -e '/^$1 ()$/,/^} # $1 /c\ -$1 ()\ -{\ -m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) -} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: -]) - - -# _LT_PROG_REPLACE_SHELLFNS -# ------------------------- -# Replace existing portable implementations of several shell functions with -# equivalent extended shell implementations where those features are available.. -m4_defun([_LT_PROG_REPLACE_SHELLFNS], -[if test x"$xsi_shell" = xyes; then - _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac]) - - _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl - func_basename_result="${1##*/}"]) - - _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac - func_basename_result="${1##*/}"]) - - _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary parameter first. - func_stripname_result=${3} - func_stripname_result=${func_stripname_result#"${1}"} - func_stripname_result=${func_stripname_result%"${2}"}]) - - _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl - func_split_long_opt_name=${1%%=*} - func_split_long_opt_arg=${1#*=}]) - - _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl - func_split_short_opt_arg=${1#??} - func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) - - _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl - case ${1} in - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; - *) func_lo2o_result=${1} ;; - esac]) - - _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) - - _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) - - _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) -fi - -if test x"$lt_shell_append" = xyes; then - _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) - - _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl - func_quote_for_eval "${2}" -dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ - eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) - - # Save a `func_append' function call where possible by direct use of '+=' - sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") - test 0 -eq $? || _lt_function_replace_fail=: -else - # Save a `func_append' function call even when '+=' is not available - sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") - test 0 -eq $? || _lt_function_replace_fail=: -fi - -if test x"$_lt_function_replace_fail" = x":"; then - AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) -fi -]) - -# _LT_PATH_CONVERSION_FUNCTIONS -# ----------------------------- -# Determine which file name conversion functions should be used by -# func_to_host_file (and, implicitly, by func_to_host_path). These are needed -# for certain cross-compile configurations and native mingw. -m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_MSG_CHECKING([how to convert $build file names to $host format]) -AC_CACHE_VAL(lt_cv_to_host_file_cmd, -[case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac -]) -to_host_file_cmd=$lt_cv_to_host_file_cmd -AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) -_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], - [0], [convert $build file names to $host format])dnl - -AC_MSG_CHECKING([how to convert $build file names to toolchain format]) -AC_CACHE_VAL(lt_cv_to_tool_file_cmd, -[#assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac -]) -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) -_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], - [0], [convert $build files to toolchain format])dnl -])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/deps/jellyfish-2.2.0/sub_commands/.deps/.dirstamp b/deps/jellyfish-2.2.0/sub_commands/.deps/.dirstamp deleted file mode 100644 index e69de29b..00000000 diff --git a/deps/jellyfish-2.2.0/sub_commands/.deps/.gitignore b/deps/jellyfish-2.2.0/sub_commands/.deps/.gitignore deleted file mode 100644 index ee50cd7a..00000000 --- a/deps/jellyfish-2.2.0/sub_commands/.deps/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.Po diff --git a/deps/jellyfish-2.2.0/sub_commands/.dirstamp b/deps/jellyfish-2.2.0/sub_commands/.dirstamp deleted file mode 100644 index e69de29b..00000000 diff --git a/deps/jellyfish-2.2.0/sub_commands/.gitignore b/deps/jellyfish-2.2.0/sub_commands/.gitignore index 5761abcf..3b835998 100644 --- a/deps/jellyfish-2.2.0/sub_commands/.gitignore +++ b/deps/jellyfish-2.2.0/sub_commands/.gitignore @@ -1 +1,3 @@ +/.deps/ *.o +*.dirstamp diff --git a/deps/jellyfish-2.2.0/tests/compat.sh.in b/deps/jellyfish-2.2.0/tests/compat.sh.in index 37bca5a5..0d605839 100644 --- a/deps/jellyfish-2.2.0/tests/compat.sh.in +++ b/deps/jellyfish-2.2.0/tests/compat.sh.in @@ -3,7 +3,7 @@ if [ -z "$nCPUs" ]; then fi pref=$(basename $0 .sh) DIR=../bin -JF="$DIR/jellyfish" +JF="$DIR/kat_jellyfish" [ -n "$VALGRIND" ] && JF="valgrind $JF" SRCDIR=@abs_top_srcdir@ BUILDDIR=@abs_top_builddir@ diff --git a/deps/jellyfish-2.2.0/unit_tests/.deps/.gitignore b/deps/jellyfish-2.2.0/unit_tests/.deps/.gitignore deleted file mode 100644 index ee50cd7a..00000000 --- a/deps/jellyfish-2.2.0/unit_tests/.deps/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.Po diff --git a/deps/jellyfish-2.2.0/unit_tests/.gitignore b/deps/jellyfish-2.2.0/unit_tests/.gitignore index 95d9c9d8..0904a663 100644 --- a/deps/jellyfish-2.2.0/unit_tests/.gitignore +++ b/deps/jellyfish-2.2.0/unit_tests/.gitignore @@ -1,3 +1,4 @@ +/.deps/ *.dirstamp *.o *.trs diff --git a/deps/jellyfish-2.2.0/unit_tests/gtest/gtest.h b/deps/jellyfish-2.2.0/unit_tests/gtest/gtest.h index 4f3804f7..d1dcf268 100644 --- a/deps/jellyfish-2.2.0/unit_tests/gtest/gtest.h +++ b/deps/jellyfish-2.2.0/unit_tests/gtest/gtest.h @@ -582,7 +582,7 @@ # include // NOLINT // For timespec and nanosleep, used below. -# include // NOLINT +# include // NOLINT #endif // Determines whether Google Test can use tr1/tuple. You can define diff --git a/deps/jellyfish-2.2.0/unit_tests/gtest/src/.deps/.gitignore b/deps/jellyfish-2.2.0/unit_tests/gtest/src/.deps/.gitignore deleted file mode 100644 index a4eafd44..00000000 --- a/deps/jellyfish-2.2.0/unit_tests/gtest/src/.deps/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.Plo diff --git a/deps/jellyfish-2.2.0/unit_tests/gtest/src/.gitignore b/deps/jellyfish-2.2.0/unit_tests/gtest/src/.gitignore index c8b522d6..62b777f0 100644 --- a/deps/jellyfish-2.2.0/unit_tests/gtest/src/.gitignore +++ b/deps/jellyfish-2.2.0/unit_tests/gtest/src/.gitignore @@ -1 +1,3 @@ +/.deps/ +/.libs/ *.lo diff --git a/deps/jellyfish-2.2.0/unit_tests/gtest/src/gtest-all.cc b/deps/jellyfish-2.2.0/unit_tests/gtest/src/gtest-all.cc index a9a03b2e..311d885d 100644 --- a/deps/jellyfish-2.2.0/unit_tests/gtest/src/gtest-all.cc +++ b/deps/jellyfish-2.2.0/unit_tests/gtest/src/gtest-all.cc @@ -309,7 +309,7 @@ class GTEST_API_ SingleFailureChecker { #include #include #include -#include +#include #include #include diff --git a/deps/jellyfish-2.2.0/unit_tests/test_mer_dna_bloom_counter.cc b/deps/jellyfish-2.2.0/unit_tests/test_mer_dna_bloom_counter.cc index 7e4ba181..ea1ef166 100644 --- a/deps/jellyfish-2.2.0/unit_tests/test_mer_dna_bloom_counter.cc +++ b/deps/jellyfish-2.2.0/unit_tests/test_mer_dna_bloom_counter.cc @@ -46,7 +46,7 @@ struct TestBloomFilter { }; typedef ::testing::Types TestBloomCounterTypes; -TYPED_TEST_CASE(MerDnaBloomTest, TestBloomCounterTypes); +/*TYPED_TEST_CASE(MerDnaBloomTest, TestBloomCounterTypes); TYPED_TEST(MerDnaBloomTest, FalsePositive) { @@ -145,6 +145,6 @@ TYPED_TEST(MerDnaBloomTest, Move) { typename TypeParam::bloom_type bc2(std::move(bc)); EXPECT_EQ(k, bc2.k()); EXPECT_EQ(m, bc.m()); -} +}*/ } diff --git a/deps/jellyfish-2.2.0/unit_tests/test_mer_heap.cc b/deps/jellyfish-2.2.0/unit_tests/test_mer_heap.cc index 44cf91ab..ceeb54ae 100644 --- a/deps/jellyfish-2.2.0/unit_tests/test_mer_heap.cc +++ b/deps/jellyfish-2.2.0/unit_tests/test_mer_heap.cc @@ -16,7 +16,7 @@ static const uint16_t mer_len = 50; static const size_t nb_mers = ary_size / 2; class MerHeapTest : public ::testing::TestWithParam { -protected: +public: static void SetUpTestCase() { mer_dna::k(mer_len); shared_ary = new large_array(ary_size, mer_len * 2, 0, 63); diff --git a/doc/.gitignore b/doc/.gitignore index 84c048a7..d3c5384d 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1 +1,2 @@ /build/ +*.Makefile.swp diff --git a/doc/Makefile b/doc/Makefile index b1e35ce0..9c9f05cd 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -6,21 +6,83 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = build +MKDIR_P = mkdir -p +INSTALL = /usr/bin/install -c -m 644 + +# Set autoconf variables +prefix = /usr/local +PACKAGE_TARNAME = kat +top_srcdir = .. +srcdir = . +docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} +mandir = ${datarootdir}/man +htmldir = ${docdir} +pdfdir = ${docdir} +infodir = ${datarootdir}/info +top_builddir = .. +datarootdir = ${prefix}/share +datadir = ${datarootdir} # User-friendly check for sphinx-build -ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) -endif +#if test $(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?) = 1; then +#$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +#fi # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c source $(top_srcdir)/doc/source # the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c source $(top_srcdir)/doc/source .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext + +DPS=$(top_srcdir)/doc/source +DPI=$(DPS)/images +DISTFILES = $(DPS)/index.rst \ + $(DPS)/installation.rst \ + $(DPS)/kmer.rst \ + $(DPS)/using.rst \ + $(DPS)/walkthrough.rst \ + $(DPI)/ccoli_comp.png \ + $(DPI)/ccoli_gcp.png \ + $(DPI)/ccoli_hist.png \ + $(DPI)/contaminant_all.png \ + $(DPI)/contaminant_MP.png \ + $(DPI)/contaminant_ope1.png \ + $(DPI)/contaminant_ope2.png \ + $(DPI)/contaminant_PE.png \ + $(DPI)/dist_analysis.png \ + $(DPI)/gc_bias_a.png \ + $(DPI)/gc_bias_b.png \ + $(DPI)/gc_bias_c.png \ + $(DPI)/gc_bias_d.png \ + $(DPI)/heterozygous_perfect_1.png \ + $(DPI)/heterozygous_perfect_2.png \ + $(DPI)/heterozygous_real.png \ + $(DPI)/kat_logo.png \ + $(DPI)/kmer_spectra1.png \ + $(DPI)/kmer_spectra_breakdown.png \ + $(DPI)/pe_v_asm_clean.png \ + $(DPI)/pe_v_mp_after_density.png \ + $(DPI)/pe_v_mp_after_shared.png \ + $(DPI)/pe_v_mp_before_density.png \ + $(DPI)/pe_v_mp_before_shared.png \ + $(DPI)/pe_v_pe_1_density.png \ + $(DPI)/pe_v_pe_1_shared.png \ + $(DPI)/pe_v_pe_2_density.png \ + $(DPI)/pe_v_pe_2_shared_1.png \ + $(DPI)/pe_v_pe_2_shared_2.png \ + $(DPI)/pe_v_rna_bar.png \ + $(DPI)/pe_v_rna_shared.png \ + $(DPI)/profile.png \ + $(DPI)/real_r1_v_r2.png \ + $(DPI)/real_r1_v_r2_shared.png \ + $(DPI)/simulated_r1_v_r2.png + + + help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @@ -175,3 +237,81 @@ pseudoxml: $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml @echo @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." + +# Automake targets that we'll ignore +EMPTY_AUTOMAKE_TARGETS = check installcheck tags ctags dvi install-exec install-dvi install-ps install-info +.PHONY: $(EMPTY_AUTOMAKE_TARGETS) +$(EMPTY_AUTOMAKE_TARGETS): + +# Automake targets that we'll use (that aren't already described) +.PHONY: all man pdf mostly-clean distclean maintainer-clean install install-data install-man install-html install-pdf installdirs uninstall distdirs + +# Hook in conventional make targets for building docs +all: html man + +# Redirect pdf to latexpdf +pdf: latexpdf + +# Redirect all cleaning targets to clean +mostly-clean: clean +distclean: clean +maintainer-clean: clean + +# Install and uninstall overrides +install: install-data + +install-data: install-man install-pdf install-html + +# Fail on error +install-man: + test -s build && test -s build/man && $(INSTALL) build/man/kat.1 $(DESTDIR)$(mandir)/man1/kat.1 + +# Skip any errors here... we don't require the PDF to be generated +install-pdf: + -test -s build && test -s build/latex && test -s build/latex/kat.pdf && $(INSTALL) build/latex/kat.pdf $(DESTDIR)$(pdfdir)/kat.pdf; + +install-html: + test -s build && test -s build/html && $(MKDIR_P) $(DESTDIR)$(htmldir) && cp -rf build/html $(DESTDIR)$(htmldir) && chmod 755 -R $(DESTDIR)$(htmldir) + +# Make sure all installation directories (e.g. $(bindir)) +# actually exist by making them if necessary. +installdirs: mkinstalldirs + $(srcdir)/mkinstalldirs \ + $(DESTDIR)$(pdfdir) \ + $(DESTDIR)$(htmldir) \ + $(DESTDIR)$(mandir)/man1 + +uninstall: + rm -Rf "$(DESTDIR)$(mandir)/man1/kat.1" "$(DESTDIR)$(pdfdir)/kat.pdf" "$(DESTDIR)$(htmldir)" + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 00000000..8a3580fe --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,317 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = build +MKDIR_P = mkdir -p +INSTALL = /usr/bin/install -c -m 644 + +# Set autoconf variables +prefix = @prefix@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +top_srcdir = @top_srcdir@ +srcdir = @srcdir@ +docdir = @docdir@ +mandir = @mandir@ +htmldir = @htmldir@ +pdfdir = @pdfdir@ +infodir = @infodir@ +top_builddir = @top_builddir@ +datarootdir = @datarootdir@ +datadir = @datadir@ + +# User-friendly check for sphinx-build +#if test $(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?) = 1; then +#$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +#fi + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c source $(top_srcdir)/doc/source +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c source $(top_srcdir)/doc/source + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext + + +DPS=$(top_srcdir)/doc/source +DPI=$(DPS)/images +DISTFILES = $(DPS)/index.rst \ + $(DPS)/installation.rst \ + $(DPS)/kmer.rst \ + $(DPS)/using.rst \ + $(DPS)/walkthrough.rst \ + $(DPI)/ccoli_comp.png \ + $(DPI)/ccoli_gcp.png \ + $(DPI)/ccoli_hist.png \ + $(DPI)/contaminant_all.png \ + $(DPI)/contaminant_MP.png \ + $(DPI)/contaminant_ope1.png \ + $(DPI)/contaminant_ope2.png \ + $(DPI)/contaminant_PE.png \ + $(DPI)/dist_analysis.png \ + $(DPI)/gc_bias_a.png \ + $(DPI)/gc_bias_b.png \ + $(DPI)/gc_bias_c.png \ + $(DPI)/gc_bias_d.png \ + $(DPI)/heterozygous_perfect_1.png \ + $(DPI)/heterozygous_perfect_2.png \ + $(DPI)/heterozygous_real.png \ + $(DPI)/kat_logo.png \ + $(DPI)/kmer_spectra1.png \ + $(DPI)/kmer_spectra_breakdown.png \ + $(DPI)/pe_v_asm_clean.png \ + $(DPI)/pe_v_mp_after_density.png \ + $(DPI)/pe_v_mp_after_shared.png \ + $(DPI)/pe_v_mp_before_density.png \ + $(DPI)/pe_v_mp_before_shared.png \ + $(DPI)/pe_v_pe_1_density.png \ + $(DPI)/pe_v_pe_1_shared.png \ + $(DPI)/pe_v_pe_2_density.png \ + $(DPI)/pe_v_pe_2_shared_1.png \ + $(DPI)/pe_v_pe_2_shared_2.png \ + $(DPI)/pe_v_rna_bar.png \ + $(DPI)/pe_v_rna_shared.png \ + $(DPI)/profile.png \ + $(DPI)/real_r1_v_r2.png \ + $(DPI)/real_r1_v_r2_shared.png \ + $(DPI)/simulated_r1_v_r2.png + + + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " xml to make Docutils-native XML files" + @echo " pseudoxml to make pseudoxml-XML files for display purposes" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + +clean: + rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/KAT.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/KAT.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/KAT" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/KAT" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +latexpdfja: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through platex and dvipdfmx..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." + +xml: + $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml + @echo + @echo "Build finished. The XML files are in $(BUILDDIR)/xml." + +pseudoxml: + $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml + @echo + @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." + +# Automake targets that we'll ignore +EMPTY_AUTOMAKE_TARGETS = check installcheck tags ctags dvi install-exec install-dvi install-ps install-info +.PHONY: $(EMPTY_AUTOMAKE_TARGETS) +$(EMPTY_AUTOMAKE_TARGETS): + +# Automake targets that we'll use (that aren't already described) +.PHONY: all man pdf mostly-clean distclean maintainer-clean install install-data install-man install-html install-pdf installdirs uninstall distdirs + +# Hook in conventional make targets for building docs +all: html man + +# Redirect pdf to latexpdf +pdf: latexpdf + +# Redirect all cleaning targets to clean +mostly-clean: clean +distclean: clean +maintainer-clean: clean + +# Install and uninstall overrides +install: install-data + +install-data: install-man install-pdf install-html + +# Fail on error +install-man: + test -s build && test -s build/man && $(INSTALL) build/man/@PACKAGE_TARNAME@.1 $(DESTDIR)$(mandir)/man1/@PACKAGE_TARNAME@.1 + +# Skip any errors here... we don't require the PDF to be generated +install-pdf: + -test -s build && test -s build/latex && test -s build/latex/@PACKAGE_TARNAME@.pdf && $(INSTALL) build/latex/@PACKAGE_TARNAME@.pdf $(DESTDIR)$(pdfdir)/@PACKAGE_TARNAME@.pdf; + +install-html: + test -s build && test -s build/html && $(MKDIR_P) $(DESTDIR)$(htmldir) && cp -rf build/html $(DESTDIR)$(htmldir) && chmod 755 -R $(DESTDIR)$(htmldir) + +# Make sure all installation directories (e.g. $(bindir)) +# actually exist by making them if necessary. +installdirs: mkinstalldirs + $(srcdir)/mkinstalldirs \ + $(DESTDIR)$(pdfdir) \ + $(DESTDIR)$(htmldir) \ + $(DESTDIR)$(mandir)/man1 + +uninstall: + rm -Rf "$(DESTDIR)$(mandir)/man1/@PACKAGE_TARNAME@.1" "$(DESTDIR)$(pdfdir)/@PACKAGE_TARNAME@.pdf" "$(DESTDIR)$(htmldir)" + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index d3f49b3f..32c25248 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -23,7 +23,7 @@ # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' +needs_sphinx = '1.3' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom @@ -46,17 +46,17 @@ master_doc = 'index' # General information about the project. -project = u'KAT' -copyright = u'2015, Daniel Mapleson, Bernardo Clavijo, Gonzalo Garcia, Jon Wright' +project = u'kat' +copyright = u'2015, Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = 'V2.1' +version = '2.1.0' # The full version, including alpha/beta/rc tags. -release = 'V2.1' +release = '2.1.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -101,7 +101,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +html_theme = 'alabaster' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -120,7 +120,7 @@ # The name of an image file (relative to this directory) to place at the top # of the sidebar. -#html_logo = None +html_logo = '../../doc/source/images/kat_logo.png' # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 @@ -156,7 +156,7 @@ #html_domain_indices = True # If false, no index is generated. -#html_use_index = True +html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False @@ -186,10 +186,10 @@ latex_elements = { # The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', +'papersize': 'a4paper', # The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', +'pointsize': '10pt', # Additional stuff for the LaTeX preamble. #'preamble': '', @@ -199,17 +199,20 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'KAT.tex', u'KAT Documentation', - u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright', 'manual'), + ('index', + 'kat.tex', + u'KAT Documentation', + u'Daniel~Mapleson \\and Bernardo~Clavijo \\and George~Kettleborough \\and Gonzalo~Garcia \\and Jon~Wright', + 'manual') ] # The name of an image file (relative to this directory) to place at the top of # the title page. -#latex_logo = None +latex_logo = '../../doc/source/images/kat_logo.png' # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. -#latex_use_parts = False +latex_use_parts = True # If true, show page references after internal links. #latex_show_pagerefs = False @@ -243,9 +246,9 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'KAT', u'KAT Documentation', - u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright', - 'KAT', + ('index', 'kat', u'KAT Documentation', + u'Daniel Mapleson, Bernardo Clavijo,\nGeorge Kettleborough, Gonzalo Garcia,\nJon Wright', + 'kat', 'KAT is a suite of tools that generating, analysing and comparing k-mer spectra produced from sequence files.', 'Miscellaneous'), ] @@ -266,7 +269,7 @@ # -- Options for Epub output ---------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'KAT' +epub_title = u'kat' epub_author = u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' epub_publisher = u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' epub_copyright = u'2015, Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' diff --git a/doc/source/conf.py.in b/doc/source/conf.py.in new file mode 100644 index 00000000..4dfd8ee8 --- /dev/null +++ b/doc/source/conf.py.in @@ -0,0 +1,336 @@ +# -*- coding: utf-8 -*- +# +# KAT documentation build configuration file, created by +# sphinx-quickstart on Thu Oct 8 16:26:54 2015. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys +import os + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +needs_sphinx = '1.3' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.pngmath', + 'sphinx.ext.mathjax', +] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'@PACKAGE_TARNAME@' +copyright = u'2015, Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = '@PACKAGE_VERSION@' +# The full version, including alpha/beta/rc tags. +release = '@PACKAGE_VERSION@' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = [] + +# The reST default role (used for this markup: `text`) to use for all +# documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + +# If true, keep warnings as "system message" paragraphs in the built documents. +#keep_warnings = False + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'alabaster' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +html_logo = '@top_srcdir@/doc/source/images/kat_logo.png' + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# Add any extra paths that contain custom files (such as robots.txt or +# .htaccess) here, relative to this directory. These files are copied +# directly to the root of the documentation. +#html_extra_path = [] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'KATdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +'papersize': 'a4paper', + +# The font size ('10pt', '11pt' or '12pt'). +'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + ('index', + '@PACKAGE_TARNAME@.tex', + u'KAT Documentation', + u'Daniel~Mapleson \\and Bernardo~Clavijo \\and George~Kettleborough \\and Gonzalo~Garcia \\and Jon~Wright', + 'manual') +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +latex_logo = '@top_srcdir@/doc/source/images/kat_logo.png' + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +latex_use_parts = True + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', '@PACKAGE_TARNAME@', u'KAT Documentation', + [u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright'], 1) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ('index', '@PACKAGE_TARNAME@', u'KAT Documentation', + u'Daniel Mapleson, Bernardo Clavijo,\nGeorge Kettleborough, Gonzalo Garcia,\nJon Wright', + '@PACKAGE_TARNAME@', + 'KAT is a suite of tools that generating, analysing and comparing k-mer spectra produced from sequence files.', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' + +# If true, do not generate a @detailmenu in the "Top" node's menu. +#texinfo_no_detailmenu = False + + +# -- Options for Epub output ---------------------------------------------- + +# Bibliographic Dublin Core info. +epub_title = u'@PACKAGE_TARNAME@' +epub_author = u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' +epub_publisher = u'Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' +epub_copyright = u'2015, Daniel Mapleson, Bernardo Clavijo, George Kettleborough, Gonzalo Garcia, Jon Wright' + +# The basename for the epub file. It defaults to the project name. +#epub_basename = u'KAT' + +# The HTML theme for the epub output. Since the default themes are not optimized +# for small screen space, using the same theme for HTML and epub output is +# usually not wise. This defaults to 'epub', a theme designed to save visual +# space. +#epub_theme = 'epub' + +# The language of the text. It defaults to the language option +# or en if the language is not set. +#epub_language = '' + +# The scheme of the identifier. Typical schemes are ISBN or URL. +#epub_scheme = '' + +# The unique identifier of the text. This can be a ISBN number +# or the project homepage. +#epub_identifier = '' + +# A unique identification for the text. +#epub_uid = '' + +# A tuple containing the cover image and cover page html template filenames. +#epub_cover = () + +# A sequence of (type, uri, title) tuples for the guide element of content.opf. +#epub_guide = () + +# HTML files that should be inserted before the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_pre_files = [] + +# HTML files shat should be inserted after the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_post_files = [] + +# A list of files that should not be packed into the epub file. +#epub_exclude_files = [] + +# The depth of the table of contents in toc.ncx. +#epub_tocdepth = 3 + +# Allow duplicate toc entries. +#epub_tocdup = True + +# Choose between 'default' and 'includehidden'. +#epub_tocscope = 'default' + +# Fix unsupported image types using the PIL. +#epub_fix_images = False + +# Scale large images. +#epub_max_image_width = 0 + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#epub_show_urls = 'inline' + +# If false, no index is generated. +#epub_use_index = True diff --git a/doc/source/images/dist_analysis.png b/doc/source/images/dist_analysis.png new file mode 100644 index 00000000..95770336 Binary files /dev/null and b/doc/source/images/dist_analysis.png differ diff --git a/doc/source/images/gc_bias_a.png b/doc/source/images/gc_bias_a.png new file mode 100644 index 00000000..81b64963 Binary files /dev/null and b/doc/source/images/gc_bias_a.png differ diff --git a/doc/source/images/gc_bias_b.png b/doc/source/images/gc_bias_b.png new file mode 100644 index 00000000..e6488a10 Binary files /dev/null and b/doc/source/images/gc_bias_b.png differ diff --git a/doc/source/images/gc_bias_c.png b/doc/source/images/gc_bias_c.png new file mode 100644 index 00000000..cfc3b0c7 Binary files /dev/null and b/doc/source/images/gc_bias_c.png differ diff --git a/doc/source/images/gc_bias_d.png b/doc/source/images/gc_bias_d.png new file mode 100644 index 00000000..a511a70e Binary files /dev/null and b/doc/source/images/gc_bias_d.png differ diff --git a/doc/source/images/heterozygous_perfect_1.png b/doc/source/images/heterozygous_perfect_1.png new file mode 100644 index 00000000..b508710b Binary files /dev/null and b/doc/source/images/heterozygous_perfect_1.png differ diff --git a/doc/source/images/heterozygous_perfect_2.png b/doc/source/images/heterozygous_perfect_2.png new file mode 100644 index 00000000..82040400 Binary files /dev/null and b/doc/source/images/heterozygous_perfect_2.png differ diff --git a/doc/source/images/heterozygous_real.png b/doc/source/images/heterozygous_real.png new file mode 100644 index 00000000..ea52a01f Binary files /dev/null and b/doc/source/images/heterozygous_real.png differ diff --git a/doc/source/images/kmer_spectra_breakdown.png b/doc/source/images/kmer_spectra_breakdown.png new file mode 100644 index 00000000..88fc6c92 Binary files /dev/null and b/doc/source/images/kmer_spectra_breakdown.png differ diff --git a/doc/source/images/pe_v_asm_clean.png b/doc/source/images/pe_v_asm_clean.png new file mode 100644 index 00000000..cd691ded Binary files /dev/null and b/doc/source/images/pe_v_asm_clean.png differ diff --git a/doc/source/images/pe_v_mp_after_density.png b/doc/source/images/pe_v_mp_after_density.png new file mode 100644 index 00000000..68273cba Binary files /dev/null and b/doc/source/images/pe_v_mp_after_density.png differ diff --git a/doc/source/images/pe_v_mp_after_shared.png b/doc/source/images/pe_v_mp_after_shared.png new file mode 100644 index 00000000..ad41184d Binary files /dev/null and b/doc/source/images/pe_v_mp_after_shared.png differ diff --git a/doc/source/images/pe_v_mp_before_density.png b/doc/source/images/pe_v_mp_before_density.png new file mode 100644 index 00000000..8770ea39 Binary files /dev/null and b/doc/source/images/pe_v_mp_before_density.png differ diff --git a/doc/source/images/pe_v_mp_before_shared.png b/doc/source/images/pe_v_mp_before_shared.png new file mode 100644 index 00000000..d09228cd Binary files /dev/null and b/doc/source/images/pe_v_mp_before_shared.png differ diff --git a/doc/source/images/pe_v_pe_1_density.png b/doc/source/images/pe_v_pe_1_density.png new file mode 100644 index 00000000..4d5cd4b9 Binary files /dev/null and b/doc/source/images/pe_v_pe_1_density.png differ diff --git a/doc/source/images/pe_v_pe_1_shared.png b/doc/source/images/pe_v_pe_1_shared.png new file mode 100644 index 00000000..523ecadd Binary files /dev/null and b/doc/source/images/pe_v_pe_1_shared.png differ diff --git a/doc/source/images/pe_v_pe_2_density.png b/doc/source/images/pe_v_pe_2_density.png new file mode 100644 index 00000000..d02ecc83 Binary files /dev/null and b/doc/source/images/pe_v_pe_2_density.png differ diff --git a/doc/source/images/pe_v_pe_2_shared_1.png b/doc/source/images/pe_v_pe_2_shared_1.png new file mode 100644 index 00000000..92e6336a Binary files /dev/null and b/doc/source/images/pe_v_pe_2_shared_1.png differ diff --git a/doc/source/images/pe_v_pe_2_shared_2.png b/doc/source/images/pe_v_pe_2_shared_2.png new file mode 100644 index 00000000..d79b79bc Binary files /dev/null and b/doc/source/images/pe_v_pe_2_shared_2.png differ diff --git a/doc/source/images/pe_v_rna_bar.png b/doc/source/images/pe_v_rna_bar.png new file mode 100644 index 00000000..39adc853 Binary files /dev/null and b/doc/source/images/pe_v_rna_bar.png differ diff --git a/doc/source/images/pe_v_rna_shared.png b/doc/source/images/pe_v_rna_shared.png new file mode 100644 index 00000000..c40c1d67 Binary files /dev/null and b/doc/source/images/pe_v_rna_shared.png differ diff --git a/doc/source/images/profile.png b/doc/source/images/profile.png new file mode 100644 index 00000000..9dfd2161 Binary files /dev/null and b/doc/source/images/profile.png differ diff --git a/doc/source/images/real_r1_v_r2.png b/doc/source/images/real_r1_v_r2.png new file mode 100644 index 00000000..823f447f Binary files /dev/null and b/doc/source/images/real_r1_v_r2.png differ diff --git a/doc/source/images/real_r1_v_r2_shared.png b/doc/source/images/real_r1_v_r2_shared.png new file mode 100644 index 00000000..acf67ec1 Binary files /dev/null and b/doc/source/images/real_r1_v_r2_shared.png differ diff --git a/doc/source/images/simulated_r1_v_r2.png b/doc/source/images/simulated_r1_v_r2.png new file mode 100644 index 00000000..2f24f238 Binary files /dev/null and b/doc/source/images/simulated_r1_v_r2.png differ diff --git a/doc/source/index.rst b/doc/source/index.rst index 4d689fdc..ebac0f28 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -9,8 +9,13 @@ Welcome to KAT's documentation! .. image:: images/kat_logo.png :scale: 30% -KAT is a suite of tools that generating, analysing and comparing k-mer spectra -produced from sequence files (fasta or fastq). +KAT provides a suite of tools that, through the use of k-mer counts, help the user address or identify issues such as determining sequencing completeness for assembly, assessing sequencing bias, identifying contaminants, validating genomic assemblies and filtering content. KAT is geared primarily to work with high-coverage genomic reads from Illumina devices, although can work with any fasta or fastq sequence file. + +At itā€™s core KAT exploits the concept of k-mer spectra (histograms plotting number of distinct k-mers at each frequency). By studying properties of the k-mer spectra itā€™s possible to discover important information about the data quality (level of errors, sequencing biases, completeness of sequencing coverage and potential contamination) and genomic complexity (size, karyotype, levels of heterozygosity and repeat content). Further information can be gleaned through pairwise comparison of spectra, making KAT useful for WGS library comparisons and assembly validation. + +The K-mer counting itself, a critical element for all KAT tools, is accomplished through an integrated and modified version of Jellyfish2's counting method http://www.genome.umd.edu/jellyfish.html. We selected Jellyfish for this task because it supports large K values and is one of the fastest k-mer counting programs currently available. + + .. toctree:: :maxdepth: 2 @@ -20,7 +25,17 @@ produced from sequence files (fasta or fastq). using kmer walkthrough - system + +.. _system: + +System requirements +=================== + +KAT supports Unix, linux or Mac systems. Windows, with something like cygwin, may work but hasn't been +tested. A minimum of 8GB RAM, which will enable you to process small - medium sized datasets. +Large datasets will require more RAM (potentially a lot more), the actual amount of +memory required depends on the size of the genome's to be processed, the k-mer size +selected and the size of your datasets. .. _citing: @@ -49,5 +64,47 @@ Availability and License Open source code available on github: `https://github.com/TGAC/KAT.git `_ +This documentation is hosted publicablly on read the docs: `https://kat.readthedocs.org/en/latest/ `_ + KAT is available under `GNU GLP V3 `_ + +Acknowledgements +================ + +We owe a big acknowledgment to all TGAC staff that has been bored eternally +with k-mers, you have all been incredible patient and supportive with us. + +Thanks to Mario Caccamo, Sarah Ayling, Federica Di Palma and David Swarbreck for +all the support, feedback and encouragement. + +Thanks to Richard Leggett, Daniel Zerbino and Zamin Iqbal for all the interesting +discussions, comments and input. + +Thanks to Dan Sargent for the use of his P.micrantha datasets for tests, and +their inclusion as figures on this document. + +Thanks to all the KAT early adopters users who have provided invaluable feedback +on the tool in its early stages: Paul Bailey, Jose De Vega, Rocio Enriquez-Gasca, +Marco Ferrarini and Dharanya Sampath. And more recently, those from further afield +who have contributed on github. + +A big thanks to the author of jellyfish, Guillaume Marcais. Jellyfish is fantastic +piece of software and is critical to enabling KAT to do what it does in an efficient +and timely fashion. + +Last but not least a very special thanks to the Lab guys on their white coats, trying to make +sense of all our comments, giving us better data each day and trying to get into +our heads all the complex explanations for the biases and extra variability we +were finding day after day. + + +Credits +======= + + - Daniel Mapleson (The software architect and developer) + - Gonzalo Garcia (KAT superuser and primary tester) + - George Kettleborough (For the recent python plotting functionality) + - Jon Wright (KAT superuser and documentation writer) + - Bernardo Clavijo (KAT's godfather, evangelist and all-round k-mer guru) + diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 1dcb65e3..f718b02a 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -3,88 +3,157 @@ Installation ============ +To get a quick summary of how to install KAT please consult the README.md file +in the root directory of the project. This section of the documentation discusses +some more details. + KAT is primarily a C++ application with a few python scripts. We use the -GNU build system "Autotools" to assist with package management and to make the +GNU build system "Autotools" (autoconf + automake) to assist with package management and to make the software portable across UNIX type operating systems. Installation of KAT therefore follows a similar incantation to other autotools based projects:: ./configure; make; sudo make install; -However, if you cloned the software directly from the -git repository you must first run ```./autogen.sh``` to create the configure and make +Should you wish to run tests then you can do this by typing: ``make check``. + +If you cloned the software directly from the git repository you must first run +``./autogen.sh`` to create the configure and make files for your project. If you downloaded a source code distribution tarball those -scripts are already present so you can skip this step. +scripts are already present so you can skip this step. We also supply a script called +``antigen.sh`` which cleans the KAT configuration to a similar state as if the +repository was cloned. After running ``antigen.sh`` (may require sudo permissions +if you installed content or run ``make dist``), ``autogen.sh`` must be +run in order to create the ``configure`` and ``Makefile`` files in order to +build the problem. The configure script contains all the usual options you might expect in particular -it has the ```--prefix```, which will install KAT to a custom directory. By default +it has the ``--prefix``, which will install KAT to a custom directory. By default this is "/usr/local", so the KAT executable would be found at "/usr/local/bin" by -default. - -In addition, the KAT makefile contains all the usual targets you would expect. In particular: +default. In addition, the make file should support all the usual targets and options +such as ``-j ``, to increase the number of cores used to compile the program. - * ```make check``` - runs unit tests. - * ```make dist``` - packages the installation into a tarballed distributable. - * ```make distcheck``` - runs some sanity tests to ensure the tarballed distributable is likely to work. +If sphinx is installed and detected on your system then html documentation and man +pages are automatically built during the build process. If it is not detected then this step +is skipped. Should you wish to create a PDF version of the manual you can do so +by typing ```make pdf```, this is not executed by default. External Dependencies --------------------- -KAT depends on some external software, specifically boost. You will also need a C++11 capable compiler to -compile the code. Please make sure these programs are correctly configured and installed -on your system prior to building KAT. Consult the each program's installation -guide separately for instructions on how to do this. Should you install these dependencies -into non-standard locations you can direct KAT to them by using the following -options when running the configure script. +KAT depends on some external software: + * Make + * libtool + * zlib + * C++11 compiler (e.g. GCC V4.8+) + * Boost + * Optional but recommended - Python3 with matplotlib, scipy, numpy and sphinx (anaconda3) + * Optional - Gnuplot + * Repo building - automake / autoconf + +Please make sure all the mandatory programs and libraries are correctly configured and installed +on your system prior to building KAT. The rest of this section describes how to +install these dependencies in more detail. However, for a quick example of how to install KAT dependencies on a typical clean system +take a look at our travis CI script in the root directory: ``.travis.yml`` and ``.travis/install.sh``. + + +Boost +~~~~~ + +If you don't wish to install the full suite of boost libraries KAT only uses the following: + + - system + - filesystem + - program_options + - chrono + - timer. + +KAT offers the use the ability to use boost from non-standard locations without setting +environment variables via the following options when running the configure script:: + + - "--with-boost=" for specifying a custom boost installation directory + +However, if you choose to do this please ensure that the boost libraries are available +on the LD_LIBRARY_PATH at runtime. + +Zlib +~~~~ + +Most users will already have this installed and configured on their system, however +if you don't then please install it. Should you choose to install it in a custom directory +then you can use this option in the configure script:: - - "--with-boost=" for specifiying a custom boost installation directory - "--with-zlib=" for specifying a custom zlib installation directory -We prefer static linking, which is forced in the configuation script. Therefore -you do not need to modify your LD_LIBRARY_PATH to recognise boost at runtime. +Again please be sure to have the LD_LIBRARY_PATH set if you choose to do this. + + +Plotting +~~~~~~~~ To enable plotting functionality we require either python3, with numpy, scipy and -matplotlib installed, or gnuplot. The python plotting method is the preferred -method and will produce nicer results. If you don't already have python3 installed +matplotlib installed, or gnuplot. The python installation must come with the python +shared library, on debian systems you can install this with "sudo apt-get install python3-dev". +Although, if you don't already have python3 installed on your system we recommend installing anaconda3 as this contains everything you need. The type of plotting engine used will be determined when running the configure script, which will select the first engine detected in the following order: python, -gnuplot, none. There is currently no way to select the plotting directory from +gnuplot, none. The python plotting method is the preferred +method and will produce nicer results. There is currently no way to select the plotting directory from a custom location, so the plotting system needs to be properly installed and configured on your system: i.e. python3 or gnuplot must be available on the PATH. +Documentation +~~~~~~~~~~~~~ + +Should you wish to build the documentation, you will need python3 with the sphinx +package installed and the sphinx-build executable on the PATH. If you have already +installed anaconda3 then you will have this already. + + +Building from git repo +~~~~~~~~~~~~~~~~~~~~~~ + +If you have cloned the repository then you will also need a few additional dependencies installed +to generate the configuration script. These are:: + + * autoconf V2.53+ + * automake V1.11+ + + + Internal Dependencies --------------------- KAT contains jellyfish and SeqAn in the source tree. The user does not need to do anything special to handle these dependencies as they are automatically -built and managed inside KAT. However, it is important to note that KAT -will create the jellyfish executable in it's bin directory after installation, which -may conflict with your own jellyfish executable if it was already installed on your -PATH. If you do not want KAT to potentially override or conflict with an -existing jellyfish installation you might want to consider installing KAT -to a custom location. You can do this with the ```--prefix``` option when -running the configure script. We might revisit this in the future to remove -this potential issue. +built and managed inside KAT. + +To avoid conflicts with a previously installed version of jellyfish +on the user's system, we change the name of our jellyfish binary to kat_jellyfish. +This prefix is applied to the jellyfish libraries and documentation. Compilation and Installation ---------------------------- -First change into the KAT root directory and run ```./configure```, providing -any options you feel are appropriate. By default the installation directory is "/usr/local", -so the KAT executable would be found at "/usr/local/bin" by default. If you +First change into the KAT root directory and run ``./configure``, providing +any options you feel are appropriate. By default the installation directory is ``/usr/local``, +so the KAT executable would be found at ``/usr/local/bin`` by default. If you want to change this use the ``--prefix`` option as previously described. For a full -list of configuration options type ```./configure --help```. +list of configuration options type ``./configure --help``. -Next compile the software. This can be done by typing ```make```. The compiles +Next compile the software. This can be done by typing ``make``. The compiles all internal dependencies and KAT itself. To check the code compiled correct and is operating as expected you can optionally -type ```make check``` to runs some tests. This includes unit tests for jellyfish +type ``make check`` to runs some tests. This includes unit tests for jellyfish which are embedded in the KAT source tree. To run only KAT -unit tests go into the ``tests`` subdirectory and run ```make check``` there. +unit tests go into the ``tests`` subdirectory and run ``make check`` there. + +Should you have sphinx installed and wish to create a PDF copy of the manual, you +can do so by typing ``make pdf``. Finally to install the compiled code to the specified (or default) installation -directory type ```make install```. +directory type ``make install``. diff --git a/doc/source/kmer.rst b/doc/source/kmer.rst index 611dbed9..8b03342b 100644 --- a/doc/source/kmer.rst +++ b/doc/source/kmer.rst @@ -11,25 +11,17 @@ shape of the distributions provides a useful set of properties describing the biological sample and the sequencing process and the amount of useful data in the dataset. -A typical nice distribution for a yeast WGS dataset might be the one found in Figure 1. +A typical nice 31-mer spectrum of S.cerevisae S288C WGS dataset is shown in the +following figure: + +.. image:: images/kmer_spectra1.png + :scale: 75% + + This is composed of an error component containing a huge amount of rare motifs, and a several other components as distributions with different modes according to how many times a motif appear on the genome. The decomposition -showing this distributions can be seen on Figure 2. - - -.. figure:: images/kmer_spectra1.png - :scale: 100% - :alt: Simple yeast k-mer spectrum - :align: center - :figclass: align-center - - Figure 1: 31-mer spectrum for an Illumina run of S.cerevisae S288C - - -#.. figure:: images/kmer_spectra_breakdown.pdf -# :scale: 100% -# :alt: Simple yeast k-mer spectrum +showing this distributions can be seen here: -# 31-mer spectrum density for each component of Figure 1 as divided by frequency -# on the reference sequence. \ No newline at end of file +.. image:: images/kmer_spectra_breakdown.png + :scale: 50% \ No newline at end of file diff --git a/doc/source/system.rst b/doc/source/system.rst deleted file mode 100644 index 3227fdb0..00000000 --- a/doc/source/system.rst +++ /dev/null @@ -1,10 +0,0 @@ -.. _system: - -System requirements -=================== - -KAT supports Unix, linux or Mac systems. Windows may work but hasn't been -tested. A minimum of 8GB RAM, which will enable you to process small - medium sized datasets. -Large datasets will require more RAM (potentially a lot more), the actual amount of -memory required depends on the size of the genome's to be processed, the k-mer size -selected and the size of your datasets. \ No newline at end of file diff --git a/doc/source/using.rst b/doc/source/using.rst index 8733b2ad..b295e16b 100644 --- a/doc/source/using.rst +++ b/doc/source/using.rst @@ -4,9 +4,9 @@ Using KAT ================ KAT is a C++ program containing a number of subtools which can be used in -isolation or as part of a pipeline. Typing ```kat --help``` will show a +isolation or as part of a pipeline. Typing ``kat --help`` will show a list of the available subtools. Each subtool has its own help system which you -can access by typing ```kat --help```. +can access by typing ``kat --help``. HIST @@ -17,7 +17,7 @@ derived from the input. The input can take the form of one or more FastA or Fast files, or a jellyfish hash. The last bucket in the histogram behaves as a catchall: it tallies all k-mers with a count greater or equal to the low end point of this bucket. -This tool is very similar to the \"histo\" tool in jellyfish itself. The primary +This tool is very similar to the ``histo`` tool in jellyfish itself. The primary difference being that the output contains metadata that make the histogram easier for the user to plot, and that this version is faster because we do not need to dump the hash to disk and read it back. @@ -172,14 +172,32 @@ modify axis, titles, limits, size, resolution, etc, although they will all try t intelligent defaults directly from the data provided. +Spectra_hist +~~~~~~~~~~~~ + +Visualises the K-mer spectra from ``kat hist`` or ``jellyfish histo`` output. +This tool is designed to plot line graphs of one or more histograms. The idea is +to be able to compare total K-mer counts between different datasets. + +Basic usage:: + + kat plot spectra-hist + +Applications: + + * Basic K-mer spectra visualisation + +.. image:: images/ccoli_hist.png + :scale: 20% + Density ~~~~~~~ Creates a scatter plot, where the density or "heat" at each point represents the number of distinct K-mers at that point. Typically this is used to visualise a -matrix produced by the ```kat comp``` tool to compare frequencies from two K-mer +matrix produced by the ``kat comp`` tool to compare frequencies from two K-mer hashes produced by different NGS reads, or to visualise the GC vs K-mer matrices -produced by the ```kat gcp``` tool. +produced by the ``kat gcp`` tool. Basic usage:: @@ -209,10 +227,10 @@ Basic usage:: Applications: - * Visualise coverage level across a sequence or set of sequences + * Visualise coverage (and optionally GC) levels across a sequence or set of sequences -#.. image:: images/kat_logo.png -# :scale: 30% +.. image:: images/profile.png + :scale: 30% Spectra_CN @@ -220,7 +238,7 @@ Spectra_CN Shows K-mer duplication levels, which correspond to copy number variation within an assembly by comparing K-mers found in sequenced reads, to K-mers found in an -assembly of those reads. Uses matrix output from the ```kat comp``` tool. +assembly of those reads. Uses matrix output from the ``kat comp`` tool. Basic usage:: @@ -230,34 +248,15 @@ Applications: * Visualise the copy number spectra of WGS data compared against an assembly -#.. image:: images/kat_logo.png -# :scale: 30% - - -Spectra_hist -~~~~~~~~~~~~ - -Visualises the K-mer spectra from ```kat hist``` or ```jellyfish histo``` output. -This tool is designed to plot line graphs of one or more histograms. The idea is -to be able to compare total K-mer counts between different datasets. - -Basic usage:: - - kat plot spectra-hist - -Applications: - - * Basic K-mer spectra visualisation - -.. image:: images/ccoli_hist.png - :scale: 20% +.. image:: images/heterozygous_real.png + :scale: 75% Spectra_mx ~~~~~~~~~~ -Produces K-mer spectras from rows or columns in a matrix generated by ```kat comp```. +Produces K-mer spectras from rows or columns in a matrix generated by ``kat comp``. This tool is designed to plot line graphs for one or more histograms, each histogram being represented by a single row or column in the matrix. @@ -266,13 +265,13 @@ two different samples. This mode takes the first row and column of the matrix re content which is found exclusively in each sample. Two more lines are plotting, one which has each following row summed, and the other that has each following column summed. These two plots represent the shared content for each sample. This mode -can be activated using the ```--intersection``` flag. +can be activated using the ``--intersection`` flag. Alternatively, you can select specific rows and columns from the matrix using a -comma separated list identified with the ```--list``` option. Each element in the +comma separated list identified with the ``--list`` option. Each element in the list should start with either a 'c' or a 'r' indicating whether or not the column or row is requested. Then the element should contain a number indicating which -column or row to select. For example: ```--list c0,r1``` will select column 0 and +column or row to select. For example: ``--list c0,r1`` will select column 0 and row 1. Note: spaces are not tolerated in this list. Basic usage:: @@ -286,6 +285,6 @@ Applications: * RNAseq to WGS comparison * Visualising k-mer spectra of arbitrary columns and rows from a matrix -#.. image:: images/kat_logo.png -# :scale: 30% +.. image:: images/pe_v_pe_1_shared.png + :scale: 50% diff --git a/doc/source/walkthrough.rst b/doc/source/walkthrough.rst index 775455b5..2bba32a5 100644 --- a/doc/source/walkthrough.rst +++ b/doc/source/walkthrough.rst @@ -3,29 +3,191 @@ KAT Walkthrough =============== -This part of the manual describes particular use cases where KAT can be useful: +KAT is a multi-purpose toolkit and even we, the authors, have probably not fully +mined all the possible scenarios in which the software can be applied. This section +however lists some typical applications for which its been used so far. Comparing R1 v R2 in an Illumina PE dataset ------------------------------------------- +Comparing the k-mer spectra of read 1 to read 2 files of a paired end run gives +you several insights into properties such as shared errors, difference in quality, +and provides a decent benchmark to compare two similar runs. Here's how to do it:: + + kat comp -t 16 -n -o + +Executing this command counts each fastq file into separate k-mer hashes, then +creates a matrix of k-mer spectra frequencies in each dataset for each distinct +k-mer. Finally, a density plot is made of the matrix. There are a number of +interesting points in the output of the run. First, the some basic stats are produced +on the standard output. Check properties like expected unique size, mean coverages +for shared/unshared, or the distance measures between the spectra. These values +are just indicative, but might point a disaster ahead. The density plot also +provides a visual representation of how much shared errors are affecting your data. +The following plot on the left shows what you would expect to see in this case +for a completely unbiased homozygous paired end library of S.coelicolor. However +in reality, various biases can interfere with sequencing experiment and we +will probably end up with data which isn't quite as clean, such as that shown in +the plot on the right of an Illumina run of S.cerevisiae S288C. + +.. image:: images/simulated_r1_v_r2.png + :scale: 45% +.. image:: images/real_r1_v_r2.png + :scale: 45% + + +It's also useful to examine the shared and unique partitioned spectra between R1 +and R2. This can be done by using the same matrix file. The plot below is from +the same S.cerevisiae S288C dataset, generated using the following command line:: + + kat plot spectra-mx -n [options] -o + +.. image:: images/real_r1_v_r2_shared.png + :scale: 40% + + Detecting GC bias ----------------- +Using KAT it's possible to correlate biases due to GC content. KAT does this by +combining k-mer frequency with the GC count for each distinct k-mer and representing +the data in a matrix which can be plotted in a similar way to that discussed in +the previous section. The command to produce a matrix of GC counts to k-mer +frequency is as follows:: + + kat gcp -t 16 -o ()+ + +The following figure shows how GC bias varies depending on the protocols used in +the sequencing experiments: 1) Simulated, 2) PCR-free, 3) PCR after adaptor ligation, 4) +Standard protocol. In the simulated data 1), there is a clean circle positioned at the expected +GC levels for S.coelicolor, which has a GC rich genome. In later plots the GC bias +is visualised by noting the drift towards 50% GC in the later plots. + +.. image:: images/gc_bias_a.png + :scale: 25% +.. image:: images/gc_bias_b.png + :scale: 25% +.. image:: images/gc_bias_c.png + :scale: 25% +.. image:: images/gc_bias_d.png + :scale: 25% Checking library consistency ---------------------------- +In most Whole Genome Shotgun projects, you will end up using more than +one library, sometimes it is just a Paired End library and a Long Mate Pair +library, but some other times you could have a dozen libraries of similar or +completely different types. It is a good policy to check obvious incongruence +among libraries before trying to assemble them. + +When you are sequencing the same genome, you are randomly sampling across +it. Therefore you should have different spectrum originating from different +experiments, but sampled from the same set. That means than if you decompose your +spectra on the components being generated by single-copy elements, duplicated elements, +triplicated elements, and so on, every motif belonging to a component distribution +should belong to it across samples. + + PE vs PE ~~~~~~~~ +Paired end sequencing constitutes the bulk of most current efforts on sequencing, +and is used as a benchmark to sample the motifs on the genome. Since this data type +is expected to have the more random distribution and even coverage, it is a +good place to start studying correlation. + +The cleanest examples come from simulated data, where the correlation is +virtually perfect as long as belonging to the same distribution, and virtually +inexistent in terms of any biases. Real data tends to show more correlation within +the same distribution, especially in cases where strong biases are in play. + +To compare two PE libraries run the following command:: + + kat comp -n -t 16 -o pcrfree_vs_standard pcr_free 'pcr_free.R?.fastq' 'standard.R?.fastq' + +Note that the quotes around the inputs at the end of the command line allow you +to group files together into a single input. Therefore all files matching +"pcr_free.R?.fastq" are treated as the first input group, and all files matching +"standard.R?.fastq" are treated as the second input group. Each group is k-mer +counted separately. This saves the user wasting time and space cating PE files +together prior to input into KAT. + +The previous command produces only the density plot, so to generate the shared vs +unique content plot also run:: + + kat plot spectra - mx -n [options] -o pcrfree_vs_standard_shared.png + +The following plots compare two PE sequencing experiments in C.fraxinea, showing +a large motif duplication in one of the experiments. + +.. image:: images/pe_v_pe_1_shared.png + :scale: 33% +.. image:: images/pe_v_pe_1_density.png + :scale: 33% + + +Another interesting point to make is shown in the following plots. Note how the +coverage across the standard protocol is lot more variable than on the PCR- +free in the density plot. Note also how some kmers are not even sampled. The shared +content plots highlight that all the content that just gets ā€œlostā€ on the standard protocol +(middle plot) as soon as you ask for at least 5x kmer coverage (right plot). While this coverage appears to +be on the ā€œerror distributionā€ side, you can see on the red line (content on the +PCR-free sample, not on the standard sample) that real content from the main +frequency distribution is being lost by using that cutoff. This should make you +think carefully about setting those low-coverage cutoffs again! + +.. image:: images/pe_v_pe_2_density.png + :scale: 27% +.. image:: images/pe_v_pe_2_shared_1.png + :scale: 27% +.. image:: images/pe_v_pe_2_shared_2.png + :scale: 27% PE vs LMP ~~~~~~~~~ +When using Long Mate Paired data, in a lot of cases the protocol will impose +considerable biases. It is a good idea to check against the PE data for +coherence. Over-representation and absence of motifs are important factors to +check. The presence of motifs coming from the presence of adaptors (in fact +mostly generated on their junction with genomic DNA) is also sometimes spot- +ted. + +In the example shwon in the plots below, a LMP run is compared against a PE run, +both before: + +.. image:: images/pe_v_mp_before_density.png + :scale: 33% +.. image:: images/pe_v_mp_before_shared.png + :scale: 33% + +... and after (last two plots) the processing according the +guidelines for the Nextera LMP protocol: + +.. image:: images/pe_v_mp_after_density.png + :scale: 33% +.. image:: images/pe_v_mp_after_shared.png + :scale: 33% + +While the motif presence and spectra is certainly better after the processing, +there is content loss and the biases are clearly visible. You can spot representation +bias on the density plot for both clusters on the y-axis, both clusters are +too wide and have too large ā€œtailsā€ going up. This is a typical signature for +PCR-generated duplications in some early step in the protocol. + +Especially interesting is the use of the shared and unique motifs to spot how +well the LMP library covers the whole genome. It is usually accepted that for +coverages higher than 10 the library should mostly cover the whole genome. If +we look at the content ā€œexclusiveā€ to the PE library as content not covered +by the LMP library, it is obvious that the processing into ā€œgoodā€ mate pairs +removes a lot of content. While the spectra of the filtered LMP has better +distribution, it is clear much content is not there. In this case, the library will +not be very useful for scaffolding. Contamination detection and extraction @@ -47,18 +209,14 @@ in KAT is simple:: kat gcp [options] (WGS_file)+ Running this tool will produce a matrix containing distinct k-mer counts at varying -frequency and GC value. It will also produce a plot, such as the one shown here: +frequency and GC value. It will also produce a plot, such as the one below that +highlights error k-mers shown at very low level with wide GC spread and genuine +content between 10-100X with GC spread from 5-25. In this case we also have some +unexpected content shown at approx 200X with GC 15-25: -.. figure:: images/contaminant_MP.png +.. image:: images/contaminant_MP.png :scale: 50% - :alt: Contamination detection 1 - :align: center - :figclass: align-center - - KAT GCP output run through the density plotting tool. Error k-mers shown at - very low level with wide GC spread, genuine content between 10-100X with GC - spread from 5-25, unexpected content shown at approx 200X with GC 15-25. - + The high coverage hot-spot is already suspicious but it becomes even more so after consider other WGS libraries of the same sample: @@ -73,15 +231,9 @@ No other library contains the such a hotspot at GC 15-25. After merging all lib into one the contaminant becomes obvious as the coverage has not altered, meaning that k-mers in that region where not also found in the other libraries: -.. figure:: images/contaminant_all.png +.. image:: images/contaminant_all.png :scale: 50% - :alt: Contamination detection 2 - :align: center - :figclass: align-center - - After merging all WGS libraries of the same sample, the original suspicious - region has not altered in coverage. - + We can then use the filtering tools in KAT to extract k-mers inside, or outside defined coverage and GC limits. In this case we could take the original MP library and run the following command:: @@ -147,7 +299,105 @@ the repetitive content. Checking RNAseq consistency with genomic content ------------------------------------------------ +Sometimes we find ourselves doing transcriptomics on species without a reference +genome. It can be useful to analyse where the motifs from our +RNA-seq experiments lie with respect to a genomic sample, which is a lot easier +to generate than a reference genome. To confirm that most of the content of the +RNA-seq is found on the genomic sample, and belongs positions corresponding +to the zones usually related to genic content (i.e., relatively unique regions) is +a good check, but whatā€™s even better, this kind of analysis can help to decide +which sample to use or which genomic/transcriptomic samples analysis will be +easier to do. + +The distribution of the shared content on the genomic set will give up the +corresponding genomic loci location on you spectra and allows for interesting comparisons. +For example, if we have genomic samples from 2 individuals, and a set of rna-seq +datasets from the same species, we can try to figure out which genomic sample is +going to map more content for each of the rna-seq datasets. That is exactly the +case in a set of P.micrantha rna-seq runs shown below: + +.. image:: images/pe_v_rna_shared.png + :scale: 40% +.. image:: images/pe_v_rna_bar.png + :scale: 40% + +The genomes are not yet fully assembled, and actually one of the genomic samples +is a lot better assembled, because we have extra LMP data on it. By measuring how +many k-mers are on this distributions, we can both know which genomic sample is +closer to each rna-seq sample, and also an approximation of the amount of k-mers +ā€œmatchedā€ on each rna-seq dataset. Assembly analysis using k-mer spectra ------------------------------------- + +One of the most frequently used tools in KAT are the so called assembly spectra +copy number plots. We use this as a first at-a-glance analysis for assembly coherence +to the data on the reads they are representing. Basically we represent how many elements +of each frequency on the readā€™s spectrum ended up included only once in the +assembly, how many two times, etc. In addition to how many where not included at all. + +As a simple example to start with, we can look at what a plot for S.cerevesiae S288C +would look if we happen to perfectly reconstruct the reference assembly:: + + kat comp -t 16 -o pe_vs_assembly 'PE.R?.fastq' assembly.fa + +.. image:: images/pe_v_asm_clean.png + :scale: 40% + +The errors are absent on the assembly, the main unique content is all there, +exactly once, and all the other distributions are perfectly in place. But from the +same sequencing, by choosing a wrong k value (too large in this case) and just +running a typical assembly job, we can end up with something more interesting. +It is easy to spot missing content, alongside duplications and triplications +(and quadruplications and so on) that should not be there. + +Heterozygous genomes produce more interesting and complex plots, since the k-mer +spectra clearly shows different distributions for both the heterozygous and the +homozygous content. The following plots show what a perfect assembly should look +like. In the first case we have a single haplotype mosaic, where the bubbles are +collapsed, which is what we typically would expect to get out of a perfect assembly, +although it's worth pointing out that some content is clearly lost when we do this. +In the second case haplotypes are separated producing a lot of duplicated content +in the homozygous regions, but this allows us to fully capture the heterozygous +content. We don't typically, aim for the second scenario when assembling genomes. + +.. image:: images/heterozygous_perfect_1.png + :scale: 50 +.. image:: images/heterozygous_perfect_2.png + :scale: 50% + +Interestingly though, most assemblies donā€™t look like either case at all, presenting +duplications, inclusion of extra variation, etc: + +.. image:: images/heterozygous_real.png + :scale: 75% + + +Spectra distribution copy number analysis script +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +When the spectrum is clean, then a lot about the assembly can be said +by just looking at the copy number plot. By counting how many elements lie on +each ā€œstripeā€ we can potentially evaluate how much of the unique content +has been duplicated, or how much has not been included at all. To make this analysis +possible, we have included an extra script, not yet part of the KAT binary, that +analyses and fits distributions to the peaks, estimating the counts for the elements +on the stripes. The final output is a report of the content on each peak divided +by the stripes with counts based on the distribution fitting. + +To run the script use the following command line:: + + kat_distanalysis.py [options] + +Right now you might need to fiddle a bit with the parameters to get the +script to pick up your distributions correctly, we are working to improve this. + +Since the genes are mostly expected to be in the ā€œuniqueā€ content part of the +genome, the analysis of the content of the unique peak can be used to predict +how much of the desired content will be represented on the assembly. In fact, +the metric can be though as how much of the information from the spectra has +been incorporated in the assembly. + +.. image:: images/dist_analysis.png + :scale: 50% \ No newline at end of file diff --git a/deps/jellyfish-2.2.0/lib/.deps/.gitignore b/lib/.deps/.gitignore similarity index 100% rename from deps/jellyfish-2.2.0/lib/.deps/.gitignore rename to lib/.deps/.gitignore diff --git a/lib/.gitignore b/lib/.gitignore new file mode 100644 index 00000000..8adfc855 --- /dev/null +++ b/lib/.gitignore @@ -0,0 +1,5 @@ +*.dirstamp +/.libs/ +/Makefile +*.lo +*.o diff --git a/lib/Makefile.am b/lib/Makefile.am new file mode 100644 index 00000000..8e770e7a --- /dev/null +++ b/lib/Makefile.am @@ -0,0 +1,34 @@ +AUTOMAKE_OPTIONS = subdir-objects + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = kat-2.1.pc + +lib_LTLIBRARIES = libkat-2.1.la + +libkat_2_1_la_LDFLAGS = -version-info 2:1:0 +libkat_2_1_la_SOURCES = \ + src/gnuplot_i.cc \ + src/matrix_metadata_extractor.cc \ + src/input_handler.cc \ + src/jellyfish_helper.cc \ + src/comp_counters.cc + +library_includedir=$(includedir)/kat-@PACKAGE_VERSION@/kat +KI = $(top_srcdir)/lib/include/kat +library_include_HEADERS = $(KI)/distance_metrics.hpp \ + $(KI)/gnuplot_i.hpp \ + $(KI)/input_handler.hpp \ + $(KI)/jellyfish_helper.hpp \ + $(KI)/kat_fs.hpp \ + $(KI)/matrix_metadata_extractor.hpp \ + $(KI)/sparse_matrix.hpp \ + $(KI)/spectra_helper.hpp \ + $(KI)/str_utils.hpp \ + $(KI)/comp_counters.hpp + +libkat_2_1_la_CPPFLAGS = \ + -isystem $(top_srcdir)/deps/jellyfish-2.2.0/include \ + -isystem $(top_srcdir)/lib/include \ + @AM_CPPFLAGS@ + +libkat_2_1_la_CXXFLAGS = -g -O3 -fwrapv -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -ansi -pedantic -Werror -std=c++11 @AM_CXXFLAGS@ \ No newline at end of file diff --git a/lib/include/kat/comp_counters.hpp b/lib/include/kat/comp_counters.hpp new file mode 100644 index 00000000..e482a88a --- /dev/null +++ b/lib/include/kat/comp_counters.hpp @@ -0,0 +1,117 @@ +// ******************************************************************** +// This file is part of KAT - the K-mer Analysis Toolkit. +// +// KAT is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// KAT is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with KAT. If not, see . +// ******************************************************************* + +#pragma once + +#include +#include +#include +using std::ostream; +using std::shared_ptr; +using std::vector; + +#include +using boost::filesystem::path; + +namespace kat { + +const uint32_t DEFAULT_NB_BINS = 1001; + +class CompCounters { +public: + uint64_t hash1_total; + uint64_t hash2_total; + uint64_t hash3_total; + uint64_t hash1_distinct; + uint64_t hash2_distinct; + uint64_t hash3_distinct; + uint64_t hash1_only_total; + uint64_t hash2_only_total; + uint64_t hash1_only_distinct; + uint64_t hash2_only_distinct; + uint64_t shared_hash1_total; + uint64_t shared_hash2_total; + uint64_t shared_distinct; + + vector spectrum1; + vector spectrum2; + vector shared_spectrum1; + vector shared_spectrum2; + + path hash1_path; + path hash2_path; + path hash3_path; + + CompCounters(); + + CompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size); + + CompCounters(const CompCounters& o); + + void updateHash1Counters(const uint64_t hash1_count, const uint64_t hash2_count); + + void updateHash2Counters(const uint64_t hash1_count, const uint64_t hash2_count); + + void updateHash3Counters(const uint64_t hash3_count); + + void updateSharedCounters(const uint64_t hash1_count, const uint64_t hash2_count); + + static void updateSpectrum(vector& spectrum, const uint64_t count); + + void printCounts(ostream &out); + + vector& getSpectrum1() { return spectrum1; } + + vector& getSpectrum2() { return spectrum2; } + +}; + +class ThreadedCompCounters { +private: + uint16_t threads; + + CompCounters final_matrix; + vector threaded_counters; + + static void merge_spectrum(vector& spectrum, const vector& threaded_spectrum); + +public: + + ThreadedCompCounters(); + + ThreadedCompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size); + + void printCounts(ostream &out); + + void add(shared_ptr cc); + + size_t size() { + return threaded_counters.size(); + } + + CompCounters& getFinalMatrix() { + return final_matrix; + } + + CompCounters& getThreadedMatrixAt(uint16_t index) { + return threaded_counters[index]; + } + + void merge(); + +}; +} \ No newline at end of file diff --git a/src/inc/distance_metrics.hpp b/lib/include/kat/distance_metrics.hpp similarity index 99% rename from src/inc/distance_metrics.hpp rename to lib/include/kat/distance_metrics.hpp index cacdbc21..beca8691 100644 --- a/src/inc/distance_metrics.hpp +++ b/lib/include/kat/distance_metrics.hpp @@ -19,6 +19,7 @@ #include #include +#include using std::vector; namespace kat { diff --git a/src/inc/gnuplot/gnuplot_i.hpp b/lib/include/kat/gnuplot_i.hpp similarity index 100% rename from src/inc/gnuplot/gnuplot_i.hpp rename to lib/include/kat/gnuplot_i.hpp diff --git a/src/input_handler.hpp b/lib/include/kat/input_handler.hpp similarity index 79% rename from src/input_handler.hpp rename to lib/include/kat/input_handler.hpp index 2228859d..e58dce61 100644 --- a/src/input_handler.hpp +++ b/lib/include/kat/input_handler.hpp @@ -20,13 +20,16 @@ #include using std::shared_ptr; -#include +#include using kat::JellyfishHelper; typedef shared_ptr path_ptr; namespace kat { + typedef boost::error_info InputFileErrorInfo; + struct InputFileException: virtual boost::exception, virtual std::exception { }; + class InputHandler { public: @@ -38,7 +41,7 @@ namespace kat { }; uint16_t index; - vector input; + vector input; InputMode mode = InputMode::COUNT; bool canonical = false; uint64_t hashSize = DEFAULT_HASH_SIZE; @@ -50,11 +53,11 @@ namespace kat { LargeHashArrayPtr hash = nullptr; shared_ptr header; // Only applicable if loaded - void setSingleInput(const path& p) { input.clear(); input.push_back(make_shared(p)); } - void setMultipleInputs(const vector& inputs); + void setSingleInput(const path& p) { input.clear(); input.push_back(p); } void setMultipleInputs(const vector& inputs); - path getSingleInput() { return *input[0]; } + path getSingleInput() { return input[0]; } string pathString(); + string fileName(); void validateInput(); // Throws if input is not present. Sets input mode. void loadHeader(); void validateMerLen(const uint16_t merLen); // Throws if incorrect merlen @@ -62,8 +65,11 @@ namespace kat { void loadHash(); void dump(const path& outputPath, const uint16_t threads); - static vector globFiles(const string& input); - static vector globFiles(const vector& input); + static shared_ptr> globFiles(const string& input); + static shared_ptr> globFiles(const vector& input); + + private: + static int globerr(const char *path, int eerrno); }; } \ No newline at end of file diff --git a/src/jellyfish_helper.hpp b/lib/include/kat/jellyfish_helper.hpp similarity index 95% rename from src/jellyfish_helper.hpp rename to lib/include/kat/jellyfish_helper.hpp index a1db4a4a..d749f15f 100644 --- a/src/jellyfish_helper.hpp +++ b/lib/include/kat/jellyfish_helper.hpp @@ -138,8 +138,8 @@ namespace kat { * @return The hash array counter */ static LargeHashArrayPtr countSeqFile(const path& p, HashCounter& hashCounter, bool canonical, uint16_t threads) { - vector> paths; - paths.push_back(make_shared(p)); + vector paths; + paths.push_back(p); return countSeqFile(paths, hashCounter, canonical, threads); } @@ -149,11 +149,11 @@ namespace kat { * @param seqFile Sequence file to count * @return The hash array counter */ - static LargeHashArrayPtr countSeqFile(const vector>& seqFiles, HashCounter& hashCounter, bool canonical, uint16_t threads); + static LargeHashArrayPtr countSeqFile(const vector& seqFiles, HashCounter& hashCounter, bool canonical, uint16_t threads); - static void dumpHash(LargeHashArrayPtr ary, file_header& header, uint16_t threads, path outputFile); + static void dumpHash(LargeHashArrayPtr ary, file_header& header, uint16_t threads, const path& outputFile); /** * Extracts the jellyfish hash file header diff --git a/lib/include/kat/kat_fs.hpp b/lib/include/kat/kat_fs.hpp new file mode 100644 index 00000000..aba9fcac --- /dev/null +++ b/lib/include/kat/kat_fs.hpp @@ -0,0 +1,226 @@ +// ******************************************************************** +// This file is part of KAT - the K-mer Analysis Toolkit. +// +// KAT is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// KAT is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with KAT. If not, see . +// ******************************************************************* + +#pragma once + +#include +#include +#include +using std::endl; +using std::string; +using std::cout; + +#ifdef OS_MAC +#include +#endif + +#include +#include +#include +namespace fs = boost::filesystem; +using fs::exists; +using fs::path; + + +namespace kat { + + typedef boost::error_info FileSystemErrorInfo; + struct FileSystemException: virtual boost::exception, virtual std::exception { }; + + + class KatFS { + private: + + path exe; + + bool isAbsolute; + bool isRelative; + bool isOnPath; + + // Executables + path canonicalExe; + + // Directories + path scriptsDir; + + public: + + /** + * Assume on PATH by default + */ + KatFS() {} + + /** + * + * @param exe Full path to the exe, probably derived from argv0. + */ + KatFS(const char* argv) { + + isAbsolute = false; + isRelative = false; + isOnPath = false; + + exe = argv; + + if(exe.is_absolute()) { + + // Absolute path provided... Easy job... nothing special to do, + // resolve symlink then take two levels up + canonicalExe = fs::canonical(exe); + isAbsolute = true; + } + else if (exe.string().find('/') != string::npos) { + + // Relative with some parent paths... get absolute path, resolving + // symlinks then take two levels up + canonicalExe = fs::canonical(fs::system_complete(exe)); + isRelative = true; + } + else { + + // Only name provided + // In this case we just have to assume everything is properly installed +#ifdef OS_LINUX + canonicalExe = do_readlink(); +#elif OS_MAC + canonicalExe = get_mac_exe(); +#else + canonicalExe = do_readlink(); // Assume linux +#endif + isOnPath = true; + } + + + // Check to see if scripts are adjacent to exe first + path kda(canonicalExe.parent_path()); + kda /= "kat_distanalysis.py"; + if (exists(kda)) { + scriptsDir = canonicalExe.parent_path(); + } + else { + // If we are here then we are not running from an installed location, + // we are running from the source tree. + // Not 100% sure how far back we need to go (depends on whether using KAT exe or tests) + // so try 2, 3 and 4 levels. + scriptsDir = canonicalExe.parent_path().parent_path(); + scriptsDir /= "scripts"; + + if (!exists(scriptsDir)) { + scriptsDir = canonicalExe.parent_path().parent_path().parent_path(); + scriptsDir /= "scripts"; + + if (!exists(scriptsDir)) { + scriptsDir = canonicalExe.parent_path().parent_path().parent_path().parent_path(); + scriptsDir /= "scripts"; + + if (!exists(scriptsDir)) { + BOOST_THROW_EXCEPTION(FileSystemException() << FileSystemErrorInfo(string( + "Could not find suitable directory containing KAT scripts relative to provided exe: ") + canonicalExe.c_str())); + } + + } + } + } + kda=scriptsDir; + kda /= "kat_distanalysis.py"; + if (!exists(kda)) { + BOOST_THROW_EXCEPTION(FileSystemException() << FileSystemErrorInfo(string( + "Could not find suitable directory containing KAT scripts derived from relative path of executable"))); + } + + } + + + std::string do_readlink() { + char buff[PATH_MAX]; + ssize_t len = ::readlink("/proc/self/exe", buff, sizeof(buff)-1); + if (len != -1) { + buff[len] = '\0'; + return std::string(buff); + } + BOOST_THROW_EXCEPTION(FileSystemException() << FileSystemErrorInfo(string( + "Could not find locations of executable from /proc/self/exe"))); + + } + +#ifdef OS_MAC + std::string get_mac_exe() { + char path[1024]; + uint32_t size = sizeof(path); + _NSGetExecutablePath(path, &size); + return path; + } +#endif + + + // **** Destructor **** + virtual ~KatFS() { } + + path GetCanonicalExe() const { + return canonicalExe; + } + + path GetScriptsDir() const { + return scriptsDir; + } + + bool IsAbsolute() const { + return isAbsolute; + } + + bool IsOnPath() const { + return isOnPath; + } + + bool IsRelative() const { + return isRelative; + } + + + + friend std::ostream& operator<<(std::ostream &strm, const KatFS& pfs) { + + return strm << "KAT paths: "<< endl + << " - argv: " << pfs.exe << endl + << " - type: " << (pfs.isAbsolute ? "absolute" : pfs.isRelative ? "relative" : "on PATH") << endl + << " - Canonical path: " << pfs.canonicalExe << endl + << " - Scripts dir: " << (pfs.scriptsDir.empty() ? "assuming scripts on PATH" : pfs.scriptsDir) << endl; + } + + /** + * Ensures a directory exists + * @param dir + */ + static void ensureDirectoryExists(const path& dir) { + + path canDir = fs::absolute(dir); + if (!fs::exists(canDir) || !fs::is_directory(canDir)) { + if (!fs::create_directories(canDir)) { + if (!fs::exists(canDir) || !fs::is_directory(canDir)) { // Check again before throwing + BOOST_THROW_EXCEPTION(FileSystemException() << FileSystemErrorInfo(string( + "Could not create output directory: ") + canDir.string())); + } + } + } + } + }; + + + // Make available everywhere + extern KatFS katFileSystem; +} + diff --git a/src/inc/matrix/matrix_metadata_extractor.hpp b/lib/include/kat/matrix_metadata_extractor.hpp similarity index 92% rename from src/inc/matrix/matrix_metadata_extractor.hpp rename to lib/include/kat/matrix_metadata_extractor.hpp index 74b2c379..89d61e68 100644 --- a/src/inc/matrix/matrix_metadata_extractor.hpp +++ b/lib/include/kat/matrix_metadata_extractor.hpp @@ -34,6 +34,9 @@ namespace mme { const string KEY_X_LABEL = "# XLabel:"; const string KEY_Y_LABEL = "# YLabel:"; const string KEY_Z_LABEL = "# ZLabel:"; + const string KEY_INPUT_1 = "# Input 1:"; + const string KEY_INPUT_2 = "# Input 2:"; + const string KEY_KMER = "# Kmer value:"; const string KEY_TITLE = "# Title:"; const string KEY_MAX_VAL = "# MaxVal:"; const string KEY_TRANSPOSE = "# Transpose:"; diff --git a/src/inc/matrix/sparse_matrix.hpp b/lib/include/kat/sparse_matrix.hpp similarity index 85% rename from src/inc/matrix/sparse_matrix.hpp rename to lib/include/kat/sparse_matrix.hpp index c2c10dab..7e9423c0 100644 --- a/src/inc/matrix/sparse_matrix.hpp +++ b/lib/include/kat/sparse_matrix.hpp @@ -31,7 +31,7 @@ namespace bfs = boost::filesystem; using bfs::path; using boost::lexical_cast; -#include "inc/str_utils.hpp" +#include using std::cout; using std::endl; @@ -41,6 +41,8 @@ using std::string; using std::vector; using std::map; +namespace kat{ + template class SparseMatrix { public: @@ -282,3 +284,60 @@ class SparseMatrix { uint32_t m; uint32_t n; }; + +typedef SparseMatrix SM64; + +class ThreadedSparseMatrix { +private: + + uint16_t width; + uint16_t height; + uint16_t threads; + + SM64 final_matrix; + vector threaded_matricies; + +public: + + ThreadedSparseMatrix() : ThreadedSparseMatrix(0, 0, 0) {}; + + ThreadedSparseMatrix(uint16_t _width, uint16_t _height, uint16_t _threads) : + width(_width), height(_height), threads(_threads) { + final_matrix = SM64(width, height); + threaded_matricies = vector(threads); + + for (int i = 0; i < threads; i++) { + threaded_matricies[i] = SM64(width, height); + } + } + + virtual ~ThreadedSparseMatrix() { + } + + const SM64& getFinalMatrix() const { + return final_matrix; + } + + const SM64& getThreadMatrix(uint16_t index) const { + return threaded_matricies[index]; + } + + const SM64& mergeThreadedMatricies() { + // Merge matrix + for (int i = 0; i < width; i++) { + for (int j = 0; j < height; j++) { + for (int k = 0; k < threads; k++) { + final_matrix.inc(i, j, threaded_matricies[k].get(i, j)); + } + } + } + + return final_matrix; + } + + uint64_t incTM(uint16_t index, size_t i, size_t j, uint64_t val) { + return threaded_matricies[index].inc(i, j, val); + } + +}; +} diff --git a/src/inc/spectra_helper.hpp b/lib/include/kat/spectra_helper.hpp similarity index 100% rename from src/inc/spectra_helper.hpp rename to lib/include/kat/spectra_helper.hpp diff --git a/src/inc/str_utils.hpp b/lib/include/kat/str_utils.hpp similarity index 89% rename from src/inc/str_utils.hpp rename to lib/include/kat/str_utils.hpp index 52f7c155..63b30d99 100644 --- a/src/inc/str_utils.hpp +++ b/lib/include/kat/str_utils.hpp @@ -164,6 +164,26 @@ namespace kat return g_or_c; } + /** + * Essentially the same as GC count, except if we encounter an N (or other + * non-canonical character) then we output -1 instead. + * @param seq + * @return + */ + static int16_t gcCountN(const string& seq) { + + int16_t g_or_c = 0; + + for (const auto& c : seq) { + if (c == 'G' || c == 'g' || c == 'C' || c == 'c') + g_or_c++; + else if (c != 'A' && c != 'a' && c != 'T' && c != 't') + return -1; + } + + return g_or_c; + } + static bool validKmer(const string& merstr) { for(const auto& c: merstr) { switch(c) { diff --git a/lib/kat-2.1.pc.in b/lib/kat-2.1.pc.in new file mode 100644 index 00000000..e2242779 --- /dev/null +++ b/lib/kat-2.1.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: kat +Description: The K-mer Analysis Toolkit. +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lkat-2.1 -lpthread +Cflags: -I${includedir}/kat-@PACKAGE_VERSION@ diff --git a/lib/src/.gitignore b/lib/src/.gitignore new file mode 100644 index 00000000..a987ceb7 --- /dev/null +++ b/lib/src/.gitignore @@ -0,0 +1,5 @@ +*.dirstamp +*.lo +*.o +/.deps/ +/.libs/ diff --git a/lib/src/comp_counters.cc b/lib/src/comp_counters.cc new file mode 100644 index 00000000..a219fb5d --- /dev/null +++ b/lib/src/comp_counters.cc @@ -0,0 +1,258 @@ +// ******************************************************************** +// This file is part of KAT - the K-mer Analysis Toolkit. +// +// KAT is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// KAT is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with KAT. If not, see . +// ******************************************************************* + +#include +#include +#include +#include +#include +using std::ostream; +using std::shared_ptr; +using std::string; +using std::unique_ptr; +using std::vector; +using std::endl; + +#include +using boost::filesystem::path; + +#include +using kat::DistanceMetric; + +#include + +// ********** CompCounters *********** + +kat::CompCounters::CompCounters() : CompCounters("", "", "", DEFAULT_NB_BINS) {} + +kat::CompCounters::CompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size) : + hash1_path(_hash1_path), hash2_path(_hash2_path), hash3_path(_hash3_path) { + + hash1_total = 0; + hash2_total = 0; + hash3_total = 0; + hash1_distinct = 0; + hash2_distinct = 0; + hash3_distinct = 0; + hash1_only_total = 0; + hash2_only_total = 0; + hash1_only_distinct = 0; + hash2_only_distinct = 0; + shared_hash1_total = 0; + shared_hash2_total = 0; + shared_distinct = 0; + + spectrum1.resize(_dm_size, 0); + spectrum2.resize(_dm_size, 0); + + shared_spectrum1.resize(_dm_size, 0); + shared_spectrum2.resize(_dm_size, 0); +} + +kat::CompCounters::CompCounters(const CompCounters& o) { + hash1_path = path(o.hash1_path); + hash2_path = path(o.hash2_path); + hash3_path = path(o.hash3_path); + hash1_total = o.hash1_total; + hash2_total = o.hash2_total; + hash3_total = o.hash3_total; + hash1_distinct = o.hash1_distinct; + hash2_distinct = o.hash2_distinct; + hash3_distinct = o.hash3_distinct; + hash1_only_total = o.hash1_only_total; + hash2_only_total = o.hash2_only_total; + hash1_only_distinct = o.hash1_only_distinct; + hash2_only_distinct = o.hash2_only_distinct; + shared_hash1_total = o.shared_hash1_total; + shared_hash2_total = o.shared_hash2_total; + shared_distinct = o.shared_distinct; + spectrum1 = o.spectrum1; + spectrum2 = o.spectrum2; + shared_spectrum1 = o.shared_spectrum1; + shared_spectrum2 = o.shared_spectrum2; +} + +void kat::CompCounters::updateHash1Counters(const uint64_t hash1_count, const uint64_t hash2_count) { + hash1_total += hash1_count; + hash1_distinct++; + updateSpectrum(spectrum1, hash1_count); + + if (!hash2_count) { + hash1_only_total += hash1_count; + hash1_only_distinct++; + } +} + +void kat::CompCounters::updateHash2Counters(const uint64_t hash1_count, const uint64_t hash2_count) { + hash2_total += hash2_count; + hash2_distinct++; + updateSpectrum(spectrum2, hash2_count); + + if (!hash1_count) { + hash2_only_total += hash2_count; + hash2_only_distinct++; + } +} + +void kat::CompCounters::updateHash3Counters(const uint64_t hash3_count) { + + hash3_total += hash3_count; + hash3_distinct++; +} + +void kat::CompCounters::updateSharedCounters(const uint64_t hash1_count, const uint64_t hash2_count) { + + if (hash1_count && hash2_count) { + shared_hash1_total += hash1_count; + shared_hash2_total += hash2_count; + shared_distinct++; + updateSpectrum(shared_spectrum1, hash1_count); + updateSpectrum(shared_spectrum2, hash2_count); + } +} + +void kat::CompCounters::updateSpectrum(vector& spectrum, const uint64_t count) { + + size_t s_size = spectrum.size(); + + if (count <= 0) + ++(spectrum)[0]; + else if (count >= s_size) + ++(spectrum)[s_size - 1]; + else + ++(spectrum)[count]; +} + + + +void kat::CompCounters::printCounts(ostream &out) { + + out << "K-mer statistics for: " << endl; + out << " - Hash 1: " << hash1_path << endl; + out << " - Hash 2: " << hash2_path << endl; + + if (hash3_total > 0) + out << " - Hash 3: " << hash3_path << endl; + + out << endl; + + out << "Total K-mers in: " << endl; + out << " - Hash 1: " << hash1_total << endl; + out << " - Hash 2: " << hash2_total << endl; + + if (hash3_total > 0) + out << " - Hash 3: " << hash3_total << endl; + + out << endl; + + out << "Distinct K-mers in:" << endl; + out << " - Hash 1: " << hash1_distinct << endl; + out << " - Hash 2: " << hash2_distinct << endl; + if (hash3_total > 0) + out << " - Hash 3: " << hash3_distinct << endl; + + out << endl; + + out << "Total K-mers only found in:" << endl; + out << " - Hash 1: " << hash1_only_total << endl; + out << " - Hash 2: " << hash2_only_total << endl; + out << endl; + + out << "Distinct K-mers only found in:" << endl; + out << " - Hash 1: " << hash1_only_distinct << endl; + out << " - Hash 2: " << hash2_only_distinct << endl << endl; + + out << "Shared K-mers:" << endl; + out << " - Total shared found in hash 1: " << shared_hash1_total << endl; + out << " - Total shared found in hash 2: " << shared_hash2_total << endl; + out << " - Distinct shared K-mers: " << shared_distinct << endl << endl; + + vector> dms; + dms.push_back(unique_ptr(new ManhattanDistance())); + dms.push_back(unique_ptr(new EuclideanDistance())); + dms.push_back(unique_ptr(new CosineDistance())); + dms.push_back(unique_ptr(new CanberraDistance())); + dms.push_back(unique_ptr(new JaccardDistance())); + + out << "Distance between spectra 1 and 2 (all k-mers):" << endl; + for(auto& dm : dms) { + out << " - " << dm->getName() << " distance: " << dm->calcDistance(spectrum1, spectrum2) << endl; + } + out << endl; + + + out << "Distance between spectra 1 and 2 (shared k-mers):" << endl; + for(auto& dm : dms) { + out << " - " << dm->getName() << " distance: " << dm->calcDistance(shared_spectrum1, shared_spectrum2) << endl; + } + out << endl; + +} + + +// ******** ThreadedCompCounters ********* + +kat::ThreadedCompCounters::ThreadedCompCounters() : ThreadedCompCounters("", "", "", DEFAULT_NB_BINS) {} + +kat::ThreadedCompCounters::ThreadedCompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size) { + final_matrix = CompCounters(_hash1_path, _hash2_path, _hash3_path, _dm_size); +} + +void kat::ThreadedCompCounters::printCounts(ostream &out) { + final_matrix.printCounts(out); +} + +void kat::ThreadedCompCounters::add(shared_ptr cc) { + cc->hash1_path = final_matrix.hash1_path; + cc->hash2_path = final_matrix.hash2_path; + cc->hash3_path = final_matrix.hash3_path; + threaded_counters.push_back(*cc); +} + +void kat::ThreadedCompCounters::merge() { + + // Merge counters + for (const auto& itp : threaded_counters) { + + final_matrix.hash1_total += itp.hash1_total; + final_matrix.hash2_total += itp.hash2_total; + final_matrix.hash3_total += itp.hash3_total; + final_matrix.hash1_distinct += itp.hash1_distinct; + final_matrix.hash2_distinct += itp.hash2_distinct; + final_matrix.hash3_distinct += itp.hash3_distinct; + final_matrix.hash1_only_total += itp.hash1_only_total; + final_matrix.hash2_only_total += itp.hash2_only_total; + final_matrix.hash1_only_distinct += itp.hash1_only_distinct; + final_matrix.hash2_only_distinct += itp.hash2_only_distinct; + final_matrix.shared_hash1_total += itp.shared_hash1_total; + final_matrix.shared_hash2_total += itp.shared_hash2_total; + final_matrix.shared_distinct += itp.shared_distinct; + + merge_spectrum(final_matrix.spectrum1, itp.spectrum1); + merge_spectrum(final_matrix.spectrum2, itp.spectrum2); + merge_spectrum(final_matrix.shared_spectrum1, itp.shared_spectrum1); + merge_spectrum(final_matrix.shared_spectrum2, itp.shared_spectrum2); + } +} + + +void kat::ThreadedCompCounters::merge_spectrum(vector& spectrum, const vector& threaded_spectrum) { + + for(size_t i = 0; i < spectrum.size(); i++) { + spectrum[i] += threaded_spectrum[i]; + } +} diff --git a/src/inc/gnuplot/gnuplot_i.cc b/lib/src/gnuplot_i.cc similarity index 99% rename from src/inc/gnuplot/gnuplot_i.cc rename to lib/src/gnuplot_i.cc index a46590da..071e707a 100644 --- a/src/inc/gnuplot/gnuplot_i.cc +++ b/lib/src/gnuplot_i.cc @@ -1,4 +1,4 @@ -#include "gnuplot_i.hpp" +#include //------------------------------------------------------------------------------ diff --git a/src/input_handler.cc b/lib/src/input_handler.cc similarity index 65% rename from src/input_handler.cc rename to lib/src/input_handler.cc index bb3eacc5..cff3a1a6 100644 --- a/src/input_handler.cc +++ b/lib/src/input_handler.cc @@ -19,7 +19,9 @@ #include #endif +#include #include +using std::stringstream; #include #include @@ -30,18 +32,14 @@ using bfs::path; using boost::timer::auto_cpu_timer; using boost::split; -#include "input_handler.hpp" +#include using kat::JellyfishHelper; -void kat::InputHandler::setMultipleInputs(const vector& inputs) { - for(auto& p : inputs) { - input.push_back(p); - } -} +#include void kat::InputHandler::setMultipleInputs(const vector& inputs) { for(auto& p : inputs) { - input.push_back(make_shared(p)); + input.push_back(p); } } @@ -52,20 +50,20 @@ void kat::InputHandler::validateInput() { // Check input file(s) exists for(auto& rp : input) { - path p(*rp); + path p(rp); if (bfs::is_symlink(p)) { if (bfs::symbolic_link_exists(p)) { p = bfs::canonical(p); } else { - BOOST_THROW_EXCEPTION(JellyfishException() << JellyfishErrorInfo(string( + BOOST_THROW_EXCEPTION(InputFileException() << InputFileErrorInfo(string( "Could not find input file at: ") + p.string() + "; please check the path and try again.")); } } if (!bfs::exists(p)) { - BOOST_THROW_EXCEPTION(JellyfishException() << JellyfishErrorInfo(string( + BOOST_THROW_EXCEPTION(InputFileException() << InputFileErrorInfo(string( "Could not find input file at: ") + p.string() + "; please check the path and try again.")); } @@ -76,7 +74,7 @@ void kat::InputHandler::validateInput() { } else { if (m != mode) { - BOOST_THROW_EXCEPTION(JellyfishException() << JellyfishErrorInfo(string( + BOOST_THROW_EXCEPTION(InputFileException() << InputFileErrorInfo(string( "Cannot mix sequence files and jellyfish hashes. Input: ") + p.string())); } } @@ -87,7 +85,7 @@ void kat::InputHandler::validateInput() { void kat::InputHandler::loadHeader() { if (mode == InputMode::LOAD) { - header = JellyfishHelper::loadHashHeader(*input[0]); + header = JellyfishHelper::loadHashHeader(input[0]); } } @@ -101,7 +99,7 @@ void kat::InputHandler::validateMerLen(const uint16_t merLen) { lexical_cast(merLen) + ". Key length was " + lexical_cast(header->key_len() / 2) + - " for : " + input[0]->string())); + " for : " + input[0].string())); } } } @@ -110,9 +108,18 @@ string kat::InputHandler::pathString() { string s; for(auto& p : input) { - s += p->string() + " "; + s += p.string() + " "; + } + return boost::trim_right_copy(s); +} + +string kat::InputHandler::fileName() { + + string s; + for(auto& p : input) { + s += p.leaf().string() + " "; } - return s; + return boost::trim_right_copy(s); } void kat::InputHandler::count(const uint16_t threads) { @@ -133,7 +140,7 @@ void kat::InputHandler::count(const uint16_t threads) { header->update_from_ary(*hash); header->counter_len(4); // Hard code for now. header->canonical(canonical); - header->format(binary_dumper::format); + header->format(binary_dumper::format); cout << " done."; cout.flush(); @@ -147,7 +154,7 @@ void kat::InputHandler::loadHash() { cout.flush(); hashLoader = make_shared(); - hashLoader->loadHash(*input[0], false); + hashLoader->loadHash(input[0], false); hash = hashLoader->getHash(); canonical = hashLoader->getCanonical(); merLen = hashLoader->getMerLen(); @@ -178,47 +185,77 @@ void kat::InputHandler::dump(const path& outputPath, const uint16_t threads) { else { bfs::create_symlink(getSingleInput(), outputPath); } - - } -vector kat::InputHandler::globFiles(const string& input) { +shared_ptr> kat::InputHandler::globFiles(const string& input) { vector inputvec; boost::split(inputvec, input, boost::is_any_of(" ")); - vector pathvec; + vector pathvec; for(auto& s : inputvec) { - pathvec.push_back(make_shared(s)); + pathvec.push_back(s); } return globFiles(pathvec); } -vector kat::InputHandler::globFiles(const vector& input) { +int kat::InputHandler::globerr(const char *path, int eerrno) { + + fprintf(stderr, "Globbing error: %s: %s\n", path, strerror(eerrno)); + return eerrno; +} + +shared_ptr> kat::InputHandler::globFiles(const vector& input) { glob_t globbuf; + + if (input.empty()) { + BOOST_THROW_EXCEPTION(InputFileException() << InputFileErrorInfo(string("No input provided for this input group"))); + } // Translate glob patterns into real paths int i = 0; - for(auto& g : input) { - glob(g->c_str(), i > 0 ? GLOB_TILDE | GLOB_APPEND : GLOB_TILDE, NULL, &globbuf); + for(auto& g : input) { + // Build the flags. + // This means if the user has listed files + // in this input group separated with a space + // then combine results together. + // Also expand tildes (home directory) and braces regardless and don't check to see + // if the target file exists... let that check happen downstream + int flags = GLOB_TILDE | GLOB_NOCHECK | GLOB_BRACE; + if (i > 0) + flags |= GLOB_APPEND; + + // Run glob, puts results in globbuf + int ret = glob(g.c_str(), flags, globerr, &globbuf); + if (ret != 0) { + stringstream ss; + ss << "Problem globbing input pattern: " << g.c_str() << ". Non-zero return code. Error type: " << + ( ret == GLOB_ABORTED ? "filesystem problem" : + ret == GLOB_NOMATCH ? "no match of pattern" : + ret == GLOB_NOSPACE ? "no dynamic memory" : + "unknown problem"); + BOOST_THROW_EXCEPTION(InputFileException() << InputFileErrorInfo(ss.str())); + } i++; } - vector transformed; + // Put globbed data into the results array + shared_ptr> globbed = make_shared>(); for( size_t i = 0; i < globbuf.gl_pathc; ++i ) - transformed.push_back( make_shared(globbuf.gl_pathv[i]) ); + globbed->push_back( path(string(globbuf.gl_pathv[i])) ); + // Only free glob results if there's something to free if( globbuf.gl_pathc > 0 ) globfree( &globbuf ); // Check for content. If there isn't any then probably the input file doesn't // exist. But we add the basic input regardless, the user will have to check // for file non-existence later. - if (transformed.empty()) { - transformed.push_back(input[0]); + if (globbed->empty()) { + globbed->push_back(input[0]); } - return transformed; + return globbed; } diff --git a/src/jellyfish_helper.cc b/lib/src/jellyfish_helper.cc similarity index 94% rename from src/jellyfish_helper.cc rename to lib/src/jellyfish_helper.cc index d85f8d99..dec80c5a 100644 --- a/src/jellyfish_helper.cc +++ b/lib/src/jellyfish_helper.cc @@ -47,7 +47,7 @@ using jellyfish::large_hash::reprobe_limit_t; using jellyfish::Offsets; using jellyfish::quadratic_reprobes; -#include "jellyfish_helper.hpp" +#include using kat::JellyfishHelper; /** @@ -215,19 +215,19 @@ void kat::JellyfishHelper::countSlice(HashCounter& ary, SequenceParser& parser, * @param seqFile Sequence file to count * @return The hash array */ -LargeHashArrayPtr kat::JellyfishHelper::countSeqFile(const vector>& seqFiles, HashCounter& hashCounter, bool canonical, uint16_t threads) { +LargeHashArrayPtr kat::JellyfishHelper::countSeqFile(const vector& seqFiles, HashCounter& hashCounter, bool canonical, uint16_t threads) { // Convert paths to a format jellyfish is happy with vector paths; for(auto& p : seqFiles) { - paths.push_back(p->c_str()); + paths.push_back(p.c_str()); } // Ensures jellyfish knows what kind of kmers we are working with - uint16_t merLen = hashCounter.key_len() / 2; + unsigned int merLen = hashCounter.key_len() / 2; mer_dna::k(merLen); - StreamManager streams(paths.begin(), paths.end(), 1); + StreamManager streams(paths.begin(), paths.end(), (const int)std::min(paths.size(), (size_t)threads)); SequenceParser parser(merLen, streams.nb_streams(), 3 * threads, 4096, streams); @@ -244,7 +244,7 @@ LargeHashArrayPtr kat::JellyfishHelper::countSeqFile(const vector #include -#include "inc/matrix/matrix_metadata_extractor.hpp" +#include using std::ifstream; using std::string; diff --git a/m4/ax_boost_chrono.m4 b/m4/ax_boost_chrono.m4 index 408d9f81..51dd7d15 100644 --- a/m4/ax_boost_chrono.m4 +++ b/m4/ax_boost_chrono.m4 @@ -101,7 +101,7 @@ AC_DEFUN([AX_BOOST_CHRONO], for libextension in `ls $BOOSTLIBDIR/libboost_chrono*.a* 2>/dev/null` ; do ax_static_lib=${libextension} AC_CHECK_FILE($ax_static_lib, - [BOOST_CHRONO_STATIC_LIB="-lrt $ax_static_lib"; AC_SUBST(BOOST_CHRONO_STATIC_LIB) link_chrono_static="yes"; break], + [BOOST_CHRONO_STATIC_LIB="$ax_static_lib"; AC_SUBST(BOOST_CHRONO_STATIC_LIB) link_chrono_static="yes"; break], [link_chrono_static="no"]) done diff --git a/m4/ax_python.m4 b/m4/ax_python.m4 deleted file mode 100644 index c6503f67..00000000 --- a/m4/ax_python.m4 +++ /dev/null @@ -1,98 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_python.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_PYTHON -# -# DESCRIPTION -# -# This macro does a complete Python development environment check. -# -# It recurses through several python versions (from 2.1 to 2.6 in this -# version), looking for an executable. When it finds an executable, it -# looks to find the header files and library. -# -# It sets PYTHON_BIN to the name of the python executable, -# PYTHON_INCLUDE_DIR to the directory holding the header files, and -# PYTHON_LIB to the name of the Python library. -# -# This macro calls AC_SUBST on PYTHON_BIN (via AC_CHECK_PROG), -# PYTHON_INCLUDE_DIR and PYTHON_LIB. -# -# LICENSE -# -# Copyright (c) 2008 Michael Tindal -# -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 15 - -AC_DEFUN([AX_PYTHON], -[AC_MSG_CHECKING(for python build information) -AC_MSG_RESULT([]) -for python in python3.5 python3.4 python3.3 python3.2 python3.1 python3.0; do -AC_CHECK_PROGS(PYTHON_BIN, [$python]) -ax_python_bin=$PYTHON_BIN -if test x$ax_python_bin != x; then - AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no) - if test x$ax_python_lib == xno; then - AC_CHECK_LIB(${ax_python_bin}m, main, ax_python_lib=${ax_python_bin}m, ax_python_lib=no) - fi - if test x$ax_python_lib != xno; then - ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"` - if test x$ax_python_header != x; then - break; - fi - fi -fi -done -if test x$ax_python_bin = x; then - ax_python_bin=no -fi -if test x$ax_python_header = x; then - ax_python_header=no -fi -if test x$ax_python_lib = x; then - ax_python_lib=no -fi - -AC_MSG_RESULT([ results of the Python check:]) -AC_MSG_RESULT([ Binary: $ax_python_bin]) -AC_MSG_RESULT([ Library: $ax_python_lib]) -AC_MSG_RESULT([ Include Dir: $ax_python_header]) - -if test x$ax_python_header != xno; then - PYTHON_INCLUDE_DIR=$ax_python_header - AC_SUBST(PYTHON_INCLUDE_DIR) -fi -if test x$ax_python_lib != xno; then - PYTHON_LIB=$ax_python_lib - AC_SUBST(PYTHON_LIB) -fi -])dnl diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 new file mode 100644 index 00000000..48dd6798 --- /dev/null +++ b/m4/ax_python_devel.m4 @@ -0,0 +1,327 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_python_devel.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_PYTHON_DEVEL([version]) +# +# DESCRIPTION +# +# Note: Defines as a precious variable "PYTHON_VERSION". Don't override it +# in your configure.ac. +# +# This macro checks for Python and tries to get the include path to +# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output +# variables. It also exports $(PYTHON_EXTRA_LIBS) and +# $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. +# +# You can search for some particular version of Python by passing a +# parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please +# note that you *have* to pass also an operator along with the version to +# match, and pay special attention to the single quotes surrounding the +# version number. Don't use "PYTHON_VERSION" for this: that environment +# variable is declared as precious and thus reserved for the end-user. +# +# This macro should work for all versions of Python >= 2.1.0. As an end +# user, you can disable the check for the python version by setting the +# PYTHON_NOVERSIONCHECK environment variable to something else than the +# empty string. +# +# If you need to use this macro for an older Python version, please +# contact the authors. We're always open for feedback. +# +# LICENSE +# +# Copyright (c) 2009 Sebastian Huber +# Copyright (c) 2009 Alan W. Irwin +# Copyright (c) 2009 Rafael Laboissiere +# Copyright (c) 2009 Andrew Collier +# Copyright (c) 2009 Matteo Settenvini +# Copyright (c) 2009 Horst Knorr +# Copyright (c) 2013 Daniel Mullner +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 18 + +AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL]) +AC_DEFUN([AX_PYTHON_DEVEL],[ + # + # Allow the use of a (user set) custom python version + # + AC_ARG_VAR([PYTHON_VERSION],[The installed Python + version to use, for example '2.3'. This string + will be appended to the Python interpreter + canonical name.]) + + AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]]) + if test -z "$PYTHON"; then + AC_MSG_WARN([Cannot find python$PYTHON_VERSION in your system path]) + PYTHON_VERSION="" + fi + + # + # Check for a version of Python >= 2.1.0 + # + AC_MSG_CHECKING([for a version of Python >= '2.1.0']) + ac_supports_python_ver=`$PYTHON -c "import sys; \ + ver = sys.version.split ()[[0]]; \ + print (ver >= '2.1.0')"` + if test "$ac_supports_python_ver" != "True"; then + if test -z "$PYTHON_NOVERSIONCHECK"; then + AC_MSG_RESULT([no]) + AC_MSG_FAILURE([ +This version of the AC@&t@_PYTHON_DEVEL macro +doesn't work properly with versions of Python before +2.1.0. You may need to re-run configure, setting the +variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG, +PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. +Moreover, to disable this check, set PYTHON_NOVERSIONCHECK +to something else than an empty string. +]) + else + AC_MSG_RESULT([skip at user request]) + fi + else + AC_MSG_RESULT([yes]) + fi + + # + # if the macro parameter ``version'' is set, honour it + # + if test -n "$1"; then + AC_MSG_CHECKING([for a version of Python $1]) + ac_supports_python_ver=`$PYTHON -c "import sys; \ + ver = sys.version.split ()[[0]]; \ + print (ver $1)"` + if test "$ac_supports_python_ver" = "True"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_WARN([this package requires Python $1. +If you have it installed, but it isn't the default Python +interpreter in your system path, please pass the PYTHON_VERSION +variable to configure. See ``configure --help'' for reference. +]) + PYTHON_VERSION="" + fi + fi + + # + # Check if you have distutils, else fail + # + AC_MSG_CHECKING([for the distutils Python package]) + ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` + if test -z "$ac_distutils_result"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_WARN([cannot import Python module "distutils". +Please check your Python installation. The error was: +$ac_distutils_result]) + PYTHON_VERSION="" + fi + + # + # Check for Python include path + # + AC_MSG_CHECKING([for Python include path]) + if test -z "$PYTHON_CPPFLAGS"; then + python_path=`$PYTHON -c "import distutils.sysconfig; \ + print (distutils.sysconfig.get_python_inc ());"` + plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ + print (distutils.sysconfig.get_python_inc (plat_specific=1));"` + if test -n "${python_path}"; then + if test "${plat_python_path}" != "${python_path}"; then + python_path="-I$python_path -I$plat_python_path" + else + python_path="-I$python_path" + fi + fi + PYTHON_CPPFLAGS=$python_path + fi + AC_MSG_RESULT([$PYTHON_CPPFLAGS]) + AC_SUBST([PYTHON_CPPFLAGS]) + + # + # Check for Python library path + # + AC_MSG_CHECKING([for Python library path]) + if test -z "$PYTHON_LIBS"; then + # (makes two attempts to ensure we've got a version number + # from the interpreter) + ac_python_version=`cat<]], + [[Py_Initialize();]]) + ],[pythonexists=yes],[pythonexists=no]) + AC_LANG_POP([C]) + # turn back to default flags + CPPFLAGS="$ac_save_CPPFLAGS" + LIBS="$ac_save_LIBS" + LDFLAGS="$ac_save_LDFLAGS" + + AC_MSG_RESULT([$pythonexists]) + + if test ! "x$pythonexists" = "xyes"; then + AC_MSG_WARN([ + Could not link test program to Python. Maybe the main Python library has been + installed in some non-standard library path. If so, pass it to configure, + via the LIBS environment variable. + Example: ./configure LIBS="-L/usr/non-standard-path/python/lib" + ============================================================================ + ERROR! + You probably have to install the development version of the Python package + for your distribution. The exact name of this package varies among them. + ============================================================================ + ]) + PYTHON_VERSION="" + fi + + # + # all done! + # +]) diff --git a/scripts/.gitignore b/scripts/.gitignore index e264bb93..6ffe557b 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore @@ -1,3 +1,5 @@ /Makefile __pycache__ *.pyc +*.py.bak +/.idea/ diff --git a/scripts/findpeaks.py b/scripts/findpeaks.py deleted file mode 100644 index e759c955..00000000 --- a/scripts/findpeaks.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python3 - -import numpy as np - -def findpeaks(a): - a = np.squeeze(np.asarray(a)) - ad = np.sign(np.diff(a)) - # remove zeros to find end of plateaus - ad[ad == 0] = 1 - return np.where(np.diff(ad) == -2)[0] + 1 - diff --git a/scripts/header.py b/scripts/header.py deleted file mode 100644 index 315e52d2..00000000 --- a/scripts/header.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python3 - -def readheader(input_file): - header = {} - for line in input_file: - if line[0:2] == "# ": - s = line[2:-1].split(":") - n = s[0] - v = ":".join(s[1:]) - header[n] = v - elif line[:-1] == "###": - break - else: - break - return header diff --git a/scripts/dist_analysis.py b/scripts/kat_distanalysis.py old mode 100644 new mode 100755 similarity index 73% rename from scripts/dist_analysis.py rename to scripts/kat_distanalysis.py index e01a9598..6a7dacfe --- a/scripts/dist_analysis.py +++ b/scripts/kat_distanalysis.py @@ -1,9 +1,12 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 + import sys from math import * from scipy.stats import gamma,norm from scipy import mean,optimize import numpy as np +import argparse + def plot_hist(h,points,cap,label=""): plot([min(cap,x) for x in h[:points]],label=label) @@ -28,25 +31,26 @@ def read_hist(self,name,points=10000,column=1,cumulative=False): def total_values(self,start=1,end=10000): - return map(sum,zip(*[x.points(start,end) for x in self.peaks])) + return list(map(sum,list(zip(*[x.points(start,end) for x in self.peaks])))) ###----------------- FIND AND CREATE PEAKS -------------------- def deriv(self,histogram): - return [histogram[i+2]-histogram[i] for i in xrange(len(histogram)-2)] - def progsmoothderiv(self,histogram): + return [histogram[i+2]-histogram[i] for i in range(len(histogram)-2)] + + def progsmoothderiv(self, histogram): #always return mean - return [mean(histogram[i+1:i+1+i/10])-mean(histogram[i-i/10:i+1]) for i in xrange(len(histogram)-2)] + return [mean(histogram[i+1:int(i+1+i/10)])-mean(histogram[int(i-i/10):i+1]) for i in range(len(histogram)-2)] - def find_maxima(self, center, radious,min_perc,min_elem,histogram=None): + def find_maxima(self, center, radius, min_perc, min_elem, histogram=None): if histogram==None: - hs=self.histogram[center-radious:center+radious] + hs=self.histogram[center-radius:center+radius] #Smoothed df/dx (dx=2 units) - deriv=self.progsmoothderiv(self.histogram)[center-radious:center+radious] + deriv=self.progsmoothderiv(self.histogram)[center-radius:center+radius] else: - hs=histogram[center-radious:center+radious] + hs=histogram[center-radius:center+radius] #Smoothed df/dx (dx=2 units) - deriv=self.progsmoothderiv(histogram)[center-radious:center+radious] + deriv=self.progsmoothderiv(histogram)[center-radius:center+radius] fmax=hs.index(max(hs)) if fmax==0 or fmax==len(hs)-1: return 0 @@ -54,22 +58,22 @@ def find_maxima(self, center, radious,min_perc,min_elem,histogram=None): #find a single inflection point-> that is the maxima #Reject by voting to avoid oscillations. failpoints=0 - for i in xrange(fmax): + for i in range(fmax): if deriv[i]<0: failpoints+=1 - for i in xrange(fmax+1,len(deriv)): + for i in range(fmax+1,len(deriv)): if deriv[i]>0: failpoints+=1 - if float(failpoints)/(2*radious+1)>.1: + if float(failpoints)/(2*radius+1)>.1: return 0 #TODO: discard maxima if not 1% of the already contained elements on peaks are there if sum(hs) < min( (float(min_perc)/100)*sum([x.elements for x in self.peaks]),min_elem): - print "Distribution on %d too small to be considered (%d elements)" % (center-radious+fmax,sum(hs)) + print("Distribution on %d too small to be considered (%d elements)" % (center-radius+fmax, sum(hs))) return 0 #TODO: do further validation #print "maxima found on %d, for %s" % (fmax,hs) - return center-radious+fmax + return center-radius+fmax def add_peak_and_update_cuts(self,lm,reset_opt=False): @@ -78,33 +82,33 @@ def add_peak_and_update_cuts(self,lm,reset_opt=False): fdists=[x.mean for x in self.peaks] for f in fdists: if lm>=f-f/5 and lm<=f+f/5: - print "WARNING!!! Dist on %d is not to be added, because existing dist on %d is too close to it." % (lm,f) + print("WARNING!!! Dist on %d is not to be added, because existing dist on %d is too close to it." % (lm,f)) return False fdists.append(lm) fdists.sort() self.cuts=[self.fmin] - for i in xrange(len(fdists)-1): + for i in range(len(fdists)-1): self.cuts.append(int(fdists[i]*(1+float(fdists[i])/(fdists[i]+fdists[i+1])))) self.cuts.append(int(min(len(self.histogram)-1,fdists[-1]*1.5))) #print "cuts on %s" % str(self.cuts) if reset_opt: self.peaks=[] - for i in xrange(len(fdists)): + for i in range(len(fdists)): if reset_opt or i==fdists.index(lm): - self.peaks.append(KmerPeak(lm,fdists[i], fdists[i]/6, sum([self.histogram[j] for j in xrange(self.cuts[i],self.cuts[i+1])]))) + self.peaks.append(KmerPeak(lm,fdists[i], fdists[i]/6, sum([self.histogram[j] for j in range(self.cuts[i],self.cuts[i+1])]))) self.peaks.sort(key=lambda x: x.mean) return True def create_peaks(self,min_perc,min_elem): fmin=0 #walk till first local minimum (d(f)>0) - for i in xrange(len(self.histogram)): + for i in range(len(self.histogram)): if self.histogram[i].01*sum([p.elements for p in self.peaks]): - lm=self.find_maxima(f,f/5,min_perc,min_elem,base) + if int(f+f/5) < len(self.histogram) and sum([base[x] for x in range(int(f-f/5),int(f+f/5))]) > .01 * sum([p.elements for p in self.peaks]): + lm=self.find_maxima(int(f), int(f/5), min_perc, min_elem,base) if lm: if self.add_peak_and_update_cuts(lm,reset_opt=False): updated=True #else: # print "No new maxima found on %d +/- %d" % (f,f/5) - if updated: self.optimize_peaks(min_perc,min_elem,verbose) + if updated: self.optimize_peaks(min_perc,min_elem) def residues(self,p): """p has a triplet for each distribution""" #print p - for i in xrange(len(self.peaks)): + for i in range(len(self.peaks)): self.peaks[i].mean=p[i*3] self.peaks[i].shape=p[i*3+1] self.peaks[i].elements=p[i*3+2] tv=self.total_values() - r=[tv[i]-self.histogram[i] for i in xrange(self.cuts[0],self.cuts[-1])] + r=[tv[i]-self.histogram[i] for i in range(self.cuts[0],self.cuts[-1])] #a lot more penalty for being UP: - for i in xrange(len(r)): + for i in range(len(r)): if r[i]>0: r[i]=2*r[i] #for j in xrange(len(self.peaks)): @@ -224,7 +215,7 @@ def point(self,x): return float(self.elements) / np.sqrt(2 * np.pi) / self.shape * np.exp(-(x - self.mean) ** 2 / 2. / self.shape ** 2) def points(self,start,end): - return [self.point(x) for x in xrange(start,end)] + return [self.point(x) for x in range(start,end)] def residues(self,p,offset,histogram): """residues of fitting self with parameters p to offset obj[0] with values obj[1]""" @@ -232,9 +223,9 @@ def residues(self,p,offset,histogram): self.mean=p[0] self.shape=p[1] self.elements=p[2] - r=[self.point(offset+i)-histogram[i] for i in xrange(len(histogram))] + r=[self.point(offset+i)-histogram[i] for i in range(len(histogram))] #a lot more penalty for being UP: - for i in xrange(len(r)): + for i in range(len(r)): if r[i]>0: r[i]=2*r[i] #if p[0]>self.target_max*1.1 or p[0]%d, x->%d" % (limy,limx) + print("Plot limits: y->%d, x->%d" % (limy,limx)) self.plot_all(limx,limy) show() self.spectra.optimize_peaks() @@ -292,12 +283,12 @@ def analyse(self): figure() self.plot_peaks(limx,limy) show() - for p in self.spectra.peaks: print p + for p in self.spectra.peaks: print(p) class MXKmerSpectraAnalysis(object): def __init__(self,filename,columns=3,points=10000): self.spectras=[KmerSpectra(filename,points,column=0,cumulative=True)] - for i in xrange(columns): + for i in range(columns): self.spectras.append(KmerSpectra(filename,points,column=i,cumulative=(i==columns-1))) @@ -308,7 +299,7 @@ def plot_hist(self,h,points,cap,label=""): legend() def plot_hist_df(self,h,points,cap): - plot([max(-cap,min(cap,x)) for x in [h[i+1]-h[i] for i in xrange(points)]]) + plot([max(-cap,min(cap,x)) for x in [h[i+1]-h[i] for i in range(points)]]) def plot_all(self,points=0,cap=0,spectra=True,fit=True,dists=True): if 0==points: points=self.limx @@ -326,13 +317,13 @@ def plot_all(self,points=0,cap=0,spectra=True,fit=True,dists=True): self.plot_hist(p.points(1,points+1),points,cap,label="fit dist %d" % s.peaks.index(p)) show() for p in s.peaks: - print p + print(p) def analyse(self,min_perc=1,min_elem=100000,verbose=False): self.limx=0 self.limy=0 for s in self.spectras: - print "analysing spectra... ", + print("analysing spectra... ", end=' ') sys.stdout.flush() s.create_peaks(min_perc=min_perc,min_elem=min_elem) @@ -340,16 +331,16 @@ def analyse(self,min_perc=1,min_elem=100000,verbose=False): if s.peaks: self.limy=max(int(s.maxval*1.1/1000)*1000, self.limy ) self.limx=max(min(s.peaks[-1].mean*2,len(s.histogram)) , self.limx) - print "peaks created ... ", + print("peaks created ... ", end=' ') sys.stdout.flush() - s.optimize_peaks(min_perc=min_perc,min_elem=min_elem,verbose=verbose) - print "locally optimised ... ", - for p in s.peaks: print p + s.optimize_peaks(min_perc=min_perc,min_elem=min_elem) + print("locally optimised ... ", end=' ') + for p in s.peaks: print(p) sys.stdout.flush() s.optimize_overall() - print "overall optimised ... DONE" + print("overall optimised ... DONE") sys.stdout.flush() - print "Plot limits: y->%d, x->%d" % (self.limy,self.limx) + print("Plot limits: y->%d, x->%d" % (self.limy,self.limx)) def peak_stats(self): """TODO: Runs analyse (TODO:include general spectra) @@ -364,7 +355,7 @@ def peak_stats(self): general_dists.sort(key=lambda x: x[0]) pkc=general_dists[0][0] kcov=sum([ (x[0]/round(x[0]/pkc) )*x[1] for x in general_dists])/sum([x[1] for x in general_dists]) - print pkc, kcov + print(pkc, kcov) #step 2, selects frequencies for peaks from bigger to smaller till X% of the elements are covered or no more peaks goal=0.99*sum([x[1] for x in general_dists]) maxpeaks=10 @@ -383,28 +374,42 @@ def peak_stats(self): for f in af: total=0 pd={} - for i in xrange(len(self.spectras)-1): + for i in range(len(self.spectras)-1): m=[(x.mean,x.elements) for x in self.spectras[1+i].peaks if x.mean>0.8*f and x.mean<1.2*f] if len(m)==1: pd[i]=m[0] total+=m[0][1] if len(m)>1: - print "WARNING, MORE THAT 1 PEAK FOR f=%.3f FOUND ON THE %dx SPECTRA!!!" % (f,i) - print "\n---- Report for f=%.3f (total elements %d)----" % (f,total) - for i in xrange(len(self.spectras)-1): - if i in pd.keys(): - print " %dx: %.2f%% (%d elements on f=%.2f)" % (i,float(pd[i][1])*100/total,pd[i][1],pd[i][0]) + print("WARNING, MORE THAT 1 PEAK FOR f=%.3f FOUND ON THE %dx SPECTRA!!!" % (f,i)) + print("\n---- Report for f=%.3f (total elements %d)----" % (f,total)) + for i in range(len(self.spectras)-1): + if i in list(pd.keys()): + print(" %dx: %.2f%% (%d elements on f=%.2f)" % (i,float(pd[i][1])*100/total,pd[i][1],pd[i][0])) else: - print " %dx: No significant content" % i + print(" %dx: No significant content" % i) #step 4, general report return if __name__ == '__main__': - if len(sys.argv)!=6: - print "Usage: %s filename distribution_count fmax min_perc min_elem" % sys.argv[0] - exit(1) + # ----- command line parsing ----- + parser = argparse.ArgumentParser( + description="""Analyse a comp matrix file with respect to the distributions and copy numbers seen within.""") + + parser.add_argument("matrix_file", type=str, + help="The input matrix file from KAT comp") + + parser.add_argument("-c", "--cns", type=int, default=4, + help="The number of copy numbers to consider in the analysis") + parser.add_argument("-f", "--freq_cutoff", type=int, default=200, + help="The maximum frequency cutoff point to consider. Analysis will be done up to this frequency.") + parser.add_argument("-p", "--min_perc", type=int, default=1, + help="Any new distribution that adds less to min perc kmers on the iterative analysis will not be added.") + parser.add_argument("-e", "--min_elem", type=int, default=100000, + help="Any new distribution that adds less to min elem kmers on the iterative analysis will not be added.") + + args = parser.parse_args() - a=MXKmerSpectraAnalysis(sys.argv[1],int(sys.argv[2]),int(sys.argv[3])) - a.analyse(min_perc=int(sys.argv[4]),min_elem=int(sys.argv[5]),verbose=False) - a.peak_stats() + a=MXKmerSpectraAnalysis(args.matrix_file, args.cns, args.freq_cutoff) + a.analyse(min_perc=args.min_perc, min_elem=args.min_elem) + a.peak_stats() diff --git a/scripts/colormaps.py b/scripts/kat_plot_colormaps.py similarity index 100% rename from scripts/colormaps.py rename to scripts/kat_plot_colormaps.py diff --git a/scripts/density.py b/scripts/kat_plot_density.py similarity index 84% rename from scripts/density.py rename to scripts/kat_plot_density.py index 89b80e3c..4b45c503 100755 --- a/scripts/density.py +++ b/scripts/kat_plot_density.py @@ -3,11 +3,12 @@ import argparse import numpy as np import scipy.ndimage as ndimage +import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt -import colormaps as cmaps +import kat_plot_colormaps as cmaps -from findpeaks import * -from header import * +from kat_plot_misc import * # ----- command line parsing ----- parser = argparse.ArgumentParser( @@ -45,9 +46,13 @@ help="Width of canvas") parser.add_argument("-l", "--height", type=int, default=6, help="Height of canvas") +parser.add_argument("--contours", choices=["none", "normal", "smooth"], + default="normal") parser.add_argument("--not_rasterised", dest="rasterised", action="store_false", help="Don't rasterise graphics (slower).") +parser.add_argument("--dpi", type=int, default=300, + help="Resolution in dots per inch of output graphic.") parser.set_defaults(rasterised=True) parser.add_argument("-v", "--verbose", dest="verbose", action="store_true", @@ -95,7 +100,9 @@ if args.verbose: print("{:d} by {:d} matrix file loaded.".format(matrix.shape[0], matrix.shape[1])) -matrix_smooth = ndimage.gaussian_filter(matrix, sigma=2.0, order=0) + +if args.contours == "smooth": + matrix_smooth = ndimage.gaussian_filter(matrix, sigma=2.0, order=0) if args.x_max is None or args.y_max is None or args.z_max is None: # find peaks @@ -148,19 +155,25 @@ rasterized=args.rasterised) plt.axis([0,xmax,0,ymax]) cbar = plt.colorbar() -cbar.set_label(z_label) +cbar.set_label(wrap(z_label)) cbar.solids.set_rasterized(args.rasterised) -levels = np.arange(zmax/8, zmax, zmax/8) -plt.contour(matrix_smooth, colors="white", alpha=0.6, levels=levels) - -plt.title(title) -plt.xlabel(x_label) -plt.ylabel(y_label) +if zmax > 0: + levels = np.arange(zmax/8, zmax, zmax/8) + if args.contours == "normal": + plt.contour(matrix, colors="white", alpha=0.6, levels=levels) + elif args.contours == "smooth": + plt.contour(matrix_smooth, colors="white", alpha=0.6, levels=levels) + +title = plt.title(wrap(title)) +plt.xlabel(wrap(x_label)) +plt.ylabel(wrap(y_label)) plt.grid(True, color="white", alpha=0.2) +plt.tight_layout() if args.output_type is not None: output_name = args.output + '.' + args.output_type else: output_name = args.output -plt.savefig(output_name, dpi=300) +plt.savefig(correct_filename(output_name), dpi=args.dpi) + diff --git a/scripts/kat_plot_misc.py b/scripts/kat_plot_misc.py new file mode 100644 index 00000000..014e7182 --- /dev/null +++ b/scripts/kat_plot_misc.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python3 + +import numpy as np +import matplotlib +matplotlib.use('Agg') +import matplotlib.pyplot as plt +import textwrap + +def readheader(input_file): + header = {} + for line in input_file: + if line[0:2] == "# ": + s = line[2:-1].split(":") + n = s[0] + v = ":".join(s[1:]) + header[n] = v + elif line[:-1] == "###": + break + else: + break + return header + +def findpeaks(a): + a = np.squeeze(np.asarray(a)) + ad = np.sign(np.diff(a)) + # remove zeros to find end of plateaus + ad[ad == 0] = 1 + return np.where(np.diff(ad) == -2)[0] + 1 + +def correct_filename(filename): + split = filename.split('.') + if len(split) > 1: + ext = split[-1] + else: + ext = '' + + types = list(plt.gcf().canvas.get_supported_filetypes().keys()) + if ext in types: + return filename + elif "png" in types: + return filename + ".png" + elif "pdf" in types: + return filename + ".pdf" + else: + return filename + "." + types[0] + +def wrap(name): + return "\n".join(textwrap.wrap(name, 60)) + diff --git a/scripts/kat_plot_profile.py b/scripts/kat_plot_profile.py new file mode 100755 index 00000000..72520457 --- /dev/null +++ b/scripts/kat_plot_profile.py @@ -0,0 +1,223 @@ +#!/usr/bin/env python3 + +import sys +import argparse +import math +import numpy as np +import matplotlib + +matplotlib.use('Agg') +import matplotlib.pyplot as plt +import matplotlib.ticker as ticker + +from kat_plot_misc import * + +# ----- command line parsing ----- +parser = argparse.ArgumentParser( + description="Create Sequence Coverage Plot.") + +parser.add_argument("sect_profile_file", type=str, + help="The input profile file from KAT sect") + +parser.add_argument("sect_profile_file_2", nargs="?", type=str, + help="The optional second input profile file from KAT sect") + +parser.add_argument("-o", "--output", type=str, default="kat-profile", + help="The path to the output file.") +parser.add_argument("-p", "--output_type", type=str, + help="The plot file type to create (default is based on " \ + "given output name).") +parser.add_argument("-t", "--title", type=str, + help="Title for plot") +parser.add_argument("-a", "--x_label", type=str, + help="Label for x-axis") +parser.add_argument("-b", "--y_label", type=str, + help="Label for y-axis") +parser.add_argument("-c", "--y2_label", type=str, + help="Label for second y-axis") +parser.add_argument("-X", "--x_max", type=int, + help="Maximum value for x-axis") +parser.add_argument("-x", "--x_min", type=int, + help="Minimum value for x-axis") +parser.add_argument("-Y", "--y_max", type=int, + help="Maximum value for y-axis") +parser.add_argument("-y", "--y_min", type=int, + help="Minimum value for y-axis") +parser.add_argument("-z", "--y2_max", type=int, + help="Maximum value for second y-axis") +parser.add_argument("-w", "--width", type=int, default=8, + help="Width of canvas") +parser.add_argument("-l", "--height", type=int, default=2.5, + help="Height of canvas") +parser.add_argument("-n", "--index", type=str, default="0", + help="Comma separate list of indexes of fasta entry " \ + "to plot") +parser.add_argument("-d", "--header", type=str, + help="Name of fasta entry to plot (has priority " \ + "over index)") +parser.add_argument("--dpi", type=int, default=300, + help="Resolution in dots per inch of output graphic.") +parser.add_argument("-v", "--verbose", dest="verbose", + action="store_true", + help="Print extra information") +parser.set_defaults(verbose=False) + +args = parser.parse_args() +# ----- end command line parsing ----- + +names = [] +profiles = {} +names2 = [] +profiles2 = {} + +input_file = open(args.sect_profile_file) + +last_name = "" +for line in input_file: + if line[0] == '>': + last_name = line[1:-1] + names.append(last_name) + else: + profiles[last_name] = line[:-1] +input_file.close() + +input2_file = None +if args.sect_profile_file_2 is not None: + input2_file = open(args.sect_profile_file_2) + + last_name = "" + for line in input2_file: + if line[0] == '>': + last_name = line[1:-1] + names2.append(last_name) + else: + profiles2[last_name] = line[:-1] + input2_file.close() + +if args.sect_profile_file_2 is not None and len(names) != len(names2): + print("First and second input files are not the same length", file=sys.stderr) + exit(1) + +if args.header is not None: + names = [args.header] +else: + indexes = list(map(int, args.index.split(','))) + names = [names[i] for i in indexes] + +if args.title is not None: + title = args.title +else: + title = "Sequence Coverage Plot" + +if args.x_label is not None: + x_label = args.x_label +else: + x_label = "Position" + +if args.y_label is not None: + y_label = args.y_label +else: + if args.sect_profile_file_2 is None: + y_label = "Coverage" + else: + y_label = "Coverage (first file)" + +if args.y2_label is not None: + y2_label = args.y2_label +else: + y2_label = "Coverage (second file)" + +fig, axs = plt.subplots(len(names), 1, figsize=(args.width, args.height * (len(names) + 0.3))) + +pstrs = [profiles[name] for name in names] +profs = [np.fromstring(pstr, dtype=float, sep=' ') for pstr in pstrs] +if args.x_max is not None: + maxlen = args.x_max +else: + maxlen = max(list(map(len, profs))) + +if args.x_min is not None: + minlen = args.x_min +else: + minlen = 1 + +maxval1 = max(list(map(max, profs))) + +pstrs2 = [] +profs2 = [] +maxval2 = 0 +if args.sect_profile_file_2 is not None: + pstrs2 = [profiles2[name] for name in names] + profs2 = [np.fromstring(pstr2, dtype=float, sep=' ') for pstr2 in pstrs2] + maxval2 = max(list(map(max, profs2))) + +for i in range(len(names)): + if names[i] not in profiles: + sys.exit("Entry {:s} not found.".format(names[i])) + else: + + profile = profs[i] + + profile2 = None + if args.sect_profile_file_2 is not None: + profile2 = profs2[i] + if len(profile) != len(profile2): + print("First and second input files are not the same length", file=sys.stderr) + exit(1) + + ## axis fix + if len(names) > 1: + ax1 = axs[i] + else: + ax1 = axs + + ax2 = ax1.twinx() + x = np.arange(1, len(profile) + 1) + + ax1.yaxis.set_major_locator(ticker.MaxNLocator(integer=True)) + ax1.xaxis.set_major_locator(ticker.MaxNLocator(integer=True)) + ax1.set_xlim(minlen, maxlen + 1) + + if i == len(names) - 1: + ax1.set_xlabel(x_label) + for tick in ax1.get_xticklabels(): + tick.set_rotation(90) + tick.set_visible(True) + else: + ax1.set_xlabel("") + for tick in ax1.get_xticklabels(): + tick.set_rotation(90) + tick.set_visible(False) + + ## y limits from args or auto + if args.y_max is not None: + maxval1 = args.y_max + maxval2 = args.y_max + if args.y_min is not None: + minval = args.y_min + else: + minval = 1 + + ax1.set_title(names[i], fontsize=12) + ax1.set_ylim(minval, maxval1 * 1.1) + ax1.set_ylabel(y_label, color='r') + ax1.plot(x, profile, 'r-') + + if profile2 is not None: + ax2.yaxis.set_major_locator(ticker.MaxNLocator(integer=True)) + ax2.set_ylim(minval, maxval2 * 1.1) + ax2.set_ylabel(y2_label, color='b') + ax2.plot(x, profile2, 'b-') + +plt.tight_layout() + +st = plt.suptitle(title, fontsize=18) +st.set_y(0.95) +plt.subplots_adjust(top=0.85) + +if args.output_type is not None: + output_name = args.output + '.' + args.output_type +else: + output_name = args.output + +plt.savefig(correct_filename(output_name), dpi=args.dpi) diff --git a/scripts/spectra-cn.py b/scripts/kat_plot_spectra-cn.py similarity index 79% rename from scripts/spectra-cn.py rename to scripts/kat_plot_spectra-cn.py index a7d68ad1..30d84d53 100755 --- a/scripts/spectra-cn.py +++ b/scripts/kat_plot_spectra-cn.py @@ -2,10 +2,11 @@ import argparse import numpy as np +import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt -from findpeaks import * -from header import * +from kat_plot_misc import * # ----- command line parsing ----- parser = argparse.ArgumentParser( @@ -41,13 +42,15 @@ parser.set_defaults(ignore_absent=False) parser.add_argument("-m", "--max_dup", type=int, default=6, help="Maximum duplication level to show in plots") -parser.add_argument("-c", "--columns", type=str, - help="Comma separated string listing columns to " \ - "show in plot (overrides -a)") +parser.add_argument("-c", "--coverage_list", type=str, + help="Comma separated string listing coverage levels " \ + "to show in plot (overrides -i)") parser.add_argument("-u", "--cumulative", dest="cumulative", action="store_true", help="Plot cumulative distribution of kmers") parser.set_defaults(cumulative=False) +parser.add_argument("--dpi", type=int, default=300, + help="Resolution in dots per inch of output graphic.") parser.add_argument("-v", "--verbose", dest="verbose", action="store_true", help="Print extra information") @@ -66,23 +69,21 @@ elif "Title" in header: title = header["Title"] else: - title = "Density Plot" + title = "k-mer comparison plot" if args.x_label is not None: x_label = args.x_label -elif "XLabel" in header: - x_label = header["XLabel"] else: - x_label = "X" + x_label = "k-mer multiplicity" if args.y_label is not None: y_label = args.y_label -elif "YLabel" in header: - y_label = header["YLabel"] else: - y_label = "Y" + y_label = "Number of distinct k-mers" matrix = np.loadtxt(input_file) +if "Transpose" in header and header["Transpose"] == '1': + matrix = np.transpose(matrix) input_file.close() if args.verbose: print("{:d} by {:d} matrix file loaded.".format(matrix.shape[0], @@ -91,12 +92,12 @@ mincov = 1 if args.ignore_absent else 0 covbands = args.max_dup -colours = ["#888a85", +colours = ["#000000", "#ef2929", "#ad7fa8", - "#729fcf", "#8ae234", - "#e9b96e", + "#729fcf", + "#f2c27e", "#fcaf3e", "#fce94f"] if mincov > 0: @@ -106,12 +107,12 @@ xamount = 0.99 # leave only coverage levels we are interested in -last_column = np.transpose(np.matrix(np.sum(matrix[:,(mincov+covbands):], 1))) -matrix = np.concatenate([matrix[:,mincov:(mincov+covbands)], last_column], 1) +last_row = np.matrix(np.sum(matrix[(mincov+covbands):,:], 0)) +matrix = np.concatenate([matrix[mincov:(mincov+covbands),:], last_row], 0) # find limits if args.x_max is None or args.y_max is None: - totals = np.squeeze(np.asarray(np.sum(matrix, 1))) + totals = np.squeeze(np.asarray(np.sum(matrix, 0))) xmax = len(totals) - 1 ysum = np.sum(totals) ymax = np.max(totals) @@ -135,37 +136,38 @@ if args.y_max is not None: ymax = args.y_max -matrix = matrix[:xmax,:] +matrix = matrix[:,:xmax] plt.figure(num = None, figsize=(args.width, args.height)) plt.axis([0,xmax,0,ymax]) x = list(range(xmax)) labels = ["{:d}x".format(l) for l in range(mincov, mincov+covbands+1)] labels[-1] = "{:s}+".format(labels[-1]) -bar = plt.bar(x, matrix[:,0], +bar = plt.bar(x, np.squeeze(np.asarray(matrix[0,:])), color=colours[0], linewidth=0.1, edgecolor=colours[0], width=1, label=labels[0]) for level in range(1, covbands+1): - bar = plt.bar(x, matrix[:,level], - bottom=np.sum(matrix[:,:level], 1), + bar = plt.bar(x, np.squeeze(np.asarray(matrix[level,:])), + bottom=np.squeeze(np.asarray(np.sum(matrix[:level,:], 0))), color=colours[level%len(colours)], linewidth=0.1, edgecolor=colours[level%len(colours)], width=1, label=labels[level]) -plt.title(title) -plt.xlabel(x_label) -plt.ylabel(y_label) +plt.title(wrap(title)) +plt.xlabel(wrap(x_label)) +plt.ylabel(wrap(y_label)) plt.grid(True, color="black", alpha=0.2) plt.legend(loc=1) +plt.tight_layout() if args.output_type is not None: output_name = args.output + '.' + args.output_type else: output_name = args.output -plt.savefig(output_name, dpi=300) +plt.savefig(correct_filename(output_name), dpi=args.dpi) diff --git a/scripts/spectra-hist.py b/scripts/kat_plot_spectra-hist.py similarity index 90% rename from scripts/spectra-hist.py rename to scripts/kat_plot_spectra-hist.py index a8b73346..722de2da 100755 --- a/scripts/spectra-hist.py +++ b/scripts/kat_plot_spectra-hist.py @@ -2,10 +2,11 @@ import argparse import numpy as np +import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt -from findpeaks import * -from header import * +from kat_plot_misc import * # ----- command line parsing ----- parser = argparse.ArgumentParser( @@ -47,6 +48,8 @@ action="store_true", help="Y-axis is logscale. Overrides y_min and y_max") parser.set_defaults(y_logscale=False) +parser.add_argument("--dpi", type=int, default=300, + help="Resolution in dots per inch of output graphic.") parser.add_argument("-v", "--verbose", dest="verbose", action="store_true", help="Print extra information") @@ -67,6 +70,8 @@ header = readheader(input_file) matrix = np.loadtxt(input_file) + if "Transpose" in header and header["Transpose"] == '1': + matrix = np.transpose(matrix) input_file.close() if args.verbose: print("{:d} by {:d} matrix file loaded.".format(matrix.shape[0], @@ -143,7 +148,8 @@ "#f57900", "#edd400"] for xt,yt,lb,i in zip(x,y,labels,list(range(len(x)))): - plt.plot(xt, yt, label=lb, color=colours[i%len(colours)]) + plt.plot(xt, yt, "o-", label=lb, + color=colours[i%len(colours)], markersize=3) if args.x_logscale: plt.xscale("log") @@ -152,16 +158,17 @@ plt.axis([args.x_min, xmax, args.y_min, ymax]) -plt.title(title) -plt.xlabel(x_label) -plt.ylabel(y_label) +plt.title(wrap(title)) +plt.xlabel(wrap(x_label)) +plt.ylabel(wrap(y_label)) plt.grid(True, color="black", alpha=0.2) if len(x) > 1: plt.legend(loc=1) +plt.tight_layout() if args.output_type is not None: output_name = args.output + '.' + args.output_type else: output_name = args.output -plt.savefig(output_name, dpi=300) +plt.savefig(correct_filename(output_name), dpi=args.dpi) diff --git a/scripts/kat_plot_spectra-mx.py b/scripts/kat_plot_spectra-mx.py new file mode 100755 index 00000000..5c3cbeec --- /dev/null +++ b/scripts/kat_plot_spectra-mx.py @@ -0,0 +1,217 @@ +#!/usr/bin/env python3 + +import sys +import argparse +import numpy as np +import matplotlib +matplotlib.use('Agg') +import matplotlib.pyplot as plt + +from kat_plot_misc import * + +# ----- command line parsing ----- +parser = argparse.ArgumentParser( + description="Creates K-mer spectra plot from selected rows and/or " \ + "columns in a \"comp\" matrix.") + +parser.add_argument("matrix_file", type=str, + help="The input matrix file from KAT") + +parser.add_argument("-o", "--output", type=str, default="kat-spectra-mx", + help="The path to the output file.") +parser.add_argument("-p", "--output_type", type=str, + help="The plot file type to create (default is based on " \ + "given output name).") +parser.add_argument("-t", "--title", type=str, default="Spectra MX Plot", + help="Title for plot") +parser.add_argument("-a", "--x_label", type=str, + help="Label for x-axis") +parser.add_argument("-b", "--y_label", type=str, + help="Label for y-axis") +parser.add_argument("-r", "--x_min", type=int, default=0, + help="Minimum value for x-axis") +parser.add_argument("-s", "--y_min", type=int, default=0, + help="Minimum value for y-axis") +parser.add_argument("-x", "--x_max", type=int, + help="Maximum value for x-axis") +parser.add_argument("-y", "--y_max", type=int, + help="Maximum value for y-axis") +parser.add_argument("-w", "--width", type=int, default=8, + help="Width of canvas") +parser.add_argument("-l", "--height", type=int, default=6, + help="Height of canvas") +parser.add_argument("-i", "--intersection", dest="intersection", + action="store_true", + help="Activate intersection mode, which plots the " \ + "shared and exclusive content found in the matrix.") +parser.set_defaults(intersection=False) +parser.add_argument("-c", "--list", type=str, + help="The list of columns or rows to select from the " \ + "matrix (overrides -i)") +parser.add_argument("-e", "--exc_cutoff_d1", type=int, default=1, + help="If in intersection mode, the level at which " \ + "content for dataset 1 is considered exclusive or shared") +parser.add_argument("-f", "--exc_cutoff_d2", type=int, default=1, + help="If in intersection mode, the level at which " \ + "content for dataset 2 is considered exclusive or shared") +parser.add_argument("-m", "--x_logscale", dest="x_logscale", + action="store_true", + help="X-axis is logscale. Overrides x_min and x_max") +parser.set_defaults(x_logscale=False) +parser.add_argument("-n", "--y_logscale", dest="y_logscale", + action="store_true", + help="Y-axis is logscale. Overrides y_min and y_max") +parser.set_defaults(y_logscale=False) +parser.add_argument("--dpi", type=int, default=300, + help="Resolution in dots per inch of output graphic.") +parser.add_argument("-v", "--verbose", dest="verbose", + action="store_true", + help="Print extra information") +parser.set_defaults(verbose=False) + +args = parser.parse_args() +# ----- end command line parsing ----- + +# load header information +input_file = open(args.matrix_file) + +header = readheader(input_file) + +if args.title is not None: + title = args.title +elif "Title" in header: + title = header["Title"] +else: + title = "Density Plot" + +if args.x_label is not None: + x_label = args.x_label +elif "XLabel" in header: + x_label = header["XLabel"] +else: + x_label = "X" + +if args.y_label is not None: + y_label = args.y_label +elif "YLabel" in header: + y_label = header["YLabel"] +else: + y_label = "Y" + +matrix = np.loadtxt(input_file) +if "Transpose" in header and header["Transpose"] == '1': + matrix = np.transpose(matrix) +input_file.close() +if args.verbose: + print("{:d} by {:d} matrix file loaded.".format(matrix.shape[0], + matrix.shape[1])) + +# make rows/columns of data to plot +x = [] +y = [] +labels = [] +if args.list is not None: + if args.verbose: + print("List given: {:s}".format(args.list)) + rowscols = [] + try: + for str in args.list.split(','): + if str[0] in "rc": + rowscols.append((str[0], int(str[1:]))) + else: + raise ValueError() + except ValueError as e: + sys.exit("Malformed string given as --list: " + args.list) + for rowcol in rowscols: + if rowcol[0] == 'r': + y.append(matrix[rowcol[1],:]) + x.append(np.arange(len(matrix[rowcol[1],:]))) + labels.append("Row {:d}".format(rowcol[1])) + elif rowcol[0] == 'c': + y.append(matrix[:,rowcol[1]]) + x.append(np.arange(len(matrix[:,rowcol[1]]))) + labels.append("Column {:d}".format(rowcol[1])) +elif args.intersection: + if args.verbose: + print("Intersection mode.") + print("Dataset 1 cutoff: {:d}".format(args.exc_cutoff_d1)) + print("Dataset 2 cutoff: {:d}".format(args.exc_cutoff_d2)) + y_exc_d1 = np.transpose(np.sum(matrix[:,:args.exc_cutoff_d1],1)) + x_exc_d1 = np.arange(len(y_exc_d1)) + y_sha_d1 = np.transpose(np.sum(matrix[args.exc_cutoff_d2:, + args.exc_cutoff_d1:],1)) + x_sha_d1 = np.arange(args.exc_cutoff_d2, len(y_exc_d1)) + y_exc_d2 = np.sum(matrix[:args.exc_cutoff_d2,:],0) + x_exc_d2 = np.arange(len(y_exc_d2)) + y_sha_d2 = np.sum(matrix[args.exc_cutoff_d2:, + args.exc_cutoff_d1:],0) + x_sha_d2 = np.arange(args.exc_cutoff_d1, len(y_exc_d2)) + x = [x_exc_d1, x_sha_d1, x_exc_d2, x_sha_d2] + y = [y_exc_d1, y_sha_d1, y_exc_d2, y_sha_d2] + labels = ["Dataset 1 exclusive content", "Dataset 1 shared content", + "Dataset 2 exclusive content", "Dataset 2 shared content"] +else: + sys.exit("Error: Either --list or --intersection must be given.") + +# find limits +if args.x_max is None or args.y_max is None: + xmax = list(map(len, x)) + ysum = list(map(np.sum, y)) + ymax = list(map(np.max, y)) + for i in range(len(x)): + peakx = findpeaks(y[i]) + peakx = peakx[peakx != 1] + peaky = y[i][peakx] + + for j in range(1, xmax[i], int(xmax[i]/1000) + 1): + if np.sum(y[i][:j]) >= ysum[i] * 0.999: + xmax[i] = j + break + + ymax[i] = np.max(peaky) * 1.1 + + xmax = max(xmax) + ymax = max(ymax) + if args.verbose: + print("Automatically detected axis limits:") + print("xmax: ", xmax) + print("ymax: ", ymax) + +if args.x_max is not None: + xmax = args.x_max +if args.y_max is not None: + ymax = args.y_max + +plt.figure(num = None, figsize=(args.width, args.height)) + +colours = ["#cc0000", + "#75507b", + "#3465a4", + "#73d216", + "#c17d11", + "#f57900", + "#edd400"] +for xt,yt,lb,i in zip(x,y,labels,list(range(len(x)))): + plt.plot(xt, yt, label=lb, color=colours[i%len(colours)]) + +if args.x_logscale: + plt.xscale("log") +if args.y_logscale: + plt.yscale("log") + +plt.axis([args.x_min, xmax, args.y_min, ymax]) + +plt.title(wrap(title)) +plt.xlabel(wrap(x_label)) +plt.ylabel(wrap(y_label)) +plt.grid(True, color="black", alpha=0.2) +if len(x) > 1: + plt.legend(loc=1) +plt.tight_layout() + +if args.output_type is not None: + output_name = args.output + '.' + args.output_type +else: + output_name = args.output + +plt.savefig(correct_filename(output_name), dpi=args.dpi) diff --git a/scripts/profile.py b/scripts/profile.py deleted file mode 100755 index 1bd5f40a..00000000 --- a/scripts/profile.py +++ /dev/null @@ -1,131 +0,0 @@ -#!/usr/bin/env python3 - -import sys -import argparse -import math -import numpy as np -import matplotlib.pyplot as plt - -# ----- command line parsing ----- -parser = argparse.ArgumentParser( - description="Create Sequence Coverage Plot.") - -parser.add_argument("sect_profile_file", type=str, - help="The input profile file from KAT sect") - -parser.add_argument("-o", "--output", type=str, default="kat-profile", - help="The path to the output file.") -parser.add_argument("-p", "--output_type", type=str, - help="The plot file type to create (default is based on " \ - "given output name).") -parser.add_argument("-t", "--title", type=str, - help="Title for plot") -parser.add_argument("-a", "--x_label", type=str, - help="Label for x-axis") -parser.add_argument("-b", "--y_label", type=str, - help="Label for y-axis") -parser.add_argument("-x", "--x_max", type=int, - help="Maximum value for x-axis") -parser.add_argument("-y", "--y_max", type=int, - help="Maximum value for y-axis") -parser.add_argument("-w", "--width", type=int, default=8, - help="Width of canvas") -parser.add_argument("-l", "--height", type=int, default=3, - help="Height of canvas") -parser.add_argument("-n", "--index", type=str, default="0", - help="Comma separate list of indexes of fasta entry " \ - "to plot") -parser.add_argument("-d", "--header", type=str, - help="Name of fasta entry to plot (has priority " \ - "over index)") -parser.add_argument("-v", "--verbose", dest="verbose", - action="store_true", - help="Print extra information") -parser.set_defaults(verbose=False) - -args = parser.parse_args() -# ----- end command line parsing ----- - -names = [] -profiles = {} - -input_file = open(args.sect_profile_file) - -last_name = "" -for line in input_file: - if line[0] == '>': - last_name = line[1:-1] - names.append(last_name) - else: - profiles[last_name] = line[:-1] -input_file.close() - -if args.header is not None: - names = [args.header] -else: - indexes = list(map(int, args.index.split(','))) - names = [names[i] for i in indexes] - -if args.title is not None: - title = args.title -else: - title = "Sequence Coverage Plot" - -if args.x_label is not None: - x_label = args.x_label -else: - x_label = "Position" - -if args.y_label is not None: - y_label = args.y_label -else: - y_label = "Coverage" - -plt.figure(1, figsize=(args.width, args.height * len(names))) - -pstrs = [profiles[name] for name in names] -profs = [np.fromstring(pstr, dtype=int, sep=' ') for pstr in pstrs] -maxlen = max(list(map(len, profs))) -tickdist = maxlen/7 -tickdist = int(round(tickdist, -int(math.floor(math.log10(tickdist))))) -for i in range(len(names)): - if names[i] not in profiles: - sys.exit("Entry {:s} not found.".format(names[i])) - else: - # pstr = profiles[names[i]] - - # profile = np.fromstring(pstr, dtype=int, sep=' ') - profile = profs[i] - - x = np.arange(1,len(profile)+1) - - plt.subplot(len(names), 1, i+1) - plt.plot(x, profile) - plt.ylim(0,np.max(profile)*1.1) - # diff = maxlen - len(profile) - # plt.xlim(1 - diff/2, len(profile)+diff/2+1) - plt.xlim(1, maxlen+1) - xticks = list(range(0, len(profile)+1, tickdist)) - xticks[0] = 1 - if len(profile) - xticks[-1] > tickdist/2: - xticks.append(len(profile)) - else: - xticks[-1] = len(profile) - plt.xticks(xticks) - - plt.title(names[i], fontsize=12) - plt.xlabel(x_label) - plt.ylabel(y_label) - plt.grid(True, color="black", alpha=0.2) - plt.tight_layout() - -if title != "": - plt.suptitle(title, fontsize=14) - plt.subplots_adjust(top=0.95) - -if args.output_type is not None: - output_name = args.output + '.' + args.output_type -else: - output_name = args.output - -plt.savefig(output_name, dpi=300) diff --git a/scripts/spectra-mx.py b/scripts/spectra-mx.py deleted file mode 100755 index 6e2bc4f1..00000000 --- a/scripts/spectra-mx.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python - -import argparse -import numpy as np -import matplotlib.pyplot as plt - -# ----- command line parsing ----- -parser = argparse.ArgumentParser( - description="Creates K-mer spectra plot from selected rows and/or columns in a \"comp\" matrix.") - -parser.add_argument("mx_file", type=str, - help="The input mx file from KAT") - -parser.add_argument("-p", "--output_type", type=str, default="png", - choices=["png", "pdf", "eps"], - help="The plot file type to create.") -parser.add_argument("-o", "--output", type=str, default="kat-spectra-mx", - help="The path to the output file.") -parser.add_argument("-t", "--title", type=str, default="Spectra MX Plot", - help="Title for plot") -parser.add_argument("-a", "--x_label", type=str, default="X", - help="Label for x-axis") -parser.add_argument("-b", "--y_label", type=str, default="Y", - help="Label for y-axis") -parser.add_argument("-r", "--x_min", type=int, default=0, - help="Minimum value for x-axis") -parser.add_argument("-s", "--y_min", type=int, default=0, - help="Minimum value for y-axis") -parser.add_argument("-x", "--x_max", type=int, default=1000, - help="Maximum value for x-axis") -parser.add_argument("-y", "--y_max", type=int, default=1000, - help="Maximum value for y-axis") -parser.add_argument("-w", "--width", type=int, default=1024, - help="Width of canvas") -parser.add_argument("-l", "--height", type=int, default=1024, - help="Height of canvas") -parser.add_argument("-i", "--intersection", dest="intersection", action="store_true", - help="Activate intersection mode, which plots the shared and exclusive content found in the matrix.") -parser.set_defaults(intersection=False) -parser.add_argument("-c", "--list", type=str, - help="The list of columns or rows to select from the matrix (overrides -i)") -parser.add_argument("-e", "--exc_cutoff_d1", type=int, default=1, - help="If in intersection mode, the level at which content for dataset 1 is considered exclusive or shared") -parser.add_argument("-f", "--exc_cutoff_d2", type=int, default=1, - help="If in intersection mode, the level at which content for dataset 2 is considered exclusive or shared") -parser.add_argument("-m", "--x_logscale", dest="x_logscale", action="store_true", - help="X-axis is logscale. Overrides x_min and x_max") -parser.set_defaults(x_logscale=False) -parser.add_argument("-n", "--y_logscale", dest="y_logscale", action="store_true", - help="Y-axis is logscale. Overrides y_min and y_max") -parser.set_defaults(y_logscale=False) -parser.add_argument("-v", "--verbose", dest="verbose", action="store_true", - help="Print extra information") -parser.set_defaults(verbose=False) - -args = parser.parse_args() -# ----- end command line parsing ----- - diff --git a/src/.gitignore b/src/.gitignore index dad01944..54d19abc 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -11,3 +11,4 @@ /hist/ /plot/ /sect/ +/inc/ diff --git a/src/Makefile.am b/src/Makefile.am index bf8d95e2..70f7aaf7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,58 +1,52 @@ AUTOMAKE_OPTIONS = subdir-objects -bin_PROGRAMS = kat -kat_noinstdir = $(top_srcdir)/src +# What to build +bin_PROGRAMS = kat -kat_CXXFLAGS = -g -O3 -fwrapv -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -ansi -pedantic -Werror -std=c++11 @AM_CXXFLAGS@ +# Executable inputs +kat_CXXFLAGS = -g -O3 -fwrapv -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-unused-command-line-argument -ansi -pedantic -std=c++11 @AM_CXXFLAGS@ @CXXFLAGS@ -kat_CPPFLAGS = -DCPLUSPLUS -isystem $(top_srcdir)/deps/seqan-library-2.0.0/include -isystem $(top_srcdir)/deps/jellyfish-2.2.0/include @AM_CPPFLAGS@ +kat_CPPFLAGS = \ + -isystem $(top_srcdir)/deps/seqan-library-2.0.0/include \ + -isystem $(top_srcdir)/deps/jellyfish-2.2.0/include \ + -isystem $(top_srcdir)/lib/include \ + @AM_CPPFLAGS@ @CPPFLAGS@ -kat_LDADD = $(top_srcdir)/deps/jellyfish-2.2.0/.libs/libjellyfish-k2.0.a \ - @AM_LIBS@ +kat_LDFLAGS = @AM_LDFLAGS@ @LDFLAGS@ +kat_LDADD = \ + ../deps/jellyfish-2.2.0/libkat_jellyfish-2.0.la \ + ../lib/libkat-2.1.la \ + @AM_LIBS@ + noinst_HEADERS = \ - inc/matrix/matrix_metadata_extractor.hpp \ - jellyfish_helper.hpp \ - input_handler.hpp \ - plot_density.hpp \ - plot_spectra_cn.hpp \ - plot_spectra_mx.hpp \ - plot_spectra_hist.hpp \ - plot.hpp \ - filter_kmer.hpp \ - filter_sequence.hpp \ - filter.hpp \ - comp.hpp \ - gcp.hpp \ - histogram.hpp \ - sect.hpp - - + plot_density.hpp \ + plot_profile.hpp \ + plot_spectra_cn.hpp \ + plot_spectra_mx.hpp \ + plot_spectra_hist.hpp \ + plot.hpp \ + filter_kmer.hpp \ + filter_sequence.hpp \ + filter.hpp \ + comp.hpp \ + gcp.hpp \ + histogram.hpp \ + sect.hpp + kat_SOURCES = \ - inc/gnuplot/gnuplot_i.cc \ - inc/gnuplot/gnuplot_i.hpp \ - inc/matrix/sparse_matrix.hpp \ - inc/matrix/threaded_sparse_matrix.hpp \ - inc/matrix/matrix_metadata_extractor.cc \ - inc/str_utils.hpp \ - inc/spectra_helper.hpp \ - inc/kat_fs.hpp \ - jellyfish_helper.cc \ - input_handler.cc \ - plot_density.cc \ - plot_profile.hpp \ - plot_spectra_cn.cc \ - plot_spectra_mx.cc \ - plot_spectra_hist.cc \ - plot.cc \ - filter_kmer.cc \ - filter_sequence.cc \ - filter.cc \ - comp.cc \ - gcp.cc \ - histogram.cc \ - sect.cc \ - kat.cc - - + plot_density.cc \ + plot_profile.cc \ + plot_spectra_cn.cc \ + plot_spectra_mx.cc \ + plot_spectra_hist.cc \ + plot.cc \ + filter_kmer.cc \ + filter_sequence.cc \ + filter.cc \ + comp.cc \ + gcp.cc \ + histogram.cc \ + sect.cc \ + kat.cc diff --git a/src/comp.cc b/src/comp.cc index 04f2f7cf..9d900b65 100644 --- a/src/comp.cc +++ b/src/comp.cc @@ -27,6 +27,7 @@ #include #include #include +#include using std::vector; using std::string; using std::cerr; @@ -48,285 +49,45 @@ using bfs::path; #include -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/threaded_sparse_matrix.hpp" -#include "inc/distance_metrics.hpp" +#include +#include +#include +#include +#include +using kat::JellyfishHelper; +using kat::InputHandler; +using kat::HashLoader; +using kat::CompCounters; +using kat::ThreadedCompCounters; +using kat::ThreadedSparseMatrix; +using kat::SparseMatrix; -#include "input_handler.hpp" +#include "plot.hpp" #include "plot_spectra_cn.hpp" #include "plot_density.hpp" -using kat::JellyfishHelper; -using kat::HashLoader; -using kat::InputHandler; using kat::PlotSpectraCn; using kat::PlotDensity; +using kat::Plot; #include "comp.hpp" -// ********** CompCounters *********** - -kat::CompCounters::CompCounters() : CompCounters("", "", "", DEFAULT_NB_BINS) {} - -kat::CompCounters::CompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size) : - hash1_path(_hash1_path), hash2_path(_hash2_path), hash3_path(_hash3_path) { - - hash1_total = 0; - hash2_total = 0; - hash3_total = 0; - hash1_distinct = 0; - hash2_distinct = 0; - hash3_distinct = 0; - hash1_only_total = 0; - hash2_only_total = 0; - hash1_only_distinct = 0; - hash2_only_distinct = 0; - shared_hash1_total = 0; - shared_hash2_total = 0; - shared_distinct = 0; - - spectrum1.resize(_dm_size, 0); - spectrum2.resize(_dm_size, 0); - - shared_spectrum1.resize(_dm_size, 0); - shared_spectrum2.resize(_dm_size, 0); -} - -kat::CompCounters::CompCounters(const CompCounters& o) { - hash1_path = path(o.hash1_path); - hash2_path = path(o.hash2_path); - hash3_path = path(o.hash3_path); - hash1_total = o.hash1_total; - hash2_total = o.hash2_total; - hash3_total = o.hash3_total; - hash1_distinct = o.hash1_distinct; - hash2_distinct = o.hash2_distinct; - hash3_distinct = o.hash3_distinct; - hash1_only_total = o.hash1_only_total; - hash2_only_total = o.hash2_only_total; - hash1_only_distinct = o.hash1_only_distinct; - hash2_only_distinct = o.hash2_only_distinct; - shared_hash1_total = o.shared_hash1_total; - shared_hash2_total = o.shared_hash2_total; - shared_distinct = o.shared_distinct; - spectrum1 = o.spectrum1; - spectrum2 = o.spectrum2; - shared_spectrum1 = o.shared_spectrum1; - shared_spectrum2 = o.shared_spectrum2; -} - -void kat::CompCounters::updateHash1Counters(const uint64_t hash1_count, const uint64_t hash2_count) { - hash1_total += hash1_count; - hash1_distinct++; - updateSpectrum(spectrum1, hash1_count); - - if (!hash2_count) { - hash1_only_total += hash1_count; - hash1_only_distinct++; - } -} - -void kat::CompCounters::updateHash2Counters(const uint64_t hash1_count, const uint64_t hash2_count) { - hash2_total += hash2_count; - hash2_distinct++; - updateSpectrum(spectrum2, hash2_count); - - if (!hash1_count) { - hash2_only_total += hash2_count; - hash2_only_distinct++; - } -} - -void kat::CompCounters::updateHash3Counters(const uint64_t hash3_count) { - - hash3_total += hash3_count; - hash3_distinct++; -} - -void kat::CompCounters::updateSharedCounters(const uint64_t hash1_count, const uint64_t hash2_count) { - - if (hash1_count && hash2_count) { - shared_hash1_total += hash1_count; - shared_hash2_total += hash2_count; - shared_distinct++; - updateSpectrum(shared_spectrum1, hash1_count); - updateSpectrum(shared_spectrum2, hash2_count); - } -} - -void kat::CompCounters::updateSpectrum(vector& spectrum, const uint64_t count) { - - size_t s_size = spectrum.size(); - - if (count <= 0) - ++(spectrum)[0]; - else if (count >= s_size) - ++(spectrum)[s_size - 1]; - else - ++(spectrum)[count]; -} - - - -void kat::CompCounters::printCounts(ostream &out) { - - out << "K-mer statistics for: " << endl; - out << " - Hash 1: " << hash1_path << endl; - out << " - Hash 2: " << hash2_path << endl; - - if (hash3_total > 0) - out << " - Hash 3: " << hash3_path << endl; - - out << endl; - - out << "Total K-mers in: " << endl; - out << " - Hash 1: " << hash1_total << endl; - out << " - Hash 2: " << hash2_total << endl; - - if (hash3_total > 0) - out << " - Hash 3: " << hash3_total << endl; - - out << endl; - - out << "Distinct K-mers in:" << endl; - out << " - Hash 1: " << hash1_distinct << endl; - out << " - Hash 2: " << hash2_distinct << endl; - if (hash3_total > 0) - out << " - Hash 3: " << hash3_distinct << endl; - - out << endl; - - out << "Total K-mers only found in:" << endl; - out << " - Hash 1: " << hash1_only_total << endl; - out << " - Hash 2: " << hash2_only_total << endl; - out << endl; - - out << "Distinct K-mers only found in:" << endl; - out << " - Hash 1: " << hash1_only_distinct << endl; - out << " - Hash 2: " << hash2_only_distinct << endl << endl; - - out << "Shared K-mers:" << endl; - out << " - Total shared found in hash 1: " << shared_hash1_total << endl; - out << " - Total shared found in hash 2: " << shared_hash2_total << endl; - out << " - Distinct shared K-mers: " << shared_distinct << endl << endl; - - vector> dms; - dms.push_back(unique_ptr(new ManhattanDistance())); - dms.push_back(unique_ptr(new EuclideanDistance())); - dms.push_back(unique_ptr(new CosineDistance())); - dms.push_back(unique_ptr(new CanberraDistance())); - dms.push_back(unique_ptr(new JaccardDistance())); - - out << "Distance between spectra 1 and 2 (all k-mers):" << endl; - for(auto& dm : dms) { - out << " - " << dm->getName() << " distance: " << dm->calcDistance(spectrum1, spectrum2) << endl; - } - out << endl; - - - out << "Distance between spectra 1 and 2 (shared k-mers):" << endl; - for(auto& dm : dms) { - out << " - " << dm->getName() << " distance: " << dm->calcDistance(shared_spectrum1, shared_spectrum2) << endl; - } - out << endl; - -} - - -// ******** ThreadedCompCounters ********* - -kat::ThreadedCompCounters::ThreadedCompCounters() : ThreadedCompCounters("", "", "", DEFAULT_NB_BINS) {} - -kat::ThreadedCompCounters::ThreadedCompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size) { - final_matrix = CompCounters(_hash1_path, _hash2_path, _hash3_path, _dm_size); -} - -void kat::ThreadedCompCounters::printCounts(ostream &out) { - final_matrix.printCounts(out); -} - -void kat::ThreadedCompCounters::add(shared_ptr cc) { - cc->hash1_path = final_matrix.hash1_path; - cc->hash2_path = final_matrix.hash2_path; - cc->hash3_path = final_matrix.hash3_path; - threaded_counters.push_back(*cc); -} - -void kat::ThreadedCompCounters::merge() { - - // Merge counters - for (const auto& itp : threaded_counters) { - - final_matrix.hash1_total += itp.hash1_total; - final_matrix.hash2_total += itp.hash2_total; - final_matrix.hash3_total += itp.hash3_total; - final_matrix.hash1_distinct += itp.hash1_distinct; - final_matrix.hash2_distinct += itp.hash2_distinct; - final_matrix.hash3_distinct += itp.hash3_distinct; - final_matrix.hash1_only_total += itp.hash1_only_total; - final_matrix.hash2_only_total += itp.hash2_only_total; - final_matrix.hash1_only_distinct += itp.hash1_only_distinct; - final_matrix.hash2_only_distinct += itp.hash2_only_distinct; - final_matrix.shared_hash1_total += itp.shared_hash1_total; - final_matrix.shared_hash2_total += itp.shared_hash2_total; - final_matrix.shared_distinct += itp.shared_distinct; - - merge_spectrum(final_matrix.spectrum1, itp.spectrum1); - merge_spectrum(final_matrix.spectrum2, itp.spectrum2); - merge_spectrum(final_matrix.shared_spectrum1, itp.shared_spectrum1); - merge_spectrum(final_matrix.shared_spectrum2, itp.shared_spectrum2); - } -} - -void kat::ThreadedCompCounters::merge_spectrum(vector& spectrum, const vector& threaded_spectrum) { - - for(size_t i = 0; i < spectrum.size(); i++) { - spectrum[i] += threaded_spectrum[i]; - } -} // ********* Comp ********** - -kat::Comp::Comp() : - kat::Comp::Comp(path(), path()) {} - -kat::Comp::Comp(const path& _input1, const path& _input2) : - kat::Comp::Comp(_input1, _input2, path()) {} - -kat::Comp::Comp(const path& _input1, const path& _input2, const path& _input3) { - vector vecInput1; - vecInput1.push_back(make_shared(_input1)); - vector vecInput2; - vecInput2.push_back(make_shared(_input2)); - vector vecInput3; - if (!_input3.empty()) - vecInput3.push_back(make_shared(_input3)); - - init(vecInput1, vecInput2, vecInput3); -} - -kat::Comp::Comp(const vector& _input1, const vector& _input2) : - kat::Comp::Comp(_input1, _input2, vector()) {} - -kat::Comp::Comp(const vector& _input1, const vector& _input2, const vector& _input3) { - init(_input1, _input2, _input3); +kat::Comp::Comp(const vector& _input1, const vector& _input2) : + input(3) { + init(_input1, _input2); } - -void kat::Comp::init(const vector& _input1, const vector& _input2, const vector& _input3) { - input = !_input3.empty() ? vector(3) : vector(2); + +void kat::Comp::init(const vector& _input1, const vector& _input2) { input[0].setMultipleInputs(_input1); input[1].setMultipleInputs(_input2); input[0].index = 1; input[1].index = 2; - if (!_input3.empty()) { - input[2].setMultipleInputs(_input3); - input[2].index = 3; - } outputPrefix = "kat-comp"; d1Scale = 1.0; @@ -335,32 +96,34 @@ void kat::Comp::init(const vector& _input1, const vector& _i d2Bins = DEFAULT_NB_BINS; threads = 1; densityPlot = false; - verbose = false; + threeInputs = false; + verbose = false; +} + +void kat::Comp::setThirdInput(const vector& _input3) { + + input[2].setMultipleInputs(_input3); + input[2].index = 3; + + threeInputs = true; } void kat::Comp::execute() { // Check input files exist and determine input mode - for(uint16_t i = 0; i < input.size(); i++) { + for(uint16_t i = 0; i < inputSize(); i++) { input[i].validateInput(); } // Create output directory path parentDir = bfs::absolute(outputPrefix).parent_path(); - if (!bfs::exists(parentDir) || !bfs::is_directory(parentDir)) { - if (!bfs::create_directories(parentDir)) { - BOOST_THROW_EXCEPTION(CompException() << CompErrorInfo(string( - "Could not create output directory: ") + parentDir.string())); - } - } - + KatFS::ensureDirectoryExists(parentDir); // Create the final K-mer counter matrices main_matrix = ThreadedSparseMatrix(d1Bins, d2Bins, threads); // Initialise extra matrices for hash3 (only allocates space if required) if (doThirdHash()) { - ends_matrix = ThreadedSparseMatrix(d1Bins, d2Bins, threads); middle_matrix = ThreadedSparseMatrix(d1Bins, d2Bins, threads); mixed_matrix = ThreadedSparseMatrix(d1Bins, d2Bins, threads); @@ -370,13 +133,13 @@ void kat::Comp::execute() { comp_counters = ThreadedCompCounters( input[0].getSingleInput(), input[1].getSingleInput(), - input.size() == 3 ? input[2].getSingleInput() : path(), + doThirdHash() ? input[2].getSingleInput() : path(), std::min(d1Bins, d2Bins)); string merLenStr = lexical_cast(this->getMerLen()); // Count kmers in sequence files if necessary (sets load and hashes and hashcounters as appropriate) - for(size_t i = 0; i < input.size(); i++) { + for(size_t i = 0; i < inputSize(); i++) { if (input[i].mode == InputHandler::InputHandler::InputMode::COUNT) { input[i].count(threads); } @@ -385,7 +148,7 @@ void kat::Comp::execute() { // Check to see if user specified any hashes to load bool anyLoad = false; bool allLoad = true; - for(size_t i = 0; i < input.size(); i++) { + for(size_t i = 0; i < inputSize(); i++) { if (input[i].mode == InputHandler::InputMode::LOAD) { input[i].loadHeader(); anyLoad = true; @@ -399,13 +162,12 @@ void kat::Comp::execute() { // to specify the merLen, so just set it to the merLen found in the header of the first input if (allLoad) this->setMerLen(input[0].header->key_len() / 2); - for(uint16_t i = 0; i < input.size(); i++) { + for(uint16_t i = 0; i < inputSize(); i++) { input[i].validateMerLen(this->getMerLen()); } // Load any hashes if necessary if (anyLoad) loadHashes(); - // Run the threads compare(); @@ -413,7 +175,7 @@ void kat::Comp::execute() { // Dump any hashes that were previously counted to disk if requested // NOTE: MUST BE DONE AFTER COMPARISON AS THIS CLEARS ENTRIES FROM HASH ARRAY! if (dumpHashes()) { - for(uint16_t i = 0; i < input.size(); i++) { + for(uint16_t i = 0; i < inputSize(); i++) { path outputPath(outputPrefix.string() + "-hash" + lexical_cast(input[i].index) + ".jf" + lexical_cast(this->getMerLen())); input[i].dump(outputPath, threads); } @@ -457,11 +219,35 @@ void kat::Comp::save() { ofstream stats_out_stream(string(outputPrefix.string() + ".stats").c_str()); printCounters(stats_out_stream); stats_out_stream.close(); + + if (outputHists) { + + ofstream hist1_out_stream(string(outputPrefix.string() + ".1.hist").c_str()); + printHist(hist1_out_stream, input[0], comp_counters.getFinalMatrix().getSpectrum1()); + hist1_out_stream.close(); + + ofstream hist2_out_stream(string(outputPrefix.string() + ".2.hist").c_str()); + printHist(hist2_out_stream, input[1], comp_counters.getFinalMatrix().getSpectrum2()); + hist2_out_stream.close(); + } cout << " done."; cout.flush(); } +void kat::Comp::printHist(std::ostream &out, InputHandler& input, vector& hist) { + + // Output header + out << mme::KEY_TITLE << input.merLen << "-mer spectra for: " << input.pathString() << endl; + out << mme::KEY_X_LABEL << input.merLen << "-mer frequency" << endl; + out << mme::KEY_Y_LABEL << "# distinct " << input.merLen << "-mers" << endl; + out << mme::MX_META_END << endl; + + for (uint64_t i = 0; i < hist.size(); i++) { + out << i << " " << hist[i] << "\n"; + } +} + void kat::Comp::merge() { auto_cpu_timer timer(1, " Time taken: %ws\n\n"); @@ -492,24 +278,24 @@ void kat::Comp::loadHashes() { // If using parallel IO load hashes in parallel, otherwise do one at a time if (threads > 1) { - vector threads(input.size()); + vector threads(inputSize()); void (kat::InputHandler::*memfunc)() = &kat::InputHandler::loadHash; - for(size_t i = 0; i < input.size(); i++) { + for(size_t i = 0; i < inputSize(); i++) { if (input[i].mode == InputHandler::InputMode::LOAD) { threads[i] = thread(memfunc, &input[i]); } } - for(size_t i = 0; i < input.size(); i++) { + for(size_t i = 0; i < inputSize(); i++) { if (input[i].mode == InputHandler::InputMode::LOAD) { threads[i].join(); } } } else { - for(size_t i = 0; i < input.size(); i++) { + for(size_t i = 0; i < inputSize(); i++) { if (input[i].mode == InputHandler::InputMode::LOAD) { input[i].loadHash(); } @@ -528,13 +314,16 @@ void kat::Comp::printMainMatrix(ostream &out) { const SM64& mx = main_matrix.getFinalMatrix(); out << mme::KEY_TITLE << "K-mer comparison plot" << endl - << mme::KEY_X_LABEL << "K-mer multiplicity for: " << input[0].getSingleInput().string() << endl - << mme::KEY_Y_LABEL << "K-mer multiplicity for: " << input[1].getSingleInput().string() << endl - << mme::KEY_Z_LABEL << "Distinct K-mers per bin" << endl + << mme::KEY_X_LABEL << input[0].merLen << "-mer frequency for: " << input[0].fileName() << endl + << mme::KEY_Y_LABEL << input[1].merLen << "-mer frequency for: " << input[1].fileName() << endl + << mme::KEY_Z_LABEL << "# distinct " << input[0].merLen << "-mers" << endl << mme::KEY_NB_COLUMNS << mx.height() << endl << mme::KEY_NB_ROWS << mx.width() << endl << mme::KEY_MAX_VAL << mx.getMaxVal() << endl << mme::KEY_TRANSPOSE << "1" << endl + << mme::KEY_KMER << input[0].merLen << endl + << mme::KEY_INPUT_1 << input[0].pathString() << endl + << mme::KEY_INPUT_2 << input[1].pathString() << endl << mme::MX_META_END << endl; mx.printMatrix(out); @@ -544,8 +333,8 @@ void kat::Comp::printMainMatrix(ostream &out) { void kat::Comp::printEndsMatrix(ostream &out) { - out << "# Each row represents K-mer multiplicity for: " << input[0].getSingleInput().string() << endl; - out << "# Each column represents K-mer multiplicity for sequence ends: " << input[2].getSingleInput().string() << endl; + out << "# Each row represents K-mer frequency for: " << input[0].getSingleInput().string() << endl; + out << "# Each column represents K-mer frequency for sequence ends: " << input[2].getSingleInput().string() << endl; ends_matrix.getFinalMatrix().printMatrix(out); } @@ -554,8 +343,8 @@ void kat::Comp::printEndsMatrix(ostream &out) { void kat::Comp::printMiddleMatrix(ostream &out) { - out << "# Each row represents K-mer multiplicity for: " << input[0].getSingleInput().string() << endl; - out << "# Each column represents K-mer multiplicity for sequence middles: " << input[1].getSingleInput().string() << endl; + out << "# Each row represents K-mer frequency for: " << input[0].getSingleInput().string() << endl; + out << "# Each column represents K-mer frequency for sequence middles: " << input[1].getSingleInput().string() << endl; middle_matrix.getFinalMatrix().printMatrix(out); } @@ -564,8 +353,8 @@ void kat::Comp::printMiddleMatrix(ostream &out) { void kat::Comp::printMixedMatrix(ostream &out) { - out << "# Each row represents K-mer multiplicity for hash file 1: " << input[0].getSingleInput().string() << endl; - out << "# Each column represents K-mer multiplicity for mixed: " << input[1].getSingleInput().string() << " and " << input[2].getSingleInput().string() << endl; + out << "# Each row represents K-mer frequency for hash file 1: " << input[0].getSingleInput().string() << endl; + out << "# Each column represents K-mer frequency for mixed: " << input[1].getSingleInput().string() << " and " << input[2].getSingleInput().string() << endl; mixed_matrix.getFinalMatrix().printMatrix(out); } @@ -703,37 +492,103 @@ void kat::Comp::plot(const string& output_type) { auto_cpu_timer timer(1, " Time taken: %ws\n\n"); - cout << "Creating plot ..."; + cout << "Creating plot(s) ..."; cout.flush(); bool res = true; + string kstr = lexical_cast(this->getMerLen()); // Plot results if (densityPlot) { - PlotDensity pd(getMxOutPath(), path(getMxOutPath().string() + ".density." + output_type)); - pd.setXLabel(string("# Distinct kmers for ") + input[0].pathString()); - pd.setYLabel(string("# Distinct kmers for ") + input[1].pathString()); - pd.setZLabel("Kmer multiplicity"); - pd.setTitle(string("Spectra Density Plot for: ") + input[0].pathString() + " vs " + input[1].pathString()); + + path outputFile = path(getMxOutPath().string() + ".density." + output_type); + +#if HAVE_PYTHON + vector args; + args.push_back("kat_plot_density.py"); + args.push_back(string("--output=") + outputFile.string()); + args.push_back(getMxOutPath().string()); + Plot::executePythonPlot(Plot::PlotMode::DENSITY, args, this->verbose); +#elif HAVE_GNUPLOT + PlotDensity pd(getMxOutPath(), outputFile); pd.setOutputType(output_type); res = pd.plot(); + + if (!res) { + cout << endl << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; + return; + } + +#endif + } else { + + path outputFile = path(getMxOutPath().string() + ".spectra-cn." + output_type); + +#if HAVE_PYTHON + + vector args; + args.push_back("kat_plot_spectra-cn.py"); + args.push_back(string("--output=") + outputFile.string()); + args.push_back(getMxOutPath().string()); + Plot::executePythonPlot(Plot::PlotMode::SPECTRA_CN, args, this->verbose); + +#elif HAVE_GNUPLOT PlotSpectraCn pscn(getMxOutPath(), path(getMxOutPath().string() + ".spectra-cn." + output_type)); - pscn.setTitle(string("Spectra CN Plot for: ") + input[0].pathString() + " vs " + input[1].pathString()); - pscn.setYLabel("# Distinct kmers"); - pscn.setXLabel("Kmer multiplicity"); pscn.setOutputType(output_type); res = pscn.plot(); + + if (!res) { + cout << endl << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; + return; + } +#endif } - - if (!res) { - cout << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; - } - else { - cout << " done."; +/* + if (outputHists) { + + path outputFile1 = path(outputPrefix.string() + ".1.hist." + output_type); + path outputFile2 = path(outputPrefix.string() + ".2.hist." + output_type); + +#if HAVE_PYTHON + + vector args1; + args1.push_back("kat_plot_spectra-hist.py"); + args1.push_back(string("--output=") + outputFile1.string()); + args1.push_back(outputPrefix.string() + ".1.hist"); + Plot::executePythonPlot(Plot::PlotMode::SPECTRA_HIST, args1); + + vector args2; + args2.push_back("kat_plot_spectra-hist.py"); + args2.push_back(string("--output=") + outputFile2.string()); + args2.push_back(outputPrefix.string() + ".2.hist"); + Plot::executePythonPlot(Plot::PlotMode::SPECTRA_HIST, args2); + +#elif HAVE_GNUPLOT + + PlotSpectraHist psh(input[0].input, outputFile1); + psh.setOutputType(output_type); + bool res1 = psh.plot(); + + if (!res1) { + cout << endl << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; + return; + } + + PlotSpectraHist psh(input[1].input, outputFile2); + psh.setOutputType(output_type); + bool res2 = psh.plot(); + + if (!res2) { + cout << endl << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; + return; + } + +#endif } - +*/ + cout << " done."; cout.flush(); } @@ -744,7 +599,7 @@ int kat::Comp::main(int argc, char *argv[]) { string input1; string input2; string input3; - path output_prefix; + string output_prefix; double d1_scale; double d2_scale; uint16_t d1_bins; @@ -764,13 +619,18 @@ int kat::Comp::main(int argc, char *argv[]) { bool disable_hash_grow; bool density_plot; string plot_output_type; + bool output_hists; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(Comp::helpMessage(), 100); + po::options_description generic_options(Comp::helpMessage(), w.ws_col); generic_options.add_options() - ("output_prefix,o", po::value(&output_prefix)->default_value("kat-comp"), + ("output_prefix,o", po::value(&output_prefix)->default_value("kat-comp"), "Path prefix for files generated by this program.") ("threads,t", po::value(&threads)->default_value(1), "The number of threads to use.") @@ -806,10 +666,12 @@ int kat::Comp::main(int argc, char *argv[]) { "Dumps any jellyfish hashes to disk that were produced during this run.") ("disable_hash_grow,g", po::bool_switch(&disable_hash_grow)->default_value(false), "By default jellyfish will double the size of the hash if it gets filled, and then attempt to recount. Setting this option to true, disables automatic hash growing. If the hash gets filled an error is thrown. This option is useful if you are working with large genomes, or have strict memory limits on your system.") - ("density_plot,p", po::bool_switch(&density_plot)->default_value(false), + ("density_plot,n", po::bool_switch(&density_plot)->default_value(false), "Makes a spectra_mx plot. By default we create a spectra_cn plot.") ("output_type,p", po::value(&plot_output_type)->default_value(DEFAULT_COMP_PLOT_OUTPUT_TYPE), "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") + ("output_hists,h", po::bool_switch(&output_hists)->default_value(false), + "Whether or not to output histogram data and plots for input 1 and input 2") ("verbose,v", po::bool_switch(&verbose)->default_value(false), "Print extra information.") ("help", po::bool_switch(&help)->default_value(false), "Produce help message.") @@ -819,12 +681,12 @@ int kat::Comp::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("input_1,i1", po::value(&input1), "Path to the first input file. Can be either FastA, FastQ or a jellyfish hash (non bloom filtered)") - ("input_2,i2", po::value(&input2), "Path to the second input file. Can be either FastA, FastQ or a jellyfish hash (non bloom filtered)") - ("input_3,i3", po::value(&input3), "Path to the third input file. Can be either FastA, FastQ or a jellyfish hash (non bloom filtered)") + ("input_1", po::value(&input1), "Path to the first input file. Can be either FastA, FastQ or a jellyfish hash (non bloom filtered)") + ("input_2", po::value(&input2), "Path to the second input file. Can be either FastA, FastQ or a jellyfish hash (non bloom filtered)") + ("input_3", po::value(&input3), "Path to the third input file. Can be either FastA, FastQ or a jellyfish hash (non bloom filtered)") ; - // Positional option for the input bam file + // Positional options for the input file groups po::positional_options_description p; p.add("input_1", 1); p.add("input_2", 1); @@ -852,17 +714,36 @@ int kat::Comp::main(int argc, char *argv[]) { << "------------------------" << endl << endl; // Glob input files - vector vecinput1 = InputHandler::globFiles(input1); - vector vecinput2 = InputHandler::globFiles(input2); + if (input1.empty()) { + BOOST_THROW_EXCEPTION(CompException() << CompErrorInfo(string("Nothing specified for input group 1"))); + } + else if (verbose) { + cerr << "Input 1: " << input1 << endl << endl; + } + shared_ptr> vecinput1 = InputHandler::globFiles(input1); + + if (input2.empty()) { + BOOST_THROW_EXCEPTION(CompException() << CompErrorInfo(string("Nothing specified for input group 2"))); + } + else if (verbose) { + cerr << "Input 2: " << input2 << endl << endl; + } + shared_ptr> vecinput2 = InputHandler::globFiles(input2); - vector vecinput3; + shared_ptr> vecinput3; if ( !input3.empty() ){ + if (verbose) { + cerr << "Input 3: " << input3 << endl << endl; + } vecinput3 = InputHandler::globFiles(input3); } // Create the sequence coverage object - Comp comp(vecinput1, vecinput2, vecinput3); - comp.setOutputPrefix(output_prefix); + Comp comp(*vecinput1, *vecinput2); + if (!input3.empty()) { + comp.setThirdInput(*vecinput3); + } + comp.setOutputPrefix(path(output_prefix)); comp.setD1Scale(d1_scale); comp.setD2Scale(d2_scale); comp.setD1Bins(d1_bins); @@ -878,6 +759,7 @@ int kat::Comp::main(int argc, char *argv[]) { comp.setDumpHashes(dump_hashes); comp.setDisableHashGrow(disable_hash_grow); comp.setDensityPlot(density_plot); + comp.setOutputHists(output_hists); comp.setVerbose(verbose); // Do the work diff --git a/src/comp.hpp b/src/comp.hpp index d281ec7e..787135f3 100644 --- a/src/comp.hpp +++ b/src/comp.hpp @@ -35,102 +35,23 @@ using bfs::path; #include -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/threaded_sparse_matrix.hpp" - -#include "jellyfish_helper.hpp" -#include "input_handler.hpp" +#include +#include +#include +#include +#include using kat::JellyfishHelper; using kat::InputHandler; - -typedef boost::error_info CompErrorInfo; -struct CompException: virtual boost::exception, virtual std::exception { }; +using kat::ThreadedCompCounters; +using kat::ThreadedSparseMatrix; namespace kat { - - const string DEFAULT_COMP_PLOT_OUTPUT_TYPE = "png"; - const uint32_t DEFAULT_NB_BINS = 1001; - - class CompCounters { - public: - uint64_t hash1_total; - uint64_t hash2_total; - uint64_t hash3_total; - uint64_t hash1_distinct; - uint64_t hash2_distinct; - uint64_t hash3_distinct; - uint64_t hash1_only_total; - uint64_t hash2_only_total; - uint64_t hash1_only_distinct; - uint64_t hash2_only_distinct; - uint64_t shared_hash1_total; - uint64_t shared_hash2_total; - uint64_t shared_distinct; - - vector spectrum1; - vector spectrum2; - vector shared_spectrum1; - vector shared_spectrum2; - - path hash1_path; - path hash2_path; - path hash3_path; - - CompCounters(); - - CompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size); - - CompCounters(const CompCounters& o); - - void updateHash1Counters(const uint64_t hash1_count, const uint64_t hash2_count); - void updateHash2Counters(const uint64_t hash1_count, const uint64_t hash2_count); + typedef boost::error_info CompErrorInfo; + struct CompException: virtual boost::exception, virtual std::exception { }; - void updateHash3Counters(const uint64_t hash3_count); - - void updateSharedCounters(const uint64_t hash1_count, const uint64_t hash2_count); - - static void updateSpectrum(vector& spectrum, const uint64_t count); - - void printCounts(ostream &out); - }; - - class ThreadedCompCounters { - private: - uint16_t threads; - - CompCounters final_matrix; - vector threaded_counters; - - static void merge_spectrum(vector& spectrum, const vector& threaded_spectrum); - - public: - - ThreadedCompCounters(); - - ThreadedCompCounters(const path& _hash1_path, const path& _hash2_path, const path& _hash3_path, const size_t _dm_size); - - void printCounts(ostream &out); - - void add(shared_ptr cc); - - size_t size() { - return threaded_counters.size(); - } - - CompCounters& getFinalMatrix() { - return final_matrix; - } - - CompCounters& getThreadedMatrixAt(uint16_t index) { - return threaded_counters[index]; - } - - void merge(); + const string DEFAULT_COMP_PLOT_OUTPUT_TYPE = "png"; - }; - class Comp { private: @@ -144,6 +65,8 @@ namespace kat { uint16_t d2Bins; uint16_t threads; bool densityPlot; + bool outputHists; + bool threeInputs; bool verbose; // Threaded matrix data @@ -157,26 +80,23 @@ namespace kat { std::mutex mu; - void init(const vector& _input1, const vector& _input2, const vector& _input3); + void init(const vector& _input1, const vector& _input2); public: - Comp(); - - Comp(const path& _input1, const path& _input2); + Comp(const vector& _input1, const vector& _input2); - Comp(const path& _input1, const path& _input2, const path& _input3); - - Comp(const vector& _input1, const vector& _input2); + virtual ~Comp() {} - Comp(const vector& _input1, const vector& _input2, const vector& _input3); - + void setThirdInput(const vector& _input3); - virtual ~Comp() {} + size_t inputSize() { + return doThirdHash() ? 3 : 2; + } bool doThirdHash() { - return input.size() == 3; + return threeInputs; } bool isCanonical(uint16_t index) const { @@ -228,14 +148,14 @@ namespace kat { } path getInput(uint16_t index) const { - return *(input[index].input[0]); + return input[index].input[0]; } void setInput(uint16_t index, path input) { - this->input[index].input[0] = make_shared(input); + this->input[index].input[0] = input; } - uint8_t getMerLen() const { + uint16_t getMerLen() const { return input[0].merLen; } @@ -297,6 +217,13 @@ namespace kat { this->densityPlot = densityPlot; } + bool isOutputHists() const { + return outputHists; + } + + void setOutputHists(bool outputHists) { + this->outputHists = outputHists; + } @@ -343,6 +270,10 @@ namespace kat { void printCounters(ostream &out); + // Print histograms + + void printHist(ostream &out, InputHandler& input, vector& hist); + void save(); path getMxOutPath() { return path(string(outputPrefix.string() + "-main.mx")); } diff --git a/src/filter.cc b/src/filter.cc index 753b3f52..1db44ca8 100644 --- a/src/filter.cc +++ b/src/filter.cc @@ -22,6 +22,7 @@ #include #include #include +#include using std::cerr; using std::cout; using std::endl; @@ -66,11 +67,17 @@ int kat::Filter::main(int argc, char *argv[]) { string modeStr; vector others; + bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(Filter::helpMessage(), 100); + po::options_description generic_options(Filter::helpMessage(), w.ws_col); generic_options.add_options() + ("verbose,v", po::bool_switch(&verbose)->default_value(false), "Print extra information") ("help", po::bool_switch(&help)->default_value(false), "Produce help message.") ; @@ -97,7 +104,7 @@ int kat::Filter::main(int argc, char *argv[]) { po::notify(vm); // Output help information the exit if requested - if (argc == 1 || (argc == 2 && help)) { + if (argc == 1 || (argc == 2 && verbose) || (argc == 2 && help) || (argc == 3 && verbose && help)) { cout << generic_options << endl; return 1; } diff --git a/src/filter.hpp b/src/filter.hpp index 47d2ba4c..64ef397d 100644 --- a/src/filter.hpp +++ b/src/filter.hpp @@ -59,7 +59,7 @@ namespace kat { "Filtering tools\n\n" + "First argument should be the filter mode you wish to use:\n" \ " * kmer: Filters a jellyfish k-mer hash using user defined properties.\n" \ - " * seq: Filters sequences in a file based on k-mers in a given hash\n" \ + " * seq: Filters sequences in a file based on k-mers in a given hash\n\n" \ "Options"; } diff --git a/src/filter_kmer.cc b/src/filter_kmer.cc index 772d0c25..a7af1958 100644 --- a/src/filter_kmer.cc +++ b/src/filter_kmer.cc @@ -29,6 +29,7 @@ #include #include #include +#include using std::vector; using std::string; using std::cerr; @@ -49,13 +50,15 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/str_utils.hpp" - -#include "input_handler.hpp" -#include "jellyfish_helper.hpp" -#include "plot_density.hpp" +#include +#include +#include +#include using kat::InputHandler; using kat::JellyfishHelper; +using kat::KatFS; + +#include "plot_density.hpp" using kat::PlotDensity; #include "filter_kmer.hpp" @@ -132,12 +135,8 @@ void kat::filter::FilterKmer::execute() { // Create output directory path parentDir = bfs::absolute(output_prefix).parent_path(); - if (!bfs::exists(parentDir) || !bfs::is_directory(parentDir)) { - if (!bfs::create_directories(parentDir)) { - BOOST_THROW_EXCEPTION(FilterKmerException() << FilterKmerErrorInfo(string( - "Could not create output directory: ") + parentDir.string())); - } - } + KatFS::ensureDirectoryExists(parentDir); + // Either count or load input if (input.mode == InputHandler::InputHandler::InputMode::COUNT) { input.count(threads); @@ -215,8 +214,6 @@ void kat::filter::FilterKmer::dump(path& out_path, HashCounter* hash, file_heade cout << "Dumping hash to " << out_path.string() << " ..."; cout.flush(); - - JellyfishHelper::dumpHash(hash->ary(), header, threads, out_path); cout << " done."; @@ -330,9 +327,13 @@ int kat::filter::FilterKmer::main(int argc, char *argv[]) { uint64_t hash_size; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(FilterKmer::helpMessage(), 100); + po::options_description generic_options(FilterKmer::helpMessage(), w.ws_col); generic_options.add_options() ("output_prefix,o", po::value(&output_prefix)->default_value("kat.filter.kmer"), "Path prefix for files generated by this program.") @@ -370,7 +371,7 @@ int kat::filter::FilterKmer::main(int argc, char *argv[]) { // Positional option for the input bam file po::positional_options_description p; - p.add("inputs", 100); + p.add("inputs", -1); // Combine non-positional options po::options_description cmdline_options; diff --git a/src/filter_kmer.hpp b/src/filter_kmer.hpp index b45e8602..5c8030c5 100644 --- a/src/filter_kmer.hpp +++ b/src/filter_kmer.hpp @@ -19,7 +19,7 @@ #include using std::unique_ptr; -#include "input_handler.hpp" +#include using kat::InputHandler; diff --git a/src/filter_sequence.cc b/src/filter_sequence.cc index e403bd51..bcbaf856 100644 --- a/src/filter_sequence.cc +++ b/src/filter_sequence.cc @@ -30,6 +30,7 @@ #include #include #include +#include using std::vector; using std::string; using std::cerr; @@ -54,13 +55,15 @@ using bfs::path; #include #include -#include "inc/str_utils.hpp" - -#include "input_handler.hpp" -#include "jellyfish_helper.hpp" -#include "plot_density.hpp" +#include +#include +#include +#include using kat::InputHandler; using kat::JellyfishHelper; +using kat::KatFS; + +#include "plot_density.hpp" using kat::PlotDensity; #include "filter_sequence.hpp" @@ -135,12 +138,8 @@ void kat::filter::FilterSeq::execute() { // Create output directory path parentDir = bfs::absolute(output_prefix).parent_path(); - if (!bfs::exists(parentDir) || !bfs::is_directory(parentDir)) { - if (!bfs::create_directories(parentDir)) { - BOOST_THROW_EXCEPTION(FilterSeqException() << FilterSeqErrorInfo(string( - "Could not create output directory: ") + parentDir.string())); - } - } + KatFS::ensureDirectoryExists(parentDir); + // Either count or load input if (input.mode == InputHandler::InputHandler::InputMode::COUNT) { input.count(threads); @@ -386,9 +385,13 @@ int kat::filter::FilterSeq::main(int argc, char *argv[]) { uint64_t hash_size; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(FilterSeq::helpMessage(), 100); + po::options_description generic_options(FilterSeq::helpMessage(), w.ws_col); generic_options.add_options() ("output_prefix,o", po::value(&output_prefix)->default_value("kat.filter.kmer"), "Path prefix for files generated by this program.") @@ -424,7 +427,7 @@ int kat::filter::FilterSeq::main(int argc, char *argv[]) { // Positional option for the input bam file po::positional_options_description p; p.add("seq_file", 1); - p.add("inputs", 100); + p.add("inputs", -1); // Combine non-positional options po::options_description cmdline_options; diff --git a/src/filter_sequence.hpp b/src/filter_sequence.hpp index aa5ee612..66636df8 100644 --- a/src/filter_sequence.hpp +++ b/src/filter_sequence.hpp @@ -25,7 +25,7 @@ using std::stringstream; #include #include -#include "input_handler.hpp" +#include using kat::InputHandler; diff --git a/src/gcp.cc b/src/gcp.cc index 10e1fbdf..3c151429 100644 --- a/src/gcp.cc +++ b/src/gcp.cc @@ -25,6 +25,7 @@ #include #include #include +#include using std::shared_ptr; using std::make_shared; using std::ostream; @@ -43,16 +44,19 @@ using bfs::path; using boost::lexical_cast; #include -#include -using kat::HashLoader; -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/threaded_sparse_matrix.hpp" +#include +#include +#include +using kat::InputHandler; +using kat::HashLoader; +using kat::ThreadedSparseMatrix; +using kat::SparseMatrix; -#include "input_handler.hpp" #include "plot_density.hpp" -using kat::InputHandler; +#include "plot.hpp" using kat::PlotDensity; +using kat::Plot; #include "gcp.hpp" @@ -74,12 +78,7 @@ void kat::Gcp::execute() { // Create output directory path parentDir = bfs::absolute(outputPrefix).parent_path(); - if (!bfs::exists(parentDir) || !bfs::is_directory(parentDir)) { - if (!bfs::create_directories(parentDir)) { - BOOST_THROW_EXCEPTION(GcpException() << GcpErrorInfo(string( - "Could not create output directory: ") + parentDir.string())); - } - } + KatFS::ensureDirectoryExists(parentDir); // Either count or load input if (input.mode == InputHandler::InputHandler::InputMode::COUNT) { @@ -141,14 +140,16 @@ void kat::Gcp::merge() { void kat::Gcp::printMainMatrix(ostream &out) { SM64 mx = gcp_mx->getFinalMatrix(); - out << mme::KEY_TITLE << "K-mer coverage vs GC count plot for: " << input.pathString() << endl; - out << mme::KEY_X_LABEL << "K-mer multiplicity" << endl; + out << mme::KEY_TITLE << "K-mer coverage vs GC count plot for: " << input.fileName() << endl; + out << mme::KEY_X_LABEL << input.merLen << "-mer frequency" << endl; out << mme::KEY_Y_LABEL << "GC count" << endl; - out << mme::KEY_Z_LABEL << "Distinct K-mers per bin" << endl; + out << mme::KEY_Z_LABEL << "# distinct " << input.merLen << "-mers" << endl; out << mme::KEY_NB_COLUMNS << mx.height() << endl; out << mme::KEY_NB_ROWS << mx.width() << endl; out << mme::KEY_MAX_VAL << mx.getMaxVal() << endl; out << mme::KEY_TRANSPOSE << "0" << endl; + out << mme::KEY_KMER << input.merLen << endl; + out << mme::KEY_INPUT_1 << input.pathString() << endl; out << mme::MX_META_END << endl; mx.printMatrix(out); @@ -202,23 +203,31 @@ void kat::Gcp::plot(const string& output_type) { cout << "Creating plot ..."; cout.flush(); + string kstr = lexical_cast(this->getMerLen()); + + string outputFile = outputPrefix.string() + ".mx." + output_type; + +#if HAVE_PYTHON + vector args; + args.push_back("kat_plot_density.py"); + args.push_back(string("--output=") + outputFile); + args.push_back(outputPrefix.string() + ".mx"); + Plot::executePythonPlot(Plot::PlotMode::DENSITY, args, this->verbose); +#elif HAVE_GNUPLOT + PlotDensity pd(path(outputPrefix.string() + ".mx"), path(outputPrefix.string() + ".mx." + output_type)); - pd.setZLabel("# distinct kmers"); - pd.setYLabel("GC count"); - pd.setXLabel("K-mer multiplicity"); - pd.setTitle(string("GC vs kmer heat map for ") + input.pathString()); pd.setOutputType(output_type); bool res = pd.plot(); if (!res) { cout << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; - } - else { - cout << " done."; + return; } - cout.flush(); +#endif + cout << " done."; + cout.flush(); } int kat::Gcp::main(int argc, char *argv[]) { @@ -236,9 +245,13 @@ int kat::Gcp::main(int argc, char *argv[]) { string plot_output_type; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(Gcp::helpMessage(), 100); + po::options_description generic_options(Gcp::helpMessage(), w.ws_col); generic_options.add_options() ("output_prefix,o", po::value(&output_prefix)->default_value(path("kat-gcp")), "Path prefix for files generated by this program.") @@ -269,12 +282,12 @@ int kat::Gcp::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("inputs,i", po::value>(&inputs), "Path to the input file(s) to process.") + ("inputs", po::value>(&inputs), "Path to the input file(s) to process.") ; // Positional option for the input bam file po::positional_options_description p; - p.add("inputs", 100); + p.add("inputs", -1); // Combine non-positional options po::options_description cmdline_options; diff --git a/src/gcp.hpp b/src/gcp.hpp index a6522ece..ea992574 100644 --- a/src/gcp.hpp +++ b/src/gcp.hpp @@ -40,12 +40,13 @@ using boost::lexical_cast; #include -#include "jellyfish_helper.hpp" -#include "input_handler.hpp" +#include +#include +#include +#include using kat::InputHandler; +using kat::ThreadedSparseMatrix; -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/matrix/threaded_sparse_matrix.hpp" using std::ostream; diff --git a/src/histogram.cc b/src/histogram.cc index d9821291..2e04d878 100644 --- a/src/histogram.cc +++ b/src/histogram.cc @@ -27,6 +27,7 @@ #include #include #include +#include using std::shared_ptr; using std::make_shared; using std::thread; @@ -42,13 +43,15 @@ namespace bfs = boost::filesystem; using bfs::path; using boost::lexical_cast; -#include "inc/matrix/matrix_metadata_extractor.hpp" - #include -#include + +#include +#include #include "plot_spectra_hist.hpp" +#include "plot.hpp" using kat::PlotSpectraHist; +using kat::Plot; #include "histogram.hpp" @@ -83,12 +86,7 @@ void kat::Histogram::execute() { // Create output directory path parentDir = bfs::absolute(outputPrefix).parent_path(); - if (!bfs::exists(parentDir) || !bfs::is_directory(parentDir)) { - if (!bfs::create_directories(parentDir)) { - BOOST_THROW_EXCEPTION(HistogramException() << HistogramErrorInfo(string( - "Could not create output directory: ") + parentDir.string())); - } - } + KatFS::ensureDirectoryExists(parentDir); // Either count or load input if (input.mode == InputHandler::InputHandler::InputMode::COUNT) { @@ -136,9 +134,11 @@ void kat::Histogram::save() { void kat::Histogram::print(std::ostream &out) { // Output header - out << mme::KEY_TITLE << "K-mer spectra for: " << input.pathString() << endl; - out << mme::KEY_X_LABEL << "K" << input.merLen << " multiplicity" << endl; - out << mme::KEY_Y_LABEL << "Number of distinct " << input.merLen << " mers" << endl; + out << mme::KEY_TITLE << input.merLen << "-mer spectra for: " << input.fileName() << endl; + out << mme::KEY_X_LABEL << input.merLen << "-mer frequency" << endl; + out << mme::KEY_Y_LABEL << "# distinct " << input.merLen << "-mers" << endl; + out << mme::KEY_KMER << input.merLen << endl; + out << mme::KEY_INPUT_1 << input.pathString() << endl; out << mme::MX_META_END << endl; uint64_t col = base; @@ -210,23 +210,33 @@ void kat::Histogram::plot(const string& output_type) { cout << "Creating plot ..."; cout.flush(); + path outputFile1 = path(outputPrefix.string() + "." + output_type); + + +#if HAVE_PYTHON + + vector args; + args.push_back("kat_plot_spectra-hist.py"); + args.push_back(string("--output=") + outputFile1.string()); + args.push_back(outputPrefix.string()); + Plot::executePythonPlot(Plot::PlotMode::SPECTRA_HIST, args, this->verbose); + + +#elif HAVE_GNUPLOT vector pin; pin.push_back(outputPrefix); - + PlotSpectraHist psh(pin, path(outputPrefix.string() + "." + output_type)); - psh.setXLabel("Kmer multiplicity"); - psh.setYLabel("# Distinct kmers"); - psh.setTitle(string("Kmer spectra for ") + input.pathString()); psh.setOutputType(output_type); bool res = psh.plot(); if (!res) { cout << "WARNING: gnuplot session not valid. Probably gnuplot is not installed correctly on your system. No plots produced."; - } - else { - cout << " done."; + return; } +#endif + cout << " done."; cout.flush(); } @@ -246,9 +256,13 @@ int kat::Histogram::main(int argc, char *argv[]) { string plot_output_type; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(Histogram::helpMessage(), 100); + po::options_description generic_options(Histogram::helpMessage(), w.ws_col); generic_options.add_options() ("output_prefix,o", po::value(&output_prefix)->default_value("kat.hist"), "Path prefix for files generated by this program.") @@ -281,12 +295,12 @@ int kat::Histogram::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("inputs,i", po::value>(&inputs), "Path to the input file(s) to process.") + ("inputs", po::value>(&inputs), "Path to the input file(s) to process.") ; // Positional option for the input bam file po::positional_options_description p; - p.add("inputs", 100); + p.add("inputs", -1); // Combine non-positional options po::options_description cmdline_options; diff --git a/src/histogram.hpp b/src/histogram.hpp index 5e9f668a..b5c40f5e 100644 --- a/src/histogram.hpp +++ b/src/histogram.hpp @@ -40,9 +40,8 @@ using bfs::path; #include -#include "inc/matrix/matrix_metadata_extractor.hpp" - -#include "input_handler.hpp" +#include +#include using kat::InputHandler; typedef boost::error_info HistogramErrorInfo; @@ -64,11 +63,10 @@ namespace kat { bool verbose; // Internal vars - uint64_t base, ceil, inc, nb_buckets, nb_slices; + uint64_t base, ceil, inc, nb_buckets; vector data; vector>> threadedData; - uint64_t slice_id; - + public: Histogram(vector _inputs, uint64_t _low, uint64_t _high, uint64_t _inc); diff --git a/src/inc/.gitignore b/src/inc/.gitignore deleted file mode 100644 index 43177827..00000000 --- a/src/inc/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/.dirstamp -/seq_utils.o -/.deps/ diff --git a/src/inc/gnuplot/.gitignore b/src/inc/gnuplot/.gitignore deleted file mode 100644 index 1db89731..00000000 --- a/src/inc/gnuplot/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/.deps/ -/*.dirstamp -/*.o diff --git a/src/inc/kat_fs.hpp b/src/inc/kat_fs.hpp deleted file mode 100644 index ce6cec11..00000000 --- a/src/inc/kat_fs.hpp +++ /dev/null @@ -1,169 +0,0 @@ -// ******************************************************************** -// This file is part of KAT - the K-mer Analysis Toolkit. -// -// KAT is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// KAT is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with KAT. If not, see . -// ******************************************************************* - -#pragma once - -#include -using std::endl; - -#include -#include -namespace fs = boost::filesystem; -using fs::exists; -using fs::path; - -namespace kat { - - typedef boost::error_info FileSystemErrorInfo; - struct FileSystemException: virtual boost::exception, virtual std::exception { }; - - - class KatFS { - private: - - // Executables - path katExe; - - // Directories - path binDir; - path rootDir; - path libsDir; - path scriptsDir; - - - string exec(const char* cmd) { - FILE* pipe = popen(cmd, "r"); - if (!pipe) return "ERROR"; - char buffer[512]; - string result = ""; - while(!feof(pipe)) { - if(fgets(buffer, 512, pipe) != NULL) - result += buffer; - } - pclose(pipe); - return result; - } - - public: - - KatFS() {} - - /** - * - * @param exe Full path to the exe, probably derived from argv0. - */ - KatFS(const char* argv) { - - path exe(argv); - - //cout << exe << endl; - - if(exe.is_absolute()) { - - //cout << "Absolute" << endl; - - // Easy job... nothing special to do, resolve symlink then take two levels up - katExe = fs::canonical(exe); - rootDir = katExe.parent_path().parent_path(); - } - else if (exe.string().find('/') != string::npos) { - - //cout << "Relative" << endl; - - // Relative with some parent paths... get absolute path, resolving symlinks then take two levels up - katExe = fs::canonical(fs::system_complete(exe)); - rootDir = katExe.parent_path().parent_path(); - } - else { - - //cout << "name only" << endl; - - // Tricky one... just exe name, no indication of where if comes from. Now we have to resort to using which. - string cmd = string("which ") + exe.string(); - string res = exec(cmd.c_str()); - string fullpath = res.substr(0, res.length() - 1); - - //cout << "fullpath" << fullpath << endl; - katExe = fs::canonical(path(fullpath)); - rootDir = katExe.parent_path().parent_path(); - } - - binDir = path(rootDir); - binDir /= "bin"; - - libsDir = path(rootDir); - libsDir /= ".libs"; - - path srcDir = path(rootDir); - srcDir /= "src"; - - path testDir = path(rootDir); - testDir /= "tests"; - - if (katExe.parent_path() == srcDir || katExe.parent_path() == libsDir || katExe.parent_path() == testDir) { - scriptsDir = path(rootDir); - scriptsDir /= "scripts"; - } - else { - scriptsDir = path(binDir); - } - - if (!exists(scriptsDir)) { - BOOST_THROW_EXCEPTION(FileSystemException() << FileSystemErrorInfo(string( - "Could not find suitable directory containing KAT scripts at: ") + scriptsDir.c_str())); - } - - } - - - - - // **** Destructor **** - virtual ~KatFS() { } - - path GetBinDir() const { - return binDir; - } - - path GetKatExe() const { - return katExe; - } - - path GetRootDir() const { - return rootDir; - } - - path GetScriptsDir() const { - return scriptsDir; - } - - - friend std::ostream& operator<<(std::ostream &strm, const KatFS& pfs) { - - return strm << "Directories: "<< endl - << " - Root: " << pfs.rootDir << endl - << " - Bin: " << pfs.binDir << endl - << " - Scripts: " << pfs.scriptsDir << endl << endl - << "Executables: " << endl - << " - kat: " << pfs.katExe << endl; - } - }; - - - -} - diff --git a/src/inc/matrix/.gitignore b/src/inc/matrix/.gitignore deleted file mode 100644 index d316d25e..00000000 --- a/src/inc/matrix/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/*.dirstamp -/*.o -/.deps/ diff --git a/src/inc/matrix/threaded_sparse_matrix.hpp b/src/inc/matrix/threaded_sparse_matrix.hpp deleted file mode 100644 index 57f457ae..00000000 --- a/src/inc/matrix/threaded_sparse_matrix.hpp +++ /dev/null @@ -1,80 +0,0 @@ -// ******************************************************************** -// This file is part of KAT - the K-mer Analysis Toolkit. -// -// KAT is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// KAT is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with KAT. If not, see . -// ******************************************************************* - -#pragma once - -#include -#include -using std::shared_ptr; - -#include "sparse_matrix.hpp" - -typedef SparseMatrix SM64; - -class ThreadedSparseMatrix { -private: - - uint16_t width; - uint16_t height; - uint16_t threads; - - SM64 final_matrix; - vector threaded_matricies; - -public: - - ThreadedSparseMatrix() : ThreadedSparseMatrix(0, 0, 0) {}; - - ThreadedSparseMatrix(uint16_t _width, uint16_t _height, uint16_t _threads) : - width(_width), height(_height), threads(_threads) { - final_matrix = SM64(width, height); - threaded_matricies = vector(threads); - - for (int i = 0; i < threads; i++) { - threaded_matricies[i] = SM64(width, height); - } - } - - virtual ~ThreadedSparseMatrix() { - } - - const SM64& getFinalMatrix() const { - return final_matrix; - } - - const SM64& getThreadMatrix(uint16_t index) const { - return threaded_matricies[index]; - } - - const SM64& mergeThreadedMatricies() { - // Merge matrix - for (int i = 0; i < width; i++) { - for (int j = 0; j < height; j++) { - for (int k = 0; k < threads; k++) { - final_matrix.inc(i, j, threaded_matricies[k].get(i, j)); - } - } - } - - return final_matrix; - } - - uint64_t incTM(uint16_t index, size_t i, size_t j, uint64_t val) { - return threaded_matricies[index].inc(i, j, val); - } - -}; diff --git a/src/kat.cc b/src/kat.cc index b6ea19f9..fde461a9 100644 --- a/src/kat.cc +++ b/src/kat.cc @@ -19,6 +19,7 @@ #include #endif +#include #include #include #include @@ -29,7 +30,7 @@ using std::string; #include namespace po = boost::program_options; -#include "inc/kat_fs.hpp" +#include using kat::KatFS; #include "comp.hpp" @@ -49,6 +50,11 @@ using kat::Sect; typedef boost::error_info KatErrorInfo; struct KatException: virtual boost::exception, virtual std::exception { }; +namespace kat { +// Global variable! :( +KatFS katFileSystem; +} + enum Mode { COMP, FILTER, @@ -89,17 +95,19 @@ Mode parseMode(string mode) { const string helpMessage() { return "The K-mer Analysis Toolkit (KAT) contains a number of tools that analyse jellyfish K-mer hashes. \n\n" "The First argument should be the tool/mode you wish to use:\n\n" \ - " * sect: SEquence Coverage estimator Tool. Estimates the coverage of each sequence in a file using\n" \ - " K-mers from another sequence file.\n" \ - " * comp: K-mer comparison tool. Creates a matrix of shared K-mers between two (or three) sequence files.\n" \ - " * gcp: K-mer GC Processor. Creates a matrix of the number of K-mers found given a GC count and a K-mer\n" \ - " count.\n" \ - " * hist: Create an histogram of k-mer occurrences from a sequence file. Similar to jellyfish histogram\n" \ - " sub command but adds metadata in output for easy plotting, also actually runs multi-threaded.\n" \ - " * filter: Filtering tools. Contains tools for filtering k-mers and sequences based on user-defined GC\n" \ - " and coverage limits.\n" \ - " * plot: Plotting tools. Contains several plotting tools to visualise K-mer and compare distributions.\n" \ - " Requires gnuplot.\n\n" \ + " * sect: SEquence Coverage estimator Tool. Estimates the coverage of each sequence in\n" \ + " a file using K-mers from another sequence file.\n" \ + " * comp: K-mer comparison tool. Creates a matrix of shared K-mers between two (or three)\n" \ + " sequence files.\n" \ + " * gcp: K-mer GC Processor. Creates a matrix of the number of K-mers found given a GC\n" \ + " count and a K-mer count.\n" \ + " * hist: Create an histogram of k-mer occurrences from a sequence file. Similar to\n" \ + " jellyfish histogram sub command but adds metadata in output for easy plotting,\n" \ + " also actually runs multi-threaded.\n" \ + " * filter: Filtering tools. Contains tools for filtering k-mers and sequences based on\n" \ + " user-defined GC and coverage limits.\n" \ + " * plot: Plotting tools. Contains several plotting tools to visualise K-mer and compare\n" \ + " distributions.\n\n" \ "Options"; } @@ -114,12 +122,17 @@ int main(int argc, char *argv[]) // KAT args string modeStr; std::vector others; + bool verbose; bool version; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); // Declare the supported options. - po::options_description generic_options(helpMessage(), 100); + po::options_description generic_options(helpMessage(), w.ws_col); generic_options.add_options() + ("verbose,v", po::bool_switch(&verbose)->default_value(false), "Print extra information") ("version", po::bool_switch(&version)->default_value(false), "Print version string") ("help", po::bool_switch(&help)->default_value(false), "Produce help message") ; @@ -146,8 +159,13 @@ int main(int argc, char *argv[]) po::store(po::command_line_parser(argc, argv).options(cmdline_options).positional(p).allow_unregistered().run(), vm); po::notify(vm); + kat::katFileSystem = KatFS(argv[0]); + + if (verbose) { + cout << kat::katFileSystem << endl << endl; + } // Output help information the exit if requested - if (argc == 1 || (argc == 2 && help)) { + if (argc == 1 || (argc == 2 && verbose) || (argc == 2 && help) || (argc == 3 && verbose && help)) { cout << generic_options << endl; return 1; } @@ -159,17 +177,18 @@ int main(int argc, char *argv[]) #endif #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "2.0.0" +#define PACKAGE_VERSION "2.X.X" #endif - cout << PACKAGE_NAME << " V" << PACKAGE_VERSION << endl << endl; - if (version) { + if (version) { + // Output in GNU standard format + cout << PACKAGE_NAME << " " << PACKAGE_VERSION << endl; return 0; } - - KatFS fs(argv[0]); - - //cout << fs << endl; + else { + // Output for the first line in a normal KAT run + cout << "Kmer Analysis Toolkit (KAT) V" << PACKAGE_VERSION << endl << endl; + } Mode mode = parseMode(modeStr); @@ -190,7 +209,7 @@ int main(int argc, char *argv[]) Histogram::main(modeArgC, modeArgV); break; case PLOT: - Plot::main(modeArgC, modeArgV, fs); + Plot::main(modeArgC, modeArgV); break; case SECT: Sect::main(modeArgC, modeArgV); diff --git a/src/plot.cc b/src/plot.cc index 1d03c067..43f3f7e4 100644 --- a/src/plot.cc +++ b/src/plot.cc @@ -24,6 +24,7 @@ #include #include #include +#include #include using std::cerr; using std::cout; @@ -45,13 +46,14 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; +#include + #include "plot_density.hpp" #include "plot_profile.hpp" #include "plot_spectra_cn.hpp" #include "plot_spectra_hist.hpp" #include "plot_spectra_mx.hpp" #include "plot.hpp" -#include "inc/kat_fs.hpp" using kat::PlotDensity; using kat::PlotProfile; using kat::PlotSpectraCn; @@ -90,15 +92,15 @@ path kat::Plot::getPythonScript(const PlotMode mode) { switch (mode) { case DENSITY: - return "density.py"; + return "kat_plot_density.py"; case PROFILE: - return "profile.py"; + return "kat_plot_profile.py"; case SPECTRA_CN: - return "spectra-cn.py"; + return "kat_plot_spectra-cn.py"; case SPECTRA_HIST: - return "spectra-hist.py"; + return "kat_plot_spectra-hist.py"; case SPECTRA_MX: - return "spectra-mx.py"; + return "kat_plot_spectra-mx.py"; default: BOOST_THROW_EXCEPTION(KatPlotException() << KatPlotErrorInfo(string( "Unrecognised KAT PLOT mode"))); @@ -113,10 +115,25 @@ wchar_t* kat::Plot::convertCharToWideChar(const char* c) { return wc; } -void kat::Plot::executePythonPlot(const PlotMode mode, int argc, char *argv[], const KatFS& fs) { +void kat::Plot::executePythonPlot(const PlotMode mode, vector& args, bool verbose) { + + char* char_args[50]; + + for(size_t i = 0; i < args.size(); i++) { + char_args[i] = strdup(args[i].c_str()); + } + + kat::Plot::executePythonPlot(mode, (int)args.size(), char_args, verbose); + + for(size_t i = 0; i < args.size(); i++) { + free(char_args[i]); + } +} + +void kat::Plot::executePythonPlot(const PlotMode mode, int argc, char *argv[], bool verbose) { const path script_name = getPythonScript(mode); - const path scripts_dir = fs.GetScriptsDir(); + const path scripts_dir = katFileSystem.GetScriptsDir(); const path full_script_path = path(scripts_dir.string() + "/" + script_name.string()); stringstream ss; @@ -131,8 +148,13 @@ void kat::Plot::executePythonPlot(const PlotMode mode, int argc, char *argv[], c wargv[i] = convertCharToWideChar(argv[i]); ss << " " << argv[i]; } + for(int i = argc; i < 50; i++) { + wargv[i] = convertCharToWideChar("\0"); + } - cout << "Effective command line: " << ss.str() << endl << endl; + if (verbose) { + cout << endl << "Effective command line: " << ss.str() << endl << endl; + } std::ifstream script_in(full_script_path.c_str()); std::string contents((std::istreambuf_iterator(script_in)), std::istreambuf_iterator()); @@ -143,11 +165,18 @@ void kat::Plot::executePythonPlot(const PlotMode mode, int argc, char *argv[], c Py_Initialize(); Py_SetProgramName(wsp); PySys_SetArgv(argc, wargv); - PyRun_SimpleString(contents.c_str()); + int res = PyRun_SimpleString(contents.c_str()); Py_Finalize(); - + + if (res != 0) { + BOOST_THROW_EXCEPTION(KatPlotException() << KatPlotErrorInfo(string( + "Unexpected python error"))); + } + #endif + script_in.close(); + // Cleanup delete wsn; // No need to free up "wsp" as it is element 0 in the array @@ -180,15 +209,21 @@ void kat::Plot::executeGnuplotPlot(const PlotMode mode, int argc, char *argv[]) } -int kat::Plot::main(int argc, char *argv[], const KatFS& fs) { +int kat::Plot::main(int argc, char *argv[]) { string modeStr; vector others; + bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(Plot::helpMessage(), 100); + po::options_description generic_options(Plot::helpMessage(), w.ws_col); generic_options.add_options() + ("verbose,v", po::bool_switch(&verbose)->default_value(false), "Print extra information") ("help", po::bool_switch(&help)->default_value(false), "Produce help message.") ; @@ -215,8 +250,9 @@ int kat::Plot::main(int argc, char *argv[], const KatFS& fs) { po::notify(vm); // Output help information the exit if requested - if (argc == 1 || (argc == 2 && help)) { - cout << generic_options << endl; + // Output help information the exit if requested + if (argc == 1 || (argc == 2 && verbose) || (argc == 2 && help) || (argc == 3 && verbose && help)) { + cout << generic_options << endl; return 1; } @@ -229,7 +265,7 @@ int kat::Plot::main(int argc, char *argv[], const KatFS& fs) { // Execute via appropriate method (or error) #if HAVE_PYTHON - executePythonPlot(mode, modeArgC, modeArgV, fs); + executePythonPlot(mode, modeArgC, modeArgV, verbose); #elif HAVE_GNUPLOT executeGnuplotPlot(mode, modeArgC, modeArgV); #else diff --git a/src/plot.hpp b/src/plot.hpp index f4d48514..5e360969 100644 --- a/src/plot.hpp +++ b/src/plot.hpp @@ -30,7 +30,7 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/kat_fs.hpp" +#include using kat::KatFS; namespace kat { @@ -52,7 +52,14 @@ namespace kat { static bool validatePlotOutputType(); - static int main(int argc, char *argv[], const KatFS& fs); + static int main(int argc, char *argv[]); + + static path getPythonScript(const PlotMode mode); + + static void executePythonPlot(const PlotMode mode, vector& args, bool verbose); + + static void executePythonPlot(const PlotMode mode, int argc, char *argv[], bool verbose); + private: static wchar_t* convertCharToWideChar(const char* c); @@ -61,29 +68,28 @@ namespace kat { static PlotMode parseMode(const string& mode); - static void executePythonPlot(const PlotMode mode, int argc, char *argv[], const KatFS& fs); static void executeGnuplotPlot(const PlotMode mode, int argc, char *argv[]); - static path getPythonScript(const PlotMode mode); static string helpMessage() { return string("Usage: kat plot \n\n") + "Create K-mer Plots\n\n" + "First argument should be the plot mode you wish to use:\n" \ - " * density: Creates a density plot from a matrix created with the \"comp\" tool or the \"GCP\"\n" \ - " tool. Typically this is used to compare two K-mer hashes produced by different NGS\n" \ - " reads, or to represent the kmer coverage vs GC count plots.\n" \ - " * profile: Creates a K-mer coverage plot for a single sequence. Takes in fasta coverage output\n" \ - " coverage from the \"sect\" tool\n" \ - " * spectra-cn: Creates a stacked histogram using a matrix created with the \"comp\" tool. Typically\n" \ - " this is used to compare a jellyfish hash produced from a read set to a jellyfish hash\n" \ - " produced from an assembly. The plot shows the amount of distinct K-mers absent, as well\n" \ - " as the copy number variation present within the assembly.\n" \ - " * spectra-hist: Creates a K-mer spectra plot for a set of K-mer histograms produced either by jellyfish-\n" \ - " histo or kat-histo.\n" \ - " * spectra-mx: Creates a K-mer spectra plot for a set of K-mer histograms that are derived from\n" \ - " selected rows or columns in a matrix produced by the \"comp\".\n\n" \ + " * density: Creates a density plot from a matrix created with the \"comp\" tool or the\n" \ + " \"GCP\" tool. Typically this is used to compare two K-mer hashes produced\n" \ + " by different NGS reads, or to represent the kmer coverage vs GC count plots.\n" \ + " * profile: Creates a K-mer coverage plot for a single sequence. Takes in fasta\n" \ + " coverage output from the \"sect\" tool\n" \ + " * spectra-cn: Creates a stacked histogram using a matrix created with the \"comp\" tool.\n" \ + " Typically this is used to compare a jellyfish hash produced from a read set\n" \ + " to a jellyfish hash produced from an assembly. The plot shows the amount of\n" \ + " distinct K-mers absent, as well as the copy number variation present within\n" \ + " the assembly.\n" \ + " * spectra-hist: Creates a K-mer spectra plot for a set of K-mer histograms produced either\n" \ + " by jellyfish-histo or kat-histo.\n" \ + " * spectra-mx: Creates a K-mer spectra plot for a set of K-mer histograms that are derived\n" \ + " from selected rows or columns in a matrix produced by the \"comp\".\n\n" \ "Options"; } diff --git a/src/plot_density.cc b/src/plot_density.cc index f3cc9a2c..ae31934a 100644 --- a/src/plot_density.cc +++ b/src/plot_density.cc @@ -23,6 +23,7 @@ #include #include #include +#include using std::cerr; using std::cout; using std::endl; @@ -40,12 +41,10 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" - -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/matrix_metadata_extractor.hpp" - -#include "inc/spectra_helper.hpp" +#include +#include +#include +#include using kat::SpectraHelper; #include "plot_density.hpp" @@ -188,9 +187,13 @@ int kat::PlotDensity::main(int argc, char *argv[]) { uint64_t z_max; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(PlotDensity::helpMessage(), 100); + po::options_description generic_options(PlotDensity::helpMessage(), w.ws_col); generic_options.add_options() ("output_type,p", po::value(&output_type)->default_value("png"), "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") @@ -223,7 +226,7 @@ int kat::PlotDensity::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("mx_file,s", po::value(&mx_file), "Path to the matrix file to plot.") + ("mx_file", po::value(&mx_file), "Path to the matrix file to plot.") ; // Positional option for the input bam file diff --git a/src/plot_density.hpp b/src/plot_density.hpp index 919a5f84..e609c7a8 100644 --- a/src/plot_density.hpp +++ b/src/plot_density.hpp @@ -38,12 +38,12 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" +#include +#include -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/spectra_helper.hpp" +#include +#include +#include using kat::SpectraHelper; typedef boost::error_info PlotDensityErrorInfo; diff --git a/src/plot_profile.cc b/src/plot_profile.cc new file mode 100644 index 00000000..36984c0a --- /dev/null +++ b/src/plot_profile.cc @@ -0,0 +1,317 @@ +// ******************************************************************** +// This file is part of KAT - the K-mer Analysis Toolkit. +// +// KAT is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// KAT is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with KAT. If not, see . +// ******************************************************************* + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +using std::string; +using std::stringstream; +using std::istringstream; +using std::ostringstream; +using std::vector; +using std::endl; +using std::cerr; +using std::cout; + +#include +#include +#include +#include +namespace po = boost::program_options; +namespace bfs = boost::filesystem; +using bfs::path; + +#include +#include + +#include "plot_profile.hpp" + +int kat::PlotProfile::readRecord(std::ifstream& stream, string& id, string& counts) { + std::string line; + if (std::getline(stream, line)) { + if ('>' == line[0]) { + + id.assign(line.begin() + 1, line.end()); + + //std::string sequence; + /*while (stream.good() && '>' != stream.peek()) { + std::getline(stream, line); + sequence += line; + }*/ + + // We assume the counts are on a single line + std::getline(stream, line); + counts = line; + + stream.clear(); + + return 0; + } + else { + stream.clear(std::ios_base::failbit); + } + } + + return -1; +} + + +/** + * Finds a particular fasta header in a fasta file and returns the associated sequence + **/ +int kat::PlotProfile::getEntryFromFasta(const path& fasta_path, const string& header, string& sequence) { + // Setup stream to sequence file and check all is well + std::ifstream inputStream (fasta_path.c_str()); + + if (!inputStream.is_open()) + { + std::cerr << "ERROR: Could not open the sequence file: " << fasta_path << endl; + return 0; + } + + string id; + string seq; + + // Read a record + while(inputStream.good() && readRecord(inputStream, id, seq) == 0) + { + stringstream ssHeader; + ssHeader << id; + + if (header.compare(ssHeader.str()) == 0) + { + inputStream.close(); + sequence = seq; + + return 0; + } + seq.clear(); + } + + inputStream.close(); + return -1; +} + +/** + * Finds the nth entry from the fasta file and returns the associated sequence + **/ +int kat::PlotProfile::getEntryFromFasta(const path& fasta_path, uint32_t n, string& header, string& sequence) { + // Setup stream to sequence file and check all is well + std::ifstream inputStream (fasta_path.c_str()); + + if (!inputStream.is_open()) + { + std::cerr << "ERROR: Could not open the sequence file: " << fasta_path << endl; + return 0; + } + + + std::string id; + std::string seq; + uint32_t i = 1; + + // Read a record + while(inputStream.good() && readRecord(inputStream, id, seq) == 0) + { + if (i == n) + { + inputStream.close(); + + header.swap(id); + sequence = seq; + return 0; + } + + seq.clear(); + i++; + } + + inputStream.close(); + return -1; +} + +string kat::PlotProfile::autoTitle(string& title, string& header) { + std::ostringstream output_str; + output_str << "Sequence Coverage Plot" << ": " << header; + return title.compare("Sequence Coverage Plot") == 0 ? output_str.str() : title; +} + +int kat::PlotProfile::main(int argc, char *argv[]) { + + const string DEFAULT_TITLE = "Sequence Coverage Plot"; + const string DEFAULT_X_LABEL = "X"; + const string DEFAULT_Y_LABEL = "Y"; + const int32_t DEFAULT_X_MAX = 1000; + const int32_t DEFAULT_Y_MAX = 1000; + const uint32_t DEFAULT_FASTA_INDEX = 0; + + path sect_file; + string output_type; + path output; + string title; + string x_label; + string y_label; + uint16_t width; + uint16_t height; + uint32_t x_max; + uint32_t y_max; + bool y_logscale; + uint32_t fasta_index; + string fasta_header; + bool verbose; + bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + + + // Declare the supported options. + po::options_description generic_options(PlotProfile::helpMessage(), w.ws_col); + generic_options.add_options() + ("output_type,p", po::value(&output_type)->default_value("png"), + "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") + ("output,o", po::value(&output), + "The path to the output file") + ("title,t", po::value(&title)->default_value(DEFAULT_TITLE), + "Title for plot") + ("x_label,a", po::value(&x_label)->default_value(DEFAULT_X_LABEL), + "Label for the x-axis (value taken from matrix metadata if present)") + ("y_label,b", po::value(&y_label)->default_value(DEFAULT_Y_LABEL), + "Label for the y-axis (value taken from matrix metadata if present)") + ("x_max,x", po::value(&x_max)->default_value(DEFAULT_X_MAX), + "Maximum value for the x-axis (value taken from matrix metadata if present)") + ("y_max,y", po::value(&y_max)->default_value(DEFAULT_Y_MAX), + "Maximum value for the y-axis (value taken from matrix metadata if present)") + ("width,w", po::value(&width)->default_value(1024), + "Width of canvas") + ("height,h", po::value(&height)->default_value(1024), + "Height of canvas") + ("index,n", po::value(&fasta_index)->default_value(DEFAULT_FASTA_INDEX), + "Index of fasta entry to plot. First entry is 1.") + ("header,d", po::value(&fasta_header), + "Fasta header of fasta entry to plot. NOTE: \'--header\' has priority over index") + ("y_logscale,m", po::bool_switch(&y_logscale)->default_value(false), + "Y-axis is logscale. This overrides the y_min and y_max limits.") + ("verbose,v", po::bool_switch(&verbose)->default_value(false), + "Print extra information.") + ("help", po::bool_switch(&help)->default_value(false), "Produce help message.") + ; + + // Hidden options, will be allowed both on command line and + // in config file, but will not be shown to the user. + po::options_description hidden_options("Hidden options"); + hidden_options.add_options() + ("sect_file", po::value(§_file), "Path to the sect profile file to plot.") + ; + + // Positional option for the input bam file + po::positional_options_description p; + p.add("sect_file", 1); + + // Combine non-positional options + po::options_description cmdline_options; + cmdline_options.add(generic_options).add(hidden_options); + + // Parse command line + po::variables_map vm; + po::store(po::command_line_parser(argc, argv).options(cmdline_options).positional(p).run(), vm); + po::notify(vm); + + // Output help information the exit if requested + if (help || argc <= 1) { + cout << generic_options << endl; + return 1; + } + + // Check input file exists + if (!bfs::exists(sect_file) && !bfs::symbolic_link_exists(sect_file)) { + cerr << endl << "Could not find matrix file at: " << sect_file << "; please check the path and try again." << endl << endl; + return 1; + } + + string header; + string coverages; + + if (!fasta_header.empty()) { + header.assign(fasta_header); + getEntryFromFasta(sect_file, header, coverages); + } + else if (fasta_index > 0) { + getEntryFromFasta(sect_file, fasta_index, header, coverages); + } + + if (coverages.length() == 0) { + cerr << "Could not find requested fasta header in sect coverages fasta file" << endl; + } + else { + if (verbose) + cerr << "Found requested sequence : " << header << endl << coverages << endl << endl; + + // Split coverages + vector cvs = kat::splitUInt32(coverages, ' '); + + uint32_t maxCvgVal = y_max != DEFAULT_Y_MAX ? y_max : (*(std::max_element(cvs.begin(), cvs.end())) + 1); + + string t = autoTitle(title, header); + + if (verbose) + cerr << "Acquired K-mer counts" << endl; + + // Initialise gnuplot + Gnuplot profile_plot = Gnuplot("lines"); + + profile_plot.configurePlot(output_type, output.string(), width, height); + + profile_plot.set_title(t); + profile_plot.set_xlabel(x_label); + profile_plot.set_ylabel(y_label); + profile_plot.set_xrange(0, cvs.size()); + profile_plot.set_yrange(0, maxCvgVal); + + profile_plot.cmd("set style data linespoints"); + + std::ostringstream data_str; + + for(uint32_t i = 0; i < cvs.size(); i++) + { + uint32_t index = i+1; + double val = y_logscale ? (double)std::log(cvs[i]) : (double)cvs[i]; + data_str << index << " " << val << "\n"; + } + + std::ostringstream plot_str; + + plot_str << "plot '-'\n" << data_str.str() << "e\n"; + + profile_plot.cmd(plot_str.str()); + + if (verbose) + cerr << "Plotted data: " << plot_str.str() << endl; + } + + return 0; +} + diff --git a/src/plot_profile.hpp b/src/plot_profile.hpp index 4092de5c..578ea489 100644 --- a/src/plot_profile.hpp +++ b/src/plot_profile.hpp @@ -28,6 +28,7 @@ #include #include #include +#include using std::string; using std::stringstream; using std::istringstream; @@ -43,292 +44,42 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" +#include +#include namespace kat { class PlotProfile { protected: - static int readRecord(std::ifstream& stream, string& id, string& counts) - { - std::string line; - if (std::getline(stream, line)) { - if ('>' == line[0]) { - - id.assign(line.begin() + 1, line.end()); - - //std::string sequence; - /*while (stream.good() && '>' != stream.peek()) { - std::getline(stream, line); - sequence += line; - }*/ - - // We assume the counts are on a single line - std::getline(stream, line); - counts = line; - - stream.clear(); - - return 0; - } - else { - stream.clear(std::ios_base::failbit); - } - } - - return -1; - } + static int readRecord(std::ifstream& stream, string& id, string& counts); /** * Finds a particular fasta header in a fasta file and returns the associated sequence **/ - static int getEntryFromFasta(const path& fasta_path, const string& header, string& sequence) - { - // Setup stream to sequence file and check all is well - std::ifstream inputStream (fasta_path.c_str()); - - if (!inputStream.is_open()) - { - std::cerr << "ERROR: Could not open the sequence file: " << fasta_path << endl; - return 0; - } - - string id; - string seq; - - // Read a record - while(inputStream.good() && readRecord(inputStream, id, seq) == 0) - { - stringstream ssHeader; - ssHeader << id; - - if (header.compare(ssHeader.str()) == 0) - { - inputStream.close(); - sequence = seq; - - return 0; - } - seq.clear(); - } - - inputStream.close(); - return -1; - } + static int getEntryFromFasta(const path& fasta_path, const string& header, string& sequence); /** * Finds the nth entry from the fasta file and returns the associated sequence **/ - static int getEntryFromFasta(const path& fasta_path, uint32_t n, string& header, string& sequence) - { - // Setup stream to sequence file and check all is well - std::ifstream inputStream (fasta_path.c_str()); - - if (!inputStream.is_open()) - { - std::cerr << "ERROR: Could not open the sequence file: " << fasta_path << endl; - return 0; - } - - - std::string id; - std::string seq; - uint32_t i = 1; - - // Read a record - while(inputStream.good() && readRecord(inputStream, id, seq) == 0) - { - if (i == n) - { - inputStream.close(); - - header.swap(id); - sequence = seq; - return 0; - } - - seq.clear(); - i++; - } - - inputStream.close(); - return -1; - } + static int getEntryFromFasta(const path& fasta_path, uint32_t n, string& header, string& sequence); + static string autoTitle(string& title, string& header); + + protected: static string helpMessage() { - return string("Usage: kat plot profile [options] \n\n") + - "Create Sequence Coverage Plot.\n\n" \ - "Shows K-mer coverage level across an sequence.\n\n" \ + return string("Usage: kat plot profile [options] \n\n") + + "Create Sequence Profile Plots.\n\n" + + "Shows k-mer coverage across one or more sequences.\n\n" \ "Options"; } - - static string autoTitle(string& title, string& header) - { - std::ostringstream output_str; - output_str << "Sequence Coverage Plot" << ": " << header; - return title.compare("Sequence Coverage Plot") == 0 ? output_str.str() : title; - } - - public: - - - static int main(int argc, char *argv[]) { - const string DEFAULT_TITLE = "Sequence Coverage Plot"; - const string DEFAULT_X_LABEL = "X"; - const string DEFAULT_Y_LABEL = "Y"; - const int32_t DEFAULT_X_MAX = 1000; - const int32_t DEFAULT_Y_MAX = 1000; - const uint32_t DEFAULT_FASTA_INDEX = 0; - - path sect_file; - string output_type; - path output; - string title; - string x_label; - string y_label; - uint16_t width; - uint16_t height; - uint32_t x_max; - uint32_t y_max; - bool y_logscale; - uint32_t fasta_index; - string fasta_header; - bool verbose; - bool help; - - // Declare the supported options. - po::options_description generic_options(PlotProfile::helpMessage(), 100); - generic_options.add_options() - ("output_type,p", po::value(&output_type)->default_value("png"), - "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") - ("output,o", po::value(&output), - "The path to the output file") - ("title,t", po::value(&title)->default_value(DEFAULT_TITLE), - "Title for plot") - ("x_label,a", po::value(&x_label)->default_value(DEFAULT_X_LABEL), - "Label for the x-axis (value taken from matrix metadata if present)") - ("y_label,b", po::value(&y_label)->default_value(DEFAULT_Y_LABEL), - "Label for the y-axis (value taken from matrix metadata if present)") - ("x_max,x", po::value(&x_max)->default_value(DEFAULT_X_MAX), - "Maximum value for the x-axis (value taken from matrix metadata if present)") - ("y_max,y", po::value(&y_max)->default_value(DEFAULT_Y_MAX), - "Maximum value for the y-axis (value taken from matrix metadata if present)") - ("width,w", po::value(&width)->default_value(1024), - "Width of canvas") - ("height,h", po::value(&height)->default_value(1024), - "Height of canvas") - ("index,n", po::value(&fasta_index)->default_value(DEFAULT_FASTA_INDEX), - "Index of fasta entry to plot. First entry is 1.") - ("header,d", po::value(&fasta_header), - "Fasta header of fasta entry to plot. NOTE: \'--header\' has priority over index") - ("y_logscale,m", po::bool_switch(&y_logscale)->default_value(false), - "Y-axis is logscale. This overrides the y_min and y_max limits.") - ("verbose,v", po::bool_switch(&verbose)->default_value(false), - "Print extra information.") - ("help", po::bool_switch(&help)->default_value(false), "Produce help message.") - ; - - // Hidden options, will be allowed both on command line and - // in config file, but will not be shown to the user. - po::options_description hidden_options("Hidden options"); - hidden_options.add_options() - ("sect_file,s", po::value(§_file), "Path to the sect profile file to plot.") - ; - - // Positional option for the input bam file - po::positional_options_description p; - p.add("sect_file", 1); - - - // Combine non-positional options - po::options_description cmdline_options; - cmdline_options.add(generic_options).add(hidden_options); - - // Parse command line - po::variables_map vm; - po::store(po::command_line_parser(argc, argv).options(cmdline_options).positional(p).run(), vm); - po::notify(vm); - - // Output help information the exit if requested - if (help || argc <= 1) { - cout << generic_options << endl; - return 1; - } - - // Check input file exists - if (!bfs::exists(sect_file) && !bfs::symbolic_link_exists(sect_file)) { - cerr << endl << "Could not find matrix file at: " << sect_file << "; please check the path and try again." << endl << endl; - return 1; - } - - string header; - string coverages; - - if (!fasta_header.empty()) { - header.assign(fasta_header); - getEntryFromFasta(sect_file, header, coverages); - } - else if (fasta_index > 0) { - getEntryFromFasta(sect_file, fasta_index, header, coverages); - } - - if (coverages.length() == 0) { - cerr << "Could not find requested fasta header in sect coverages fasta file" << endl; - } - else { - if (verbose) - cerr << "Found requested sequence : " << header << endl << coverages << endl << endl; - - // Split coverages - vector cvs = kat::splitUInt32(coverages, ' '); - - uint32_t maxCvgVal = y_max != DEFAULT_Y_MAX ? y_max : (*(std::max_element(cvs.begin(), cvs.end())) + 1); - - string t = autoTitle(title, header); - - if (verbose) - cerr << "Acquired K-mer counts" << endl; - - // Initialise gnuplot - Gnuplot profile_plot = Gnuplot("lines"); - - profile_plot.configurePlot(output_type, output.string(), width, height); - - profile_plot.set_title(t); - profile_plot.set_xlabel(x_label); - profile_plot.set_ylabel(y_label); - profile_plot.set_xrange(0, cvs.size()); - profile_plot.set_yrange(0, maxCvgVal); - - profile_plot.cmd("set style data linespoints"); - - std::ostringstream data_str; - - for(uint32_t i = 0; i < cvs.size(); i++) - { - uint32_t index = i+1; - double val = y_logscale ? (double)std::log(cvs[i]) : (double)cvs[i]; - data_str << index << " " << val << "\n"; - } - - std::ostringstream plot_str; - - plot_str << "plot '-'\n" << data_str.str() << "e\n"; - - profile_plot.cmd(plot_str.str()); - - if (verbose) - cerr << "Plotted data: " << plot_str.str() << endl; - } - - return 0; - } - + public: + + static int main(int argc, char *argv[]); }; + } diff --git a/src/plot_spectra_cn.cc b/src/plot_spectra_cn.cc index ccbf3a97..7d94887a 100644 --- a/src/plot_spectra_cn.cc +++ b/src/plot_spectra_cn.cc @@ -25,6 +25,7 @@ #include #include #include +#include using std::cerr; using std::endl; using std::string; @@ -41,9 +42,10 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/spectra_helper.hpp" -#include "inc/matrix/sparse_matrix.hpp" +#include +#include +#include +using kat::SparseMatrix; #include "plot_spectra_cn.hpp" using kat::SpectraHelper; @@ -264,9 +266,13 @@ int kat::PlotSpectraCn::main(int argc, char *argv[]) { bool cumulative; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(PlotSpectraCn::helpMessage(), 100); + po::options_description generic_options(PlotSpectraCn::helpMessage(), w.ws_col); generic_options.add_options() ("output_type,p", po::value(&output_type)->default_value(DEFAULT_PSCN_OUTPUT_TYPE), "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") @@ -303,7 +309,7 @@ int kat::PlotSpectraCn::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("mx_file,s", po::value(&mx_file), "Path to the matrix file to plot.") + ("mx_file", po::value(&mx_file), "Path to the matrix file to plot.") ; // Positional option for the input bam file diff --git a/src/plot_spectra_cn.hpp b/src/plot_spectra_cn.hpp index e79760d3..d28a0282 100644 --- a/src/plot_spectra_cn.hpp +++ b/src/plot_spectra_cn.hpp @@ -41,11 +41,11 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" -#include "inc/spectra_helper.hpp" +#include +#include +#include +#include +#include using kat::SpectraHelper; typedef boost::error_info PlotSpectraCnErrorInfo; diff --git a/src/plot_spectra_hist.cc b/src/plot_spectra_hist.cc index d28db083..153960a1 100644 --- a/src/plot_spectra_hist.cc +++ b/src/plot_spectra_hist.cc @@ -26,6 +26,7 @@ #include #include #include +#include using std::cerr; using std::cout; using std::endl; @@ -44,10 +45,9 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" - -#include "inc/spectra_helper.hpp" +#include +#include +#include using kat::SpectraHelper; #include "plot_spectra_hist.hpp" @@ -201,9 +201,13 @@ int kat::PlotSpectraHist::main(int argc, char *argv[]) { bool y_logscale; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(PlotSpectraHist::helpMessage(), 100); + po::options_description generic_options(PlotSpectraHist::helpMessage(), w.ws_col); generic_options.add_options() ("output_type,p", po::value(&output_type)->default_value("png"), "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") @@ -240,12 +244,12 @@ int kat::PlotSpectraHist::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("histo_paths,i", po::value>(&histo_paths), "List of histogram files to plot") + ("histo_paths", po::value>(&histo_paths), "List of histogram files to plot") ; // Positional option for the input bam file po::positional_options_description p; - p.add("histo_paths", 100); + p.add("histo_paths", -1); // Combine non-positional options diff --git a/src/plot_spectra_hist.hpp b/src/plot_spectra_hist.hpp index 65ec202a..23f14e0e 100644 --- a/src/plot_spectra_hist.hpp +++ b/src/plot_spectra_hist.hpp @@ -43,10 +43,9 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" - -#include "inc/spectra_helper.hpp" +#include +#include +#include using kat::SpectraHelper; typedef boost::error_info PlotSpectraHistErrorInfo; diff --git a/src/plot_spectra_mx.cc b/src/plot_spectra_mx.cc index f45b73de..e474c287 100644 --- a/src/plot_spectra_mx.cc +++ b/src/plot_spectra_mx.cc @@ -26,6 +26,7 @@ #include #include #include +#include using std::cout; using std::cerr; using std::endl; @@ -45,11 +46,10 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" - -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/matrix_metadata_extractor.hpp" +#include +#include +#include +#include #include "plot_spectra_mx.hpp" @@ -295,9 +295,13 @@ int kat::PlotSpectraMx::main(int argc, char *argv[]) { bool y_logscale; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(PlotSpectraMx::helpMessage(), 100); + po::options_description generic_options(PlotSpectraMx::helpMessage(), w.ws_col); generic_options.add_options() ("output_type,p", po::value(&output_type)->default_value("png"), "The plot file type to create: png, ps, pdf. Warning... if pdf is selected please ensure your gnuplot installation can export pdf files.") @@ -342,7 +346,7 @@ int kat::PlotSpectraMx::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("mx_file,s", po::value(&mx_file), "Path to the matrix file to plot.") + ("mx_file", po::value(&mx_file), "Path to the matrix file to plot.") ; // Positional option for the input bam file diff --git a/src/plot_spectra_mx.hpp b/src/plot_spectra_mx.hpp index 484a6ddd..653957a5 100644 --- a/src/plot_spectra_mx.hpp +++ b/src/plot_spectra_mx.hpp @@ -43,11 +43,10 @@ namespace po = boost::program_options; namespace bfs = boost::filesystem; using bfs::path; -#include "inc/gnuplot/gnuplot_i.hpp" -#include "inc/str_utils.hpp" - -#include "inc/matrix/sparse_matrix.hpp" -#include "inc/matrix/matrix_metadata_extractor.hpp" +#include +#include +#include +#include typedef boost::error_info PlotSpectraMxErrorInfo; struct PlotSpectraMxException: virtual boost::exception, virtual std::exception { }; diff --git a/src/sect.cc b/src/sect.cc index bcf79357..292f5ad7 100644 --- a/src/sect.cc +++ b/src/sect.cc @@ -26,6 +26,7 @@ #include #include #include +#include using std::vector; using std::string; using std::cerr; @@ -51,10 +52,11 @@ using bfs::path; using boost::lexical_cast; #include -#include -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/matrix/threaded_sparse_matrix.hpp" +#include +#include +#include +using kat::KatFS; #include "sect.hpp" @@ -68,6 +70,7 @@ kat::Sect::Sect(const vector _counts_files, const path _seq_file) { cvgLogscale = false; threads = 1; noCountStats = false; + outputGCStats = false; extractNR = false; extractR = false; maxRepeat = 20; @@ -91,12 +94,7 @@ void kat::Sect::execute() { // Create output directory path parentDir = bfs::absolute(outputPrefix).parent_path(); - if (!bfs::exists(parentDir) || !bfs::is_directory(parentDir)) { - if (!bfs::create_directories(parentDir)) { - BOOST_THROW_EXCEPTION(SectException() << SectErrorInfo(string( - "Could not create output directory: ") + parentDir.string())); - } - } + KatFS::ensureDirectoryExists(parentDir); // Either count or load input if (input.mode == InputHandler::InputHandler::InputMode::COUNT) { @@ -170,6 +168,12 @@ void kat::Sect::processSeqFile() { count_path_stream = make_shared(string(outputPrefix.string() + "-counts.cvg").c_str()); } + // Sequence GC counts output stream + shared_ptr gc_count_path_stream = nullptr; + if (outputGCStats) { + gc_count_path_stream = make_shared(string(outputPrefix.string() + "-counts.gc").c_str()); + } + shared_ptr nr_path_stream = nullptr; if (extractNR) { nr_path_stream = make_shared(string(outputPrefix.string() + "-non_repetitive.fa").c_str()); @@ -181,7 +185,7 @@ void kat::Sect::processSeqFile() { } // Average sequence coverage and GC% scores output stream - ofstream cvg_gc_stream(string(outputPrefix.string() + "-stats.csv").c_str()); + ofstream cvg_gc_stream(string(outputPrefix.string() + "-stats.tsv").c_str()); cvg_gc_stream << "seq_name\tmedian\tmean\tgc%\tseq_length\tinvalid_bases\t%_invalid\tnon_zero_bases\t%_non_zero\t%_non_zero_corrected" << endl; // Processes sequences in batches of records to reduce memory requirements @@ -211,10 +215,14 @@ void kat::Sect::processSeqFile() { if (!noCountStats) printCounts(*count_path_stream); + // Output counts for this batch if (not not) requested + if (outputGCStats) + printGCCounts(*gc_count_path_stream); + if (extractNR) printRegions(*nr_path_stream, 1, 1); - if (extractNR) + if (extractR) printRegions(*r_path_stream, 2, maxRepeat); @@ -233,6 +241,7 @@ void kat::Sect::processSeqFile() { // Close output streams if (!noCountStats) count_path_stream->close(); + if (outputGCStats) gc_count_path_stream->close(); if (extractNR) nr_path_stream->close(); if (extractR) r_path_stream->close(); @@ -280,10 +289,13 @@ void kat::Sect::analyseBatchSlice(int th_id) { } void kat::Sect::destroyBatchVars() { - for (uint16_t i = 0; i < counts->size(); i++) { + for (size_t i = 0; i < counts->size(); i++) { counts->at(i)->clear(); + gc_counts->at(i)->clear(); } - counts->clear(); + + counts->clear(); + gc_counts->clear(); medians->clear(); means->clear(); gcs->clear(); @@ -298,6 +310,7 @@ void kat::Sect::destroyBatchVars() { void kat::Sect::createBatchVars(uint16_t batchSize) { counts = make_shared>>>(batchSize); + gc_counts = make_shared>>>(batchSize); medians = make_shared>(batchSize); means = make_shared>(batchSize); gcs = make_shared>(batchSize); @@ -329,6 +342,30 @@ void kat::Sect::printCounts(std::ostream &out) { } } +double kat::Sect::gcCountToPercentage(int16_t count) { + return count == -1 ? -0.1 : (((double)count / (double)this->getMerLen()) * 100.0); +} + +void kat::Sect::printGCCounts(std::ostream &out) { + for (uint32_t i = 0; i < recordsInBatch; i++) { + out << ">" << seqan::toCString(names[i]) << std::fixed << std::setprecision(1) << endl; + + shared_ptr> gcCounts = gc_counts->at(i); + + if (gcCounts != NULL && !gcCounts->empty()) { + out << gcCountToPercentage(gcCounts->at(0)); + + for (size_t j = 1; j < gcCounts->size(); j++) { + out << " " << gcCountToPercentage(gcCounts->at(j)); + } + + out << endl; + } else { + out << "0.0" << endl; + } + } +} + void kat::Sect::printRegions(std::ostream &out, const uint32_t min_count, const uint32_t max_count) { for (uint32_t i = 0; i < recordsInBatch; i++) { @@ -474,6 +511,7 @@ void kat::Sect::processSeq(const size_t index, const uint16_t th_id) { } else { shared_ptr> seqCounts = make_shared>(nbCounts, 0); + shared_ptr> gcCounts = make_shared>(nbCounts, 0); uint64_t sum = 0; @@ -484,17 +522,20 @@ void kat::Sect::processSeq(const size_t index, const uint16_t th_id) { // Jellyfish compacted hash does not support Ns so if we find one set this mer count to 0 if (!validKmer(merstr)) { (*seqCounts)[i] = 0; + (*gcCounts)[i] = -1; nbInvalid++; } else { mer_dna mer(merstr); uint64_t count = JellyfishHelper::getCount(input.hash, mer, input.canonical); sum += count; (*seqCounts)[i] = count; + (*gcCounts)[i] = gcCount(merstr); if (count != 0) nbNonZero++; } } (*counts)[index] = seqCounts; + (*gc_counts)[index] = gcCounts; // Create a copy of the counts, and sort it first, then take median value vector sortedSeqCounts = *seqCounts; @@ -567,15 +608,20 @@ int kat::Sect::main(int argc, char *argv[]) { uint16_t mer_len; uint64_t hash_size; bool no_count_stats; + bool output_gc_stats; bool extract_nr; bool extract_r; uint32_t max_repeat; bool dump_hash; bool verbose; bool help; + + struct winsize w; + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + // Declare the supported options. - po::options_description generic_options(Sect::helpMessage(), 100); + po::options_description generic_options(Sect::helpMessage(), w.ws_col); generic_options.add_options() ("output_prefix,o", po::value(&output_prefix)->default_value("kat-sect"), "Path prefix for files generated by this program.") @@ -597,6 +643,8 @@ int kat::Sect::main(int argc, char *argv[]) { "If kmer counting is required for the input, then use this value as the hash size. If this hash size is not large enough for your dataset then the default behaviour is to double the size of the hash and recount, which will increase runtime and memory usage.") ("no_count_stats,n", po::bool_switch(&no_count_stats)->default_value(false), "Tells SECT not to output count stats. Sometimes when using SECT on read files the output can get very large. When flagged this just outputs summary stats for each sequence.") + ("output_gc_stats,g", po::bool_switch(&output_gc_stats)->default_value(false), + "Tells SECT to output GC counts for each k-mer. Output is a FastA like counts file similar to that produce for the k-mer counts. This can be slow.") ("extract_nr,E", po::bool_switch(&extract_nr)->default_value(false), "Tells SECT extract non-repetitive regions into a separate FastA file.") ("extract_r,F", po::bool_switch(&extract_r)->default_value(false), @@ -614,14 +662,14 @@ int kat::Sect::main(int argc, char *argv[]) { // in config file, but will not be shown to the user. po::options_description hidden_options("Hidden options"); hidden_options.add_options() - ("seq_file,S", po::value(&seq_file), "Path to the sequnce file to analyse for kmer coverage.") - ("counts_files,i", po::value>(&counts_files), "Path(s) to the input files containing kmer counts.") + ("seq_file", po::value(&seq_file), "Path to the sequnce file to analyse for kmer coverage.") + ("counts_files", po::value>(&counts_files), "Path(s) to the input files containing kmer counts.") ; // Positional option for the input bam file po::positional_options_description p; p.add("seq_file", 1); - p.add("counts_files", 100); + p.add("counts_files", -1); // Combine non-positional options @@ -657,6 +705,7 @@ int kat::Sect::main(int argc, char *argv[]) { sect.setMerLen(mer_len); sect.setHashSize(hash_size); sect.setNoCountStats(no_count_stats); + sect.setOutputGCStats(output_gc_stats); sect.setExtractNR(extract_nr); sect.setExtractR(extract_r); sect.setMaxRepeat(max_repeat); diff --git a/src/sect.hpp b/src/sect.hpp index d64aaebb..8bdc4ab5 100644 --- a/src/sect.hpp +++ b/src/sect.hpp @@ -49,12 +49,12 @@ using boost::lexical_cast; #include -#include "inc/matrix/matrix_metadata_extractor.hpp" -#include "inc/matrix/threaded_sparse_matrix.hpp" - -#include "jellyfish_helper.hpp" -#include "input_handler.hpp" +#include +#include +#include +#include using kat::InputHandler; +using kat::ThreadedSparseMatrix; typedef boost::error_info SectErrorInfo; struct SectException: virtual boost::exception, virtual std::exception { }; @@ -76,6 +76,7 @@ namespace kat { bool cvgLogscale; uint16_t threads; bool noCountStats; + bool outputGCStats; bool extractNR; bool extractR; uint32_t maxRepeat; @@ -85,7 +86,6 @@ namespace kat { size_t bucket_size, remaining; // Variables that live for the lifetime of this object - LargeHashArrayPtr hash; shared_ptr contamination_mx; // Stores cumulative base count for each sequence where GC and CVG are binned uint32_t offset; uint16_t recordsInBatch; @@ -95,6 +95,7 @@ namespace kat { seqan::StringSet names; seqan::StringSet seqs; shared_ptr>>> counts; // K-mer counts for each K-mer window in sequence (in same order as seqs and names; built by this class) + shared_ptr>>> gc_counts; // GC counts for each K-mer window in sequence (in same order as seqs and names; built by this class) shared_ptr> medians; // Overall coverage calculated for each sequence from the K-mer windows. shared_ptr> means; // Overall coverage calculated for each sequence from the K-mer windows. shared_ptr> gcs; // GC% for each sequence @@ -161,6 +162,14 @@ namespace kat { this->noCountStats = no_count_stats; } + bool isOutputGCStats() const { + return outputGCStats; + } + + void setOutputGCStats(bool outputGCStats) { + this->outputGCStats = outputGCStats; + } + bool isExtractNR() const { return extractNR; } @@ -255,6 +264,8 @@ namespace kat { void printCounts(std::ostream &out); + void printGCCounts(std::ostream &out); + void printRegions(std::ostream &out, const uint32_t min_count, const uint32_t max_count); void printStatTable(std::ostream &out); @@ -272,6 +283,8 @@ namespace kat { void processSeq(const size_t index, const uint16_t th_id); + double gcCountToPercentage(int16_t count); + static string helpMessage() { return string( "Usage: kat sect [options] ()+\n\n") + diff --git a/tests/.gitignore b/tests/.gitignore index ce7ff29e..619cc21a 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,3 +1,4 @@ +/temp/ /.deps/ /.libs/ /*.log @@ -12,3 +13,7 @@ callgrind.out.* /check_spectrahelper +/libgtest.la +/libgtest_main.la +/check_unit_tests +/compat.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index d5303dfd..70b615f2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,36 +1,55 @@ AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} +EXTRA_DIST = \ + data/EcoliK12.fasta \ + data/ecoli.header.jf27 \ + data/kat.hist \ + data/sect_length_test.fa \ + data/sect_test.fa \ + data/ecoli_r1.1K.fastq \ + data/ecoli_r2.1K.fastq \ + test_comp.sh \ + test_gcp.sh \ + test_hist.sh \ + test_sect.sh + +clean-local: clean-local-check +.PHONY: clean-local-check +clean-local-check: + -rm -rf temp + # additional include paths necessary to compile the C++ library -CPPFLAGS=-DCPLUSPLUS -I$(top_srcdir)/deps/seqan-library-2.0.0/include -I$(top_srcdir)/deps/jellyfish-2.2.0/include -I$(top_srcdir)/src/inc -I$(top_srcdir)/src @AM_CPPFLAGS@ -CXXFLAGS=-g -O0 -Wno-conversion-null -Wno-unused-result -Wno-unused-function -Wno-sign-compare -Wnon-virtual-dtor -std=c++11 @AM_CXXFLAGS@ -LDFLAGS=@AM_LDFLAGS@ -LDADD = $(top_srcdir)/deps/jellyfish-2.2.0/.libs/libjellyfish-k2.0.a \ - @BOOST_UNIT_TEST_FRAMEWORK_LIB@ \ - @AM_LIBS@ +CXXFLAGS=-g -O0 -fwrapv -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wno-sign-compare -std=c++11 @AM_CXXFLAGS@ +CPPFLAGS = -isystem $(top_srcdir)/deps/seqan-library-2.0.0/include \ + -isystem $(top_srcdir)/deps/jellyfish-2.2.0/include \ + -isystem $(top_srcdir)/lib/include \ + -DDATADIR=\"$(srcdir)/data\" \ + @AM_CPPFLAGS@ + +TEST_EXTENSIONS = .sh +SH_LOG_COMPILER = $(SHELL) +AM_SH_LOG_FLAGS = -TESTS_ENVIRONMENT=BOOST_TEST_REPORT_LEVEL=detailed BOOST_TEST_LOG_LEVEL=all +TESTS = check_unit_tests test_hist.sh test_gcp.sh test_sect.sh test_comp.sh -TESTS = check_jellyfish check_spectrahelper check_comp check_sect +check_PROGRAMS = check_unit_tests + +noinst_HEADERS = gtest/gtest.h \ + gtest/src/gtest-all.cc \ + gtest/src/gtest_main.cc + -check_PROGRAMS = check_jellyfish check_spectrahelper check_comp check_sect +check_unit_tests_SOURCES = check_jellyfish.cc \ + check_spectra_helper.cc \ + check_compcounters.cc \ + check_main.cc -check_jellyfish_SOURCES = ../src/jellyfish_helper.cc \ - check_jellyfish.cc +check_unit_tests_LDFLAGS = @AM_LDFLAGS@ -check_spectrahelper_SOURCES = check_spectra_helper.cc - -check_comp_SOURCES = ../src/inc/gnuplot/gnuplot_i.cc \ - ../src/inc/matrix/matrix_metadata_extractor.cc \ - ../src/input_handler.cc \ - ../src/jellyfish_helper.cc \ - ../src/plot_density.cc \ - ../src/plot_spectra_cn.cc \ - ../src/comp.cc \ - check_comp.cc +check_unit_tests_LDADD = ../deps/jellyfish-2.2.0/libkat_jellyfish-2.0.la \ + ../lib/libkat-2.1.la \ + libgtest.la \ + @AM_LIBS@ -check_sect_SOURCES = ../src/input_handler.cc \ - ../src/jellyfish_helper.cc \ - ../src/sect.cc \ - check_sect.cc - +include gtest.mk diff --git a/tests/check_comp.cc b/tests/check_compcounters.cc similarity index 50% rename from tests/check_comp.cc rename to tests/check_compcounters.cc index 1b343d26..0ea1bbe1 100644 --- a/tests/check_comp.cc +++ b/tests/check_compcounters.cc @@ -15,50 +15,23 @@ // along with KAT. If not, see . // ******************************************************************* -#define BOOST_TEST_MAIN -#define BOOST_TEST_DYN_LINK -#define BOOST_TEST_MODULE KAT_COMP -#define BOOST_TEST_LOG_LEVEL all -#include -#include +#include -#include -using std::thread; +#include +using std::shared_ptr; +using std::make_shared; -#include <../src/comp.hpp> -using kat::Comp; +#include using kat::ThreadedCompCounters; using kat::CompCounters; - -BOOST_AUTO_TEST_SUITE( KAT_COMP ) - -/*BOOST_AUTO_TEST_CASE( COMP1 ) -{ - Comp comp("data/ecoli.header.jf27", "data/ecoli.header.2.jf27"); - comp.setOutputPrefix("temp/comp_test"); - comp.execute(); - SM64 results = comp.getMainMatrix(); - BOOST_CHECK( true ); -}*/ +TEST( comp_counters, threaded_counters ) { -void addTcc(ThreadedCompCounters& tcc) { - shared_ptr cc = make_shared(); - - cc->updateHash1Counters(10, 2); - cc->updateHash1Counters(20, 4); - cc->updateHash2Counters(0, 3); - - tcc.add(cc); -} - -BOOST_AUTO_TEST_CASE( THREADED_COUNTERS ) -{ const uint16_t threads = 2; - ThreadedCompCounters tcc("path1", "path2", "path3"); + ThreadedCompCounters tcc("path1", "path2", "path3", 1001); shared_ptr cc1 = make_shared(); @@ -78,14 +51,12 @@ BOOST_AUTO_TEST_CASE( THREADED_COUNTERS ) tcc.merge(); - BOOST_CHECK( tcc.size() == 2 ); - BOOST_CHECK( tcc.getFinalMatrix().hash1_path == path("path1")); - BOOST_CHECK( tcc.getThreadedMatrixAt(0).hash1_path == path("path1")); - BOOST_CHECK( tcc.getFinalMatrix().hash1_distinct == 4); - BOOST_CHECK( tcc.getThreadedMatrixAt(0).hash1_distinct == 2); - BOOST_CHECK( tcc.getThreadedMatrixAt(1).hash1_distinct == 2); - BOOST_CHECK( tcc.getFinalMatrix().hash1_total == 60); + EXPECT_EQ( tcc.size(), 2 ); + EXPECT_EQ( tcc.getFinalMatrix().hash1_path, path("path1")); + EXPECT_EQ( tcc.getThreadedMatrixAt(0).hash1_path, path("path1")); + EXPECT_EQ( tcc.getFinalMatrix().hash1_distinct, 4); + EXPECT_EQ( tcc.getThreadedMatrixAt(0).hash1_distinct, 2); + EXPECT_EQ( tcc.getThreadedMatrixAt(1).hash1_distinct, 2); + EXPECT_EQ( tcc.getFinalMatrix().hash1_total, 60); } - -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file diff --git a/tests/check_jellyfish.cc b/tests/check_jellyfish.cc index b3237753..bc2636a1 100644 --- a/tests/check_jellyfish.cc +++ b/tests/check_jellyfish.cc @@ -15,12 +15,8 @@ // along with KAT. If not, see . // ******************************************************************* -#define BOOST_TEST_MAIN -#define BOOST_TEST_DYN_LINK -#define BOOST_TEST_MODULE KAT_JELLYFISH -#define BOOST_TEST_LOG_LEVEL all -#include -#include +#include + #include using boost::filesystem::remove; @@ -31,28 +27,15 @@ using std::chrono::duration_cast; template inline double as_seconds(DtnType dtn) { return duration_cast>(dtn).count(); } -#include <../src/jellyfish_helper.hpp> +#include using kat::JellyfishHelper; using kat::HashLoader; -BOOST_AUTO_TEST_SUITE(KAT_JELLYFISH) - -BOOST_AUTO_TEST_CASE(TEST_JFCMD) { - - string cmd = JellyfishHelper::createJellyfishCountCmd("input.fa", "output.jf27", 27, 100000, 4, true); - - const string expected = "jellyfish count -C -m 27 -s 100000 -t 4 -o output.jf27 input.fa "; - - //cout << cmd << endl; - //cout << expected << endl; - - BOOST_CHECK_EQUAL( cmd, expected ); -} - +namespace kat { -BOOST_AUTO_TEST_CASE(TEST_HEADER) { +TEST(jellyfish, header) { - file_header header = *(JellyfishHelper::loadHashHeader("data/ecoli.header.jf27")); + file_header header = *(JellyfishHelper::loadHashHeader(DATADIR "/ecoli.header.jf27")); unsigned int klen = header.key_len(); unsigned int vlen = header.val_len(); unsigned int clen = header.counter_len(); @@ -62,22 +45,22 @@ BOOST_AUTO_TEST_CASE(TEST_HEADER) { size_t s = header.size(); string format = header.format(); - BOOST_CHECK_EQUAL( klen, 54 ); - BOOST_CHECK_EQUAL( vlen, 7 ); - BOOST_CHECK_EQUAL( clen, 4 ); - BOOST_CHECK_EQUAL( mr, 126 ); - BOOST_CHECK_EQUAL( offset, 1368 ); - BOOST_CHECK_EQUAL( hashes, 0 ); - BOOST_CHECK_EQUAL( s, 131072 ); - BOOST_CHECK_EQUAL( format, "binary/sorted" ); + EXPECT_EQ( klen, 54 ); + EXPECT_EQ( vlen, 7 ); + EXPECT_EQ( clen, 4 ); + EXPECT_EQ( mr, 126 ); + EXPECT_EQ( offset, 1368 ); + EXPECT_EQ( hashes, 0 ); + EXPECT_EQ( s, 131072 ); + EXPECT_EQ( format, "binary/sorted" ); } -BOOST_AUTO_TEST_CASE(TEST_QUERY) { +TEST(jellyfish, query) { HashLoader hl; - LargeHashArrayPtr hash = hl.loadHash("data/ecoli.header.jf27", false); + LargeHashArrayPtr hash = hl.loadHash(DATADIR "/ecoli.header.jf27", false); mer_dna kStart("AGCTTTTCATTCTGACTGCAACGGGCA"); mer_dna kEarly("GCATAGCGCACAGACAGATAAAAATTA"); @@ -94,21 +77,21 @@ BOOST_AUTO_TEST_CASE(TEST_QUERY) { uint64_t countMiddleCan = JellyfishHelper::getCount(hash, kMiddle, true); uint64_t countEndCan = JellyfishHelper::getCount(hash, kEnd, true); - BOOST_CHECK_EQUAL( countStart, 3 ); - BOOST_CHECK_EQUAL( countEarly, 1 ); - BOOST_CHECK_EQUAL( countMiddle, 1 ); - BOOST_CHECK_EQUAL( countEnd, 1 ); - - BOOST_CHECK_EQUAL( countStartCan, 3 ); - BOOST_CHECK_EQUAL( countEarlyCan, 1 ); - BOOST_CHECK_EQUAL( countMiddleCan, 0 ); - BOOST_CHECK_EQUAL( countEndCan, 0 ); + EXPECT_EQ( countStart, 3 ); + EXPECT_EQ( countEarly, 1 ); + EXPECT_EQ( countMiddle, 1 ); + EXPECT_EQ( countEnd, 1 ); + + EXPECT_EQ( countStartCan, 3 ); + EXPECT_EQ( countEarlyCan, 1 ); + EXPECT_EQ( countMiddleCan, 0 ); + EXPECT_EQ( countEndCan, 0 ); } -BOOST_AUTO_TEST_CASE(TEST_SLICE) { +TEST(jellyfish, slice) { HashLoader hl; - LargeHashArrayPtr hash = hl.loadHash("data/ecoli.header.jf27", false); + LargeHashArrayPtr hash = hl.loadHash(DATADIR "/ecoli.header.jf27", false); LargeHashArray::region_iterator r1 = hash->region_slice(0,2); LargeHashArray::region_iterator r2 = hash->region_slice(1,2); @@ -127,16 +110,16 @@ BOOST_AUTO_TEST_CASE(TEST_SLICE) { size_t nb_records = r1Count + r2Count; - BOOST_CHECK_EQUAL( nb_records, 1889 ); + EXPECT_EQ( nb_records, 1889 ); } -BOOST_AUTO_TEST_CASE(TEST_COUNT) { +TEST(jellyfish, count) { cout << "Start" << endl; HashCounter hc(10000000, 27 * 2, 7, 1); cout << "HC created" << endl; - LargeHashArrayPtr hash = JellyfishHelper::countSeqFile("data/EcoliK12.fasta", hc, true, 1); + LargeHashArrayPtr hash = JellyfishHelper::countSeqFile(DATADIR "/EcoliK12.fasta", hc, true, 1); cout << "Counted" << endl; @@ -146,7 +129,7 @@ BOOST_AUTO_TEST_CASE(TEST_COUNT) { cout << "Kmer found" << endl; - BOOST_CHECK_EQUAL( count, 1 ); + EXPECT_EQ( count, 1 ); } /*BOOST_AUTO_TEST_CASE(TEST_TIME) { @@ -170,28 +153,29 @@ BOOST_AUTO_TEST_CASE(TEST_COUNT) { remove("temp.jf"); }*/ -BOOST_AUTO_TEST_CASE(TEST_DUMP) { +TEST(jellyfish, dump) { HashLoader hlBefore; - LargeHashArrayPtr hashBefore = hlBefore.loadHash("data/ecoli.header.jf27", false); + LargeHashArrayPtr hashBefore = hlBefore.loadHash(DATADIR "/ecoli.header.jf27", false); file_header header = hlBefore.getHeader(); mer_dna kStart("AGCTTTTCATTCTGACTGCAACGGGCA"); uint64_t countBefore = JellyfishHelper::getCount(hashBefore, kStart, false); - BOOST_CHECK_EQUAL( countBefore, 3 ); + EXPECT_EQ( countBefore, 3 ); JellyfishHelper::dumpHash(hashBefore, header, 2, "temp_dump.jf"); - BOOST_CHECK( boost::filesystem::exists("temp_dump.jf") ); + EXPECT_EQ( boost::filesystem::exists("temp_dump.jf"), true ); HashLoader hlAfter; LargeHashArrayPtr hashAfter = hlAfter.loadHash("temp_dump.jf", false); uint64_t countAfter = JellyfishHelper::getCount(hashAfter, kStart, false); - BOOST_CHECK_EQUAL( countAfter, 3 ); + EXPECT_EQ( countAfter, 3 ); remove("temp_dump.jf"); } -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file + +} diff --git a/tests/check_main.cc b/tests/check_main.cc new file mode 100644 index 00000000..e47b74e0 --- /dev/null +++ b/tests/check_main.cc @@ -0,0 +1,30 @@ +// ******************************************************************** +// This file is part of KAT - the K-mer Analysis Toolkit. +// +// KAT is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// KAT is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with KAT. If not, see . +// ******************************************************************* + +#include + +#include +using kat::KatFS; + +KatFS kat::katFileSystem; + +int main(int argc, char *argv[]) { + //kat::katFileSystem = KatFS(argv[0]); + + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} diff --git a/tests/check_sect.cc b/tests/check_sect.cc deleted file mode 100644 index 14e4e05e..00000000 --- a/tests/check_sect.cc +++ /dev/null @@ -1,70 +0,0 @@ -// ******************************************************************** -// This file is part of KAT - the K-mer Analysis Toolkit. -// -// KAT is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// KAT is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with KAT. If not, see . -// ******************************************************************* - -#define BOOST_TEST_MAIN -#define BOOST_TEST_DYN_LINK -#define BOOST_TEST_MODULE KAT_SECT -#define BOOST_TEST_LOG_LEVEL all -#include -#include - - - -#include "../src/sect.hpp" -using kat::Sect; - -BOOST_AUTO_TEST_SUITE( KAT_SECT ) - -/*BOOST_AUTO_TEST_CASE( quick ) -{ - vector inputs; - inputs.push_back("data/sect_test.fa.jf31_0"); - - Sect sect(inputs, "data/sect_test.fa"); - sect.setOutputPrefix("temp/sect_quick"); - sect.setCanonical(true); - - sect.execute(); - - BOOST_CHECK( true ); - - // Remove any generated files - remove("temp/sect_quick_counts.cvg"); - remove("temp/sect_quick_contamination.mx"); - remove("temp/sect_quick_stats.csv"); -}*/ - -BOOST_AUTO_TEST_CASE( length_check ) -{ - vector inputs; - inputs.push_back("data/ecoli.header.jf27"); - - Sect sect(inputs, "data/sect_length_test.fa"); - sect.setOutputPrefix("temp/sect_length"); - sect.setCanonical(true); - - sect.execute(); - - BOOST_CHECK( true ); - - // Remove any generated files - remove("temp/sect_length_counts.cvg"); - remove("temp/sect_length_contamination.mx"); - remove("temp/sect_length_stats.csv"); -} - -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file diff --git a/tests/check_spectra_helper.cc b/tests/check_spectra_helper.cc index 6c20a274..f644e2eb 100644 --- a/tests/check_spectra_helper.cc +++ b/tests/check_spectra_helper.cc @@ -15,51 +15,46 @@ // along with KAT. If not, see . // ******************************************************************* -#define BOOST_TEST_MAIN -#define BOOST_TEST_DYN_LINK -#define BOOST_TEST_MODULE KAT_JELLYFISH -#define BOOST_TEST_LOG_LEVEL all +#include #include using std::cout; using std::endl; -#include -#include #include using boost::filesystem::remove; -#include <../src/inc/spectra_helper.hpp> +#include using kat::SpectraHelper; -BOOST_AUTO_TEST_SUITE(KAT_SPECTRA_HELPER) +namespace kat { -BOOST_AUTO_TEST_CASE(TEST_LOAD_HIST) { +TEST(spectra_helper, load_hist) { vector hist; - SpectraHelper::loadHist("data/kat.hist", hist); + SpectraHelper::loadHist(DATADIR "/kat.hist", hist); Pos p1(1, 54015667); Pos p10(10, 18649); Pos p10000(10000, 0); Pos last(10001, 358); - BOOST_CHECK_EQUAL( hist.size(), 10001 ); - BOOST_CHECK_EQUAL( p1.first, hist[0].first ); - BOOST_CHECK_EQUAL( p1.second, hist[0].second ); - BOOST_CHECK_EQUAL( p10.second, hist[9].second ); - BOOST_CHECK_EQUAL( last.first, hist[10000].first ); - BOOST_CHECK_EQUAL( last.second, hist[10000].second ); + EXPECT_EQ( hist.size(), 10001 ); + EXPECT_EQ( p1.first, hist[0].first ); + EXPECT_EQ( p1.second, hist[0].second ); + EXPECT_EQ( p10.second, hist[9].second ); + EXPECT_EQ( last.first, hist[10000].first ); + EXPECT_EQ( last.second, hist[10000].second ); } -BOOST_AUTO_TEST_CASE(TEST_PEAK) { +TEST(spectra_helper, peak) { vector hist; - SpectraHelper::loadHist("data/kat.hist", hist); + SpectraHelper::loadHist(DATADIR "/kat.hist", hist); Pos p = SpectraHelper::findPeak(hist); - BOOST_CHECK_EQUAL( 229, p.first ); - BOOST_CHECK_EQUAL( 9762, p.second ); + EXPECT_EQ( 229, p.first ); + EXPECT_EQ( 9762, p.second ); } -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file +} diff --git a/tests/compat.sh.in b/tests/compat.sh.in new file mode 100644 index 00000000..46750f86 --- /dev/null +++ b/tests/compat.sh.in @@ -0,0 +1,6 @@ +KAT="../src/kat" +SRCDIR=@abs_top_srcdir@ +BUILDDIR=@abs_top_builddir@ +data=${SRCDIR}/tests/data + +set -e diff --git a/tests/data/ecoli_r1.1K.fastq b/tests/data/ecoli_r1.1K.fastq new file mode 100644 index 00000000..109e29be --- /dev/null +++ b/tests/data/ecoli_r1.1K.fastq @@ -0,0 +1,4000 @@ +@DRR015910.1 HWI-ST1182:184:D1KRDACXX:3:1101:2133:1984/1 +NTGTAAAGTCTGGCGTCAGTTGTTACGGGAAGGTATCAGAGTGGCCAGATGCACTGTGGCACGTCTCATGGCGGTTATGGGACTTGCCGGTGTTCTCCGG ++ +#1=DDFFFHHHHGJJJIJJJJIJJJJJJJIJJJFHIJJJJJGIJJJJJIJJJJJJJIJIJHHHHFFFFFFEEDDB?BDDCDCDDDCDDDD>BBDCEDDBD +@DRR015910.2 HWI-ST1182:184:D1KRDACXX:3:1101:2480:1979/1 +NAACGGTGGTGAGCACGCTGACAACAACGTTGATATCCAGGAATTCATGATTCAGCCGGTTGGCGCGAAAACTGTGAAAGAAGCCATCCGCATGGGTTCT ++ +#1=DFFBDHFHHHJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJHHHFFEDDDDDDDDDDDCEEDDDDDDDDDDDDDDDDDDCDDD +@DRR015910.3 HWI-ST1182:184:D1KRDACXX:3:1101:2715:1998/1 +NTTTATCAACGATTACTGGCGGCTGGCGATCAAGCATCAGGCGTATGGCGTCCATTTGGGGCAGGAAGATTTGCAAGCCACCGATCTCAATGCCATCCGC ++ +#1=DDFFFGHHHHJIJJJJJJJJIIJBF?FGGI@EFGHGHHEHBDDFFECDDDBDDD?BBACCDDA@>><@CCDD@BBDDDDCCCDCCDDBB +@DRR015910.4 HWI-ST1182:184:D1KRDACXX:3:1101:4247:1972/1 +NCCTGCACCGTGCGACCTGCGGTCAGGTTTACCAGCACCGCACGTCCGATGGAGTAGAGGCTGATGCCGTCATGCTCGTAAAAATGACGGTCTTCTGTCG ++ +#4=DFFFFHHHHGJIJJJJJJJIJJJIDHIJJIJJIIJJJJJJHHHFFBDDDCD@CDADDDDDDDDDDDDDDDDCACDDDDDDDDDDDDD<@DDDACEDD +@DRR015910.5 HWI-ST1182:184:D1KRDACXX:3:1101:4660:1993/1 +NGCGCATGATCCGGTAAACACGTTTGGCATTGATCGCAGGCATACCATCAAGTTCGGCCTGTCTGCGAAGCAGCGCCCATACCCGACGATAACCATACGT ++ +#4BDFFFFHHHHHJHJJJJJJJIJJJJJIJJIJJJIJJJJJJJJJJJJJJJJIJJJJHHHFFFFFEDBDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDC +@DRR015910.6 HWI-ST1182:184:D1KRDACXX:3:1101:5948:1979/1 +NTACCACACCCGTCACAGCGCCAGAACGCCCAGTACAGCCAGATGACAGGCATAGAACGTCGGGAAAAAGTCTCCGGGCCAGAAACGGGGTAATGATTTT ++ +#1=DDFFFHHHHHIIIGJIJJJGIJJIJJJJJJGHJJIIJIJIJJIJJJHHHHHFFFFFCDDDDBDDDDD:ACDDBDDDDDDDDDDDDDD09CDDCDEED +@DRR015910.7 HWI-ST1182:184:D1KRDACXX:3:1101:7172:1974/1 +NCCTTACGCAGTTGCATAACTTCAGATTCCAGCTCAGCCACTGTGCGGGAGCCTGGTGTATTGAGCCCTTTTCTTGCAGCGGTAACCCATTGTCCTAAAG ++ +#1?DFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJGIJIJJJJJJIJIJJJJEHEHHHFFFFFDEEEEEDDDDDDDDDBDDDDDDDDDEEDDDDDD +@DRR015910.8 HWI-ST1182:184:D1KRDACXX:3:1101:7048:1989/1 +NCACCCACGCCGACTATTTCTACGGCACCATTCCCTGCACCCGCAAAATGACCGACGCAGAAATCAACGGCGAATATGAGTGGGAAACCGGTAACGTCAT ++ +#1=DDFFFHHHHHJJJJJJJJJJJJIIJJJJJJJJJJJGIJJJJHHFFFFFFEDDDDDDDDDDDDDDDDDDDDDDDEEEDCCDDDDDDDDDDDDDDDDDD +@DRR015910.9 HWI-ST1182:184:D1KRDACXX:3:1101:7445:1986/1 +NGGGAATATCTCCCCGGCAGCCTTCAGGGAAAAATATCATCAGATGGCTGCTTAAAAAAAGAACAAATGGTAGTGTCCGCTATTGCCAGTACACCTCATC ++ +#4=DDFFFHHHHHJJJIIJJJJJJJJJJJIIJJJIIJEGGIJJJJIJIJJJJJJJJJJHDDDEDDDDDDD>CDCDDEDDDDDDDDDCDDDDDDDDDDDDD +@DRR015910.10 HWI-ST1182:184:D1KRDACXX:3:1101:7336:1995/1 +NTAATACGGTATCAATGCTCGACTGGTTTAAGCAGCAAAAAATAAAAACTGATTTAGTTTCGTTGCAGGAAAATGAAGATCATGAAGTGGTCGCCATTGA ++ +#1=DFFFFHFHHHJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHJJJHHHHFFFFDDEEEDDDDDDDDDDDDDCDDDDDDDDDDDD +@DRR015910.11 HWI-ST1182:184:D1KRDACXX:3:1101:7522:2000/1 +NTGAATAAGATAATTAAGTGATATATTCTCCAGCAAAATAACTTTGCTTATTAATTCTCCAGAGTCATATATGTATAATGCATTTCCATCTTTATACCAT ++ +#1=DFFFFHHHHHJJJJJIHIJJJJJJIJJIJJJJJJJIJIJJJJJIJJJJJJJJJJIJJJJJJHIHIJJJJJHIFHIIJIIJJJJIJJHHHHHHFFDDF +@DRR015910.12 HWI-ST1182:184:D1KRDACXX:3:1101:7983:1988/1 +NTGCTGCACTGCGGCAAAAGTTTCCGCGTTTACAGTAACCCGGATTTCATTGGCGTGCAGCTTGGCGGCGCGGTGAAAAACGTCATTGCCATTGGTGCGG ++ +#1=DFFFFHHHHHJJJJJJJIIJJJJJJGJJIIJJIJJJJJJIIJHHHHHHHFFFBDDDDDDDDDDDDDDDDD;BBDDDDDDDDDDEDDDDDDDD@?CDD +@DRR015910.13 HWI-ST1182:184:D1KRDACXX:3:1101:8406:1980/1 +NTCCGTCCCTGCTGGTTGCGGTGATGTTCAGCCTCATTATTTACATCGAGAACAGGATGTACCGCACGCCGCGTAACCTCAAAAAACTGAACGTTATTGA ++ +#1=DDDDDFHFFHIJHIGIIF?GGHGIJIDHIIII>DIHIJIJGGGHIHIGIIGGGIIGDGIBEFFEDDD@DBDDB@DDDC@CC?BDDC@CC?89A8CDD +@DRR015910.14 HWI-ST1182:184:D1KRDACXX:3:1101:9103:1980/1 +NGTAAGCGCTGCCCGGCAGGCATTTGATGATATTTGCGAGGGTCTTACACCGGCTGATCTTGAGGGCGAGGCCCGTTATTCCCGTCCGCGGGACAGGCAG ++ +#1=DDFFFHHHHHJJJJJJJJJJJJJJJIIJIJJJJJJJJJJ;DHHHHHHHFDDDDBDDEDDDDDDDDDDDDDDDDDBDDDDCDBDDDDDDD@A@CCBDD&9090@@BDDDCDDDBDDBDDDDCACC +@DRR015910.24 HWI-ST1182:184:D1KRDACXX:3:1101:19733:1998/1 +NCAATCATCGCTTCACTGGCTCCCTTTTGTGGGCCAAAGATGCGCGATGCGCCGTTATCGCCCACCAGCGGATTGGTGACATCACAAGCGACGCGAATGA ++ +#1=DFFFFHHHHHJJJJJJJJJJJJJJJIHIJIJJJJJHGGGIJIIJIIIJJHFFDDDEDDDDDDDDDDDDDDDDDCBDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.25 HWI-ST1182:184:D1KRDACXX:3:1101:21166:1981/1 +NTATTTAAAGCCCATGAAGAAGAAGACAAAGAGCAGTGCAGAGCGCTGAATAAGAATTTCCAGCCCAAACCGTGAAGTTAATTCATCAATAACCAGACCC ++ +#4=DDFFFHHHHHJJJIJJJJJJJJJIJJIJJJJIJHIIJHIJFIIJJJJJJJJIJJJJJIJIJJJFHHHFFAACBEDDEEEEEDEEDDDEDDDDDDDDD +@DRR015910.26 HWI-ST1182:184:D1KRDACXX:3:1101:1365:2156/1 +CGTCACTTCAACGCTGATGCTGCTGTTAACGCTCTCCTACATTTTACTGGCAGGTACGGCACTGGTTGGCGGCGTACAGCCTGCCGATCCGATCACCGTT ++ +B@BFFFFFHHHHHJJJIJJJJJJJJJJIIJJJJIHIJJIIIJJJJFHIJJJJJJ=@DHGBEHBBD;BADCDD?;59@BBA?B@9CCB@@:@A:28<5559559<23>9(8CC +@DRR015910.28 HWI-ST1182:184:D1KRDACXX:3:1101:1645:2023/1 +NCCATGAGACGTGCCACAGTGCATCTGGCCACTCTGATACCTTCCCGTAACAACTGACGCCAGACTTTACACCGTATACCTTGTGATTTTCATCGTATAC ++ +#1=DDFFFHHHHHIJIJJIJJIGIJIJIJJJJIJJGHGIIIGIJJJJGIJJJJIJJJJJJJJHGHFFFFFFEEDC=BCFDCDDDD@CDEDEDEDCBBDDE +@DRR015910.29 HWI-ST1182:184:D1KRDACXX:3:1101:1729:2081/1 +CCGGTGTTTTCTCTCTCTGCATGGTCGATTCTTATACCGCAACAGGCTGTTTTTTATACTTGCACCGATTCCCGGGCACACTTAGCCTGTGTCAGGCCGG ++ +B@CFDDDDHHHHHJJJJJJJJJJJHIJHIIIJJJJIJIJJJJJJJJJJJHIJJJJHHHHHHFFFFFDCDDDEDDDBBDDDDDDDDDDDDDDDDDDCDDDD +@DRR015910.30 HWI-ST1182:184:D1KRDACXX:3:1101:1709:2147/1 +TTCTTATGTTACTCACTCTGGTGTTTTCGAGTGAGGTGTTAGCGAAGACGCACACAACAACAGCGAGTCAAAAGTCCCACTTAACTAAAGCTAGTAATAA ++ +CCCFFFFFHHHHHJJJJJJJJFHHIJJJJIJHIIIJFGIIIJJJJJJJJJJJJIJJHHGHFFFFDDDBDDDDDDDCDDDDDDDDDDDDDDDDDDDEEEED +@DRR015910.31 HWI-ST1182:184:D1KRDACXX:3:1101:1557:2220/1 +AATACGCACGGACCATGCGCCGCTGGATTTCACAAAATAATATCAGGCTCCCTCGTGGAGCCTTTTTTATATCTGCCTTATTTTTCTTCAACGCTGTATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJHIJJJIJJJJJJJJJJJJJJJHHHHFFFFCDDDDDDDDDDDDDDDEEEEDDDDDDEEEDDDDDDDDDDDDDDEE +@DRR015910.32 HWI-ST1182:184:D1KRDACXX:3:1101:1846:2019/1 +NTGGAAGAGGGCTGCGACCGAATCGACGCCAGCCTCGCGGGAATGGGCGCGGGCGCAGGTAACGCACCGCTGGAAGTGTTTATTGCCGCCGCGGATAAAC ++ +#4=DDFFFHHHHHJIIJJJIIJJJJJIIIIJJGIIJHHFDDBDDDDDDDDDDDFHFGHIIJGIHIJJIGI7@EHFFFFDDEEEDBDDDDDDDDDD@ABCDDCBDDDBDBBBCDDDDDCDDA +@DRR015910.46 HWI-ST1182:184:D1KRDACXX:3:1101:2867:2060/1 +GAACGCGAAAGCTGCCTGACATCCCCATCATTGAGGAAAACGAATGAACGCTAAGATAATTGCCTCGCTGGCCTTCACCAGCATGTTCAGCCTCAGCACC ++ +CCCFFFFFGHHHHJJJJJJJIJJJJJJJJIJJJHIJJJJIGGIJJJJJIJIGHHFFFFFFFCEEEEDDDDDDDDDCDDDDDDDDDDEDEDDDDDDDDDDD +@DRR015910.47 HWI-ST1182:184:D1KRDACXX:3:1101:3174:2053/1 +CTGTAGATCCGCAACTCGTCATCCAGCGATATTCGTATCGATACCGGCTGACCACACAGCGCTTCGGGAACGCTGTAACGATTACCACCAACCTCGATAT ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJIJJJJJIIJJJJIJJJIJJJJHHHHFFFFDEDDDDDDDDDDDDDDDDDACDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.48 HWI-ST1182:184:D1KRDACXX:3:1101:3154:2221/1 +TTCCGTTCCTCTCCTGTTTATGGCTTTTCCGGGCGTCCCCCTGGCGGGGCGGGCTGTCGTGAACGGAGCCAGCGGAGCTGTCTCCGCCCTGGCCGGCCTT ++ +???DDDD>DADDB@E>EE:FF<<3;3ACCF)1)??8:??=:'(6=;A?059&)))-<>((0(+:<-(&&29(2&50&5((++++(9;<>;81(+&&&)0( +@DRR015910.49 HWI-ST1182:184:D1KRDACXX:3:1101:3258:2016/1 +NTTCTCCATTTCTGAGGTGCGCCATGCATAATGTAAATAATACTCAAGCGCCAACATTCTTATATAAGGCAACTTCACCATCATCAACAGAATACAGCGA ++ +#4=DFFFFHHHHHJJJJIJJJJJJJJJJJJJJJIIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHHHHHFFFDEEEEEEEDDDDDDDDDDDDDDDDD +@DRR015910.50 HWI-ST1182:184:D1KRDACXX:3:1101:3399:2159/1 +AAACCAGCCTGGGCACATTGATCAAATAAAGCAGACCAACGCGGGCGCGGTTTATCGCCTGATTGATCAGCTTGGTCCAGTCTCGCGTATCGATCTTTCC ++ +CCCFFFFFGHHHHJJJJJJJJJJJJJJJJJIIJIJJGIJJJJJIJHDDDDDDDDDDDDDDDDDDDDEDEDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDD +@DRR015910.51 HWI-ST1182:184:D1KRDACXX:3:1101:3485:2195/1 +CTGATCGAGCTGACCGAATCGCTGTTCCGTACTCTGGCACAGGATATTCTCGGTAAGACGGAAGTGACCTACGGCGACGTGACGCTGGACTTCGGCAAAC ++ +@@@?=AB;?FF?ABA>@A:?B85995?BB?9&)08(+:(<5&))28 +@DRR015910.52 HWI-ST1182:184:D1KRDACXX:3:1101:3461:2218/1 +ATTTCACGACGAACCTGAATCAGCTTGCGCGCGTGGGCGGAATCGACCCACTGATTGGTCGTGAGAAGGAGCTGGAGCGTGCTATTCAGGTTCTCTGCCG ++ +@@@FDBDFGF@HHIFD?>==:CAA<9::ACC:&0&)5<+:( +@DRR015910.56 HWI-ST1182:184:D1KRDACXX:3:1101:3863:2140/1 +GTCTATCGCCCGTGGGGCAAATATGACTCTATCGACGCGGGCGACCGCTACCAGGTGAAACGCATCACCGTGAAACCGGGCGAAGGCTTGTCGGTACAGA ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJJJJIJJJJFDDBDDDDDDDDDDD@CDDDDDDDDDDDDDBDDDDCDDDDDDDDDDBDDDDDDDBDDDED +@DRR015910.57 HWI-ST1182:184:D1KRDACXX:3:1101:3823:2165/1 +GATAAAAGGTACTCCGGGGATAACAGGCTGATACCGCCCAAGAGTTCATATCGACGGCGGTGTTTGGCACCTCGATGTCGGCTCATCACATCCTGGGGCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJIJJJJJJJJIJJJGHIJJJHHHHFFDDDD@B,,(+:3>AA>>A>>A:4+4(>:3+44>A4>>5(2>00)9244>(4( +@DRR015910.72 HWI-ST1182:184:D1KRDACXX:3:1101:4755:2135/1 +CCACATAGACGAAGCCCTGCCATGTGCTGACGTAAGTAAAATCAGCCACCCACAGCTGGTCAGGTCGTTCTGCCACGAACTGACGGTTTACGCGGTCGCC ++ +CCCFFFFFHHHHHIJJJJJJJJJJIIJJJJJJIGIIIIJJIJJJIIJJIJJJJJJJJJJIHHHHHHFFDDDEEEDCDDDDDDDDDD@BDDDDDDDDDDDD +@DRR015910.73 HWI-ST1182:184:D1KRDACXX:3:1101:5085:2004/1 +NCACTGCTCTGGCAGCATGAGACCAGACATGCGTACAACGCGCAGGGGCTGGCGAACCGCTGTATACCGGACAGCCTGCCCGCCGTGGAATGGCTGACCT ++ +#1=DFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIHJJIJJJJJJIJJHHFFDDDDDDDDCDDDDDEEDDDBDD???AA?BDB@B909@CBCB??CC +@DRR015910.74 HWI-ST1182:184:D1KRDACXX:3:1101:5024:2127/1 +GCAAACTTTTGAGCCGCTTAAAAGCCAGTTCAATTTGCCATCGCAGACGGTAACAATCAGCCACTTGCTCTGCTGAATATTCATCTTCCGGTAATGATGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJIIJJJJJJJHHHHFFFFFFEEEEEEDDDEEFEEEEDDEDDDDDDEDDDDE +@DRR015910.75 HWI-ST1182:184:D1KRDACXX:3:1101:5182:2152/1 +TGATACCGGCGCTCTGCTCTCCCTGGGCAGGGAAATGTTCCGCCTCGAAATTCTGGAGGACATTGCCCGGGATAAAGTCAGAACTCTCCATTTTGTGGAT ++ +@@CFFFFFHHHHDIJJJIGIJIIHIJIGGIIJJIIJGHIIIIDHBEE=CEFFEEECEEDDDDDDDDDDDDD9@DDCDEDDDCDDDCDDDCCDDDD@BB(0&09@@-)52((2 +@DRR015910.90 HWI-ST1182:184:D1KRDACXX:3:1101:5762:2054/1 +ATAGTGATCCACACCCAACGCCTGAAATCAGATCCAGGGGGTAATCTGCTCTCCTGATTCAGGAGAGCTTATGGTCACTTTTGAGACAGTTATGGAAATT ++ +B@@DADDEFFHHHJFHJIIJJIIIGJJIIJIIIIIEHHJJG;AGIIJIIGGFHHGHHFFFEFFCA=?BCDDDCC:>CCDDDDCBBBC?C>CCDDCCCCAC +@DRR015910.91 HWI-ST1182:184:D1KRDACXX:3:1101:5915:2189/1 +TGGTTCACCTGATAATGCTGCATGCGAAGGCTTTTTCGGCAGACTGAAAACGGAAATGTATTATGGGCGTAAATGGTCGGGCATCACGCCAGAAAAGTTC ++ +BBCDDFFFHHHHHJJJJJJJIJIJGJJJJJIJJJIIJJJIIJIJJJIGGIJJJIIGHH?CEEFFFFFEDDDDDEEDDDDDDDDDDDDDDDDDDDDDDACD +@DRR015910.92 HWI-ST1182:184:D1KRDACXX:3:1101:6160:2090/1 +CAGTAAGTCCACAGTAATCAACGAAGAGTTTTTTGAACCGCCCCGGAAATCCTGGAGACTAAACGCCCTGAGAAAGAGGTAAACAGAATGACTAAAAATA ++ +CCCFFFFFHHHHHJHIJJJJJJJJJJDHCGIJJJEEIJIJIJJJGIEDFFFEEEEEEDBDDDDDDDDDDDCCDCCCDDDACDDDDDDDDDDCCCDDDDDD +@DRR015910.93 HWI-ST1182:184:D1KRDACXX:3:1101:6007:2130/1 +CAATGCGATCGATTAAGCCATCCGGCAGGTCCCAACTGCCATCCGGTTGCTGGATACGCAGTAACACTTCCGCACTGACCAGTTTACCGCTGGTCATCTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIIJJGHIJJJJJJJIJIJJJJHIHHHHFFFFFDDDDBDDDDDDDDDDDDDBDDDDDDDDEEDDDDDDDCDDDDDD +@DRR015910.94 HWI-ST1182:184:D1KRDACXX:3:1101:6090:2149/1 +CGACTCAGGAACTGTTTCACCATTTGTGCATAGCACACTTTCGCCACTGGTTCCTGTTTATCCATCCCCAGAGCACGGTACACCTGCGGCAGCTTCTCTC ++ +CCCFFFFFHHHHGJHIJJJJJJJJJJIJJJJJJIJJIJIJJJJJJJJJJJIIJIJJIJJJJJIJJJJJJJHFHHFEFDDDDDDDDDDDDDDDCDDDDDDD +@DRR015910.95 HWI-ST1182:184:D1KRDACXX:3:1101:6044:2156/1 +TTATCGGAGAGCTGCCCACGTATGGTTATCGTCGGGTATGAGCGCTGCTTCGCAGACAGGCAGAACTTGATGGTATGCCTGCGATCAATGCCAAACGTGT ++ +CCCFFFFFHDHHGJJIJJJJGIJJJHJJJJJGJJJJ?@FG>ACCCABBBBBDDCCDDCDDBBABC +@DRR015910.96 HWI-ST1182:184:D1KRDACXX:3:1101:6087:2235/1 +GGTTAAACATGTCGTTGTGATTCTGATTTGGCTAAATGCTTTATTTATGCCTATTTGGTCTGCCTCATGGGGGCTACCCGCTGGATTTAAGGGTGCTCGC ++ +@@@FFFFFGHHHHIHIJHIHIJJJJIJJJJJJJJJJJJJJJJIJJJHIIIJJJJJJJJHIIJJJJJJJJJIJJFFDEEEDDDDDBCDDDEDDDBBDDDDD +@DRR015910.97 HWI-ST1182:184:D1KRDACXX:3:1101:6304:2048/1 +GTTGGCAACCGAAGAGTGCGCCCGCGTGATGACCGTTGGCACTCATGGCACCACCTATGGCGGTAATCCGCTGGCCTCGGCGGTGGCAGGCAAAGTGCTG ++ +CCCFFFFFHHHHGJJJCGHJJJJJJJGIGIIJJJJIJJJJJJHHHHHHFFFFEDDEDDDDDDD;BBEEDDDDDDDBDDDDDDD>BDDDDDDDDDD:ACDD +@DRR015910.98 HWI-ST1182:184:D1KRDACXX:3:1101:6392:2173/1 +CATCTTAACGGCTTTAATACTGACCAGATGCTGAAGCAGCTGGGCAACCTGAATCCGCAGCAGTTTATGTCCGGCAGCCAGGGAGGGGGCAACGATGGCA ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJHHHEFFFFFFFFDDDBDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.99 HWI-ST1182:184:D1KRDACXX:3:1101:6608:2016/1 +NGTTTTCACTGGTCTGGTAACGTCCGTTACTCCTCCGATTATTTTGATCAGCTCCACGCCTATGCGATCGAACTGATCAATAAAGGCCTGGCGTACGTTG ++ +#11BDFFFHHHHHJJJJJJJJJJJJJJJJJJJIIGIJIJJIJJJJHIJHHIIJJIJJJJJJJHHHHFFFDDEDDDDDDEDDEDDDDDDDDDDDDDDDDDD +@DRR015910.100 HWI-ST1182:184:D1KRDACXX:3:1101:6562:2108/1 +CACTGGGACTGTTAAATGCCTGGAGCCTGGCGGGAGAACACCGCCACTGGATGATACCTCTCAGAAAGGGAGCGCAATATGAAGAGCTCAGAAAACTGGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJIJJJJIGGIFHHHFFDDDDDDDDDDFEDDDDDDDDDDDDDDBDBDD@BDDDEEDCDBDDDDDDDDDDDDDD +@DRR015910.101 HWI-ST1182:184:D1KRDACXX:3:1101:6667:2114/1 +GGTTTACCCCATAAGCGCTAACTTAAGGGTTGTGGTATTACGCCTGATATTATTTAACGTGCCGATGAATTACTCTCACGATAACTGGTCAGCAATTCTG ++ +BBBDFFFFHHHHHJJIJJJJJJJJJJJJJHIIHIJGHIJJJJJJJJJJJJJJJJJJJJJJJHHHFFDEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDEE +@DRR015910.102 HWI-ST1182:184:D1KRDACXX:3:1101:6938:2076/1 +CCTTTGATGCCATCGGCCATAGCTTTGCGACTATCGCTATTGGCGGCTTCTCGACACATGATGCCAGGATCGGTTATTTCGACAGGCCGACTATTAACAC ++ +;?@DD;A;D8D?DG;?8:CHE?9?0?0?FEFB8)??*?C>BB/'5(,55,(5@:((5+&)8<<++:(+(+&&(++&&0)&44(((+> +@DRR015910.103 HWI-ST1182:184:D1KRDACXX:3:1101:6989:2129/1 +CATCCGGATTATTCAGAGCCGCTTCCGCAATCCGGAATAAAAGTGCTGTTTTACCGTGAACCCTCTGAAAATCAGCGAGCAGTGTTTTAACCAGCCGACG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJIJJJJJJIFHJJJJJJJJJHHHFFFFDDEDDDDDDDCDDDCDDDDDDCCCEDDDDDDDDDDDDDD +@DRR015910.104 HWI-ST1182:184:D1KRDACXX:3:1101:6814:2153/1 +TATTATGGGTCTGCCAACACATCCACTAAGCGGCAGAACGCCTACCCGGTTATGCGTCTGGTGGCCTTAATGAACCTGGGAAGTCACATTCTGCTGAATG ++ +CCCFFFFFHDHHHIJJJJJJJJJJJJJJIJJJJJJJJJIJJJJJJJJJHFHEFBFDDDDDDDDDDDDDDDECCCDBCDDDDDDDDEDDDDDEEDDDDDDD +@DRR015910.105 HWI-ST1182:184:D1KRDACXX:3:1101:7007:2073/1 +GTGGTGGATATGGCCGCTTATGAGGCATGGCAGCAGGAAAATCATCCGGACACCTGGCAGCAGATGCAGCGTCGTGAAGAGGTGAACATCAATGTGCACC ++ +@B@FADDFHHHHHJJIJJJIJJJJJJJJJJGIIJJJJIJJJJIJJJJGJIJJHHHHFFFFDEEEDDDDDDDBDDB9CDDDDDCBDDDDDDDDDDCCCEDD +@DRR015910.106 HWI-ST1182:184:D1KRDACXX:3:1101:7209:2197/1 +GGACAATACCGCCGATAATACAGGCAGTTGCGTAGATTTCTGTACGTAAAATCATGGGGATTTCGCGGGCCAGAACATCACGAATGATCCCGCCGCCAAC ++ +?E3=;?1(=@CC>>>8539?8(993:34:2?-2+>>A(<@BB<>B +@DRR015910.107 HWI-ST1182:184:D1KRDACXX:3:1101:7240:2239/1 +GCATATCTCACATAGTTAACTTTCGGGTTAACCAATCGTCCCTTGACTGTTCTCTTTTTAAACTCCGACGCAAGAAGCGCCTCCAGTCCATCCAGAGCAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIIJJJJJJJJJIIJJJJJJJJJJIJJJJJJJJJJJJJJJJJHFFDDDDCDDDDDDDDDDDDDDEDDDDDDDDD +@DRR015910.108 HWI-ST1182:184:D1KRDACXX:3:1101:7358:2079/1 +ACTGTACGCTGTCCACCACCGGGTACAGTCCTGAACGAAAAGGTACAGGACGAAAATCAGGCTGATACATCACGCTTCCTCCTTACGCAGGTAGATTTCT ++ +CC@FFFFFHHHHDGIJIGIIIIGHHIJIHHGIJJJGHEGIJCEFBAACGGGGFB49?BE;CEEDDCDDDDDCCBD5?BDEDD +@DRR015910.119 HWI-ST1182:184:D1KRDACXX:3:1101:8434:2096/1 +TGATTGACATGAGTGAAGCTGTCGAACCTGCGGTACCGGACGAAGAAGTTCTCCTTGAGGTATTTCACCTGTCTCTTATACACATCTCCGAGCCCACGAG ++ +CCCFFFFFHHHHHHJJJJJJIJJJJIJJJJJJJGHIJJJJJJIJJHHHGHHHHFFFFFEECEEEFCDCDCDDDCD@CCCCCDDDDCDCDBDDDDDDDDDD +@DRR015910.120 HWI-ST1182:184:D1KRDACXX:3:1101:8436:2220/1 +ATACAGTGTCATGGGGACATCCGGAAAAGCCTCGCCTTTCAGCATCGCCTTCTGCTGCGCTTCTGCCAGTTTCGCTTCCTGGCTGTGACTGAACTCCGTC ++ +CCCFFFDFHHHHHJJJIJJJJJIJJJJJIJJJJIJIJJJIJIJJJIJJJIJJJJJHHHHFFDDDEEDDDDDEEDDBDDDDDDDDDDDEDDDDDDDDDDDD +@DRR015910.121 HWI-ST1182:184:D1KRDACXX:3:1101:8607:2225/1 +GCGTTCAACCTGCTCGGCAAAGTTGGCGTTCTCGGAGAGGAAGCCGTAACCCGGATGGATTGCTACTGCGCCGGTGATTTCAGCGGCGCTGATGATTGCC ++ +CCCFFFFFHHHGHJJJJJJJJJIJJJJJJJIIJJJIJHIJJJJJJJHIEHHFFDBDDDCDDDDDEDDDDDDDDD<9BDDEDEDDDDDDDDDDDDDEEDDD +@DRR015910.122 HWI-ST1182:184:D1KRDACXX:3:1101:8957:2201/1 +ACATATTGTTTTTTATATACTTTCTGAAATGTGCTGTCTGGTTTTTCAACAGGACGAGGTTTATCATATTGAAATAGTGGAACTATTGGCCAAACTAATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJIJIJJIIJJJGIJJJIJJJJJJJJJJJJGIIJHHHHHHHFFFFFDFEEEEEEDDDEDDDDDDDDDDDDD +@DRR015910.123 HWI-ST1182:184:D1KRDACXX:3:1101:9101:2015/1 +NTCCTGACGTAGCAGTACGGCGATAATGCCTAACGCACCACCTAACGCCAGCGAACCTACATCGCCCATAAAGACCTGCGCCGGATAGGTGTTAAACCAC ++ +#4=DDFFFHFHHHJJHIJJJJJJJJIJJJIJJJJJJJJJJJJJJJJHHFFDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDCDDDDEDDCDD +@DRR015910.124 HWI-ST1182:184:D1KRDACXX:3:1101:9138:2247/1 +GGCTCATGTGGTCGGATGTGTTGATGGTATGTCCACCATACAAATTACTTTGCCCACCAGCCGCAAATGTGGCATTGTTAGCGATGCGTTCAAGTTTAAT ++ +CCCFFFFFFHHFHIJHIJGHHHIIJJJGIIGIJJIJJJJJJJJJJJJJJJJJJJJIJJJJJJJHHFFFFEEEDEEDDEDDDDDDDDDDDDDDEDDDEEDD +@DRR015910.125 HWI-ST1182:184:D1KRDACXX:3:1101:9290:2013/1 +NAGTCAGGGTGACCAGCCAGGTGATTGACGCCAGCAGTAACAGGCGCATTAACATCGCCAGCAGCAGCCCGGTAACCCGTGCGCGGTCGCGCTGCTTCGG ++ +#1=BDFFFHHFHHJJJJJJJJCFHJJJIIIJJIIJJJHHIIJJJIJJJJJJIJJIJHHHFDFEEEEEBDDDD?B@CCDDBDDDDDDBDDDDDBDDCDDDB +@DRR015910.126 HWI-ST1182:184:D1KRDACXX:3:1101:9311:2017/1 +NTAATTTTGGTCGTCGGGTACGCAATCGCCGCCAGTTAAATAGCTTGCAAAATACGTGGCCTTATGGTTACAGTATGCCCATCGCAGTTCGCTACACGCA ++ +#4=DDFFFHHFHHHJJJJGGIJJJJJJIJJGIJIJIJJJJIJHHHHHFFFFFFEEDEEDDDDDDDDDCDDDDDEEDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.127 HWI-ST1182:184:D1KRDACXX:3:1101:9292:2055/1 +GCCAAATGTGTTCCAGGGTTTTAAGGAGTGGTTCATAGCTGCTTTCCTGATGCAAAAACGAGGCTAGTTTACCGTATCTGTGGGGGGATGGCTTGTAGAT ++ +CCCFFFFFHHHHGJJJJJFGIJJJJJIJCGHGIIJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJHHHEHFFFFFDAEEFEDDDDDDD@BDDDDDDACCCC +@DRR015910.128 HWI-ST1182:184:D1KRDACXX:3:1101:9296:2103/1 +CCATCGCAAAGTGATTTATCAGCCCACTTGCCAGCAACAATACAAAGAGTAACGCATTCGACCAGTGCCATAATCTGACCGCTTTGCTGTAAAGATAAAC ++ +CCCFFFFFHHHHHJJJJIJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJEFIJJJJJJJJJJHHHFFFFFFEEEEEEEDDDDDDDDDDDDDEEDDDDDDD +@DRR015910.129 HWI-ST1182:184:D1KRDACXX:3:1101:9608:2133/1 +CAGCCAGACGGTCCGACAAACACCACGAATTCACCTTCATGGATATCGAGATTGATATCTTTCGATACCACGACCTCGCCCCAGGCTTTCGTTACATTTT ++ +CCCFFFFFHHHHHJJJJJJJJJJIIJJJJJJGGJIJJJJJJJJJJJJJJJJHHHHHHFFFFFFDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEE +@DRR015910.130 HWI-ST1182:184:D1KRDACXX:3:1101:9863:2056/1 +CCGGTGTACTTCAAAGTGACCTCCAACTCCGTGATGAACTCCTTCTTCATTCCGCGTCTGGGTAGCCAGATTTATGCCATGGCCGGTATGCAGACTCGCC ++ +@@@DDDDD?FD?DG@A223A:3CAF9A>6;;;;A>??B;8254>:::8::8<9 +@DRR015910.131 HWI-ST1182:184:D1KRDACXX:3:1101:9822:2095/1 +TCATTATGTCGACCATTATGTACCGGATTTTTAATCATGAAGTTGCGTTGATTGACGTCGGTAAACTTTCTGATGCGCCGCTTAATACGCTGTGGCTTTA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJHIJJJJJJJIIJIIJJHIJJJIJJJJJJJJJIJHFBDDEEEEEEDDEEDCDDDDDDDDDEEDDDDDDDDDDDDD +@DRR015910.132 HWI-ST1182:184:D1KRDACXX:3:1101:9994:2121/1 +GTGCGACCATATCGTGCAGGCACCACTTCCCCCTAAACCGATCGAACGCGGTTATGCCAGTGCAGGGTTACTTGCACGGATCCTGGTCAGCAAATATATG ++ +CCCFFFFFHHHHHJJIIJJJ1HHIIIJJJJJJJIIJJJJJIJJIJJJHHFDDDDDDDDDDCDDDDDDABDDDDDDCDDDDDDDDDDDDDDDDDDDDEEEE +@DRR015910.133 HWI-ST1182:184:D1KRDACXX:3:1101:10236:2017/1 +NAGCAGTAACAGCCGGTAGTTCTTCATCCCGAGCAATGTGTAATCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAATCTCGTATGCCGT ++ +#4=DFFEEHHHHHJJJGIJIJIIJGJJJJJJJJJJJJJHIHGIJJJJIJJJJJJJJJIJJJJJJJHHHFFDDDDDBDDDDDDDDDDDDCDDDDDDDDDDB +@DRR015910.134 HWI-ST1182:184:D1KRDACXX:3:1101:10011:2024/1 +NTCGCCGGGTTAATATGAAATAAGACGGGCACCAGGACGGTTGCACCAAACATGGCGAACAAATGTTGCAAACTAAGCGGGATTGTCTGTAAAAGTGGCT ++ +#1=DFFFFHFHHHJJJJJJJJJJJJJJJJIJJJJJJJJJJHJJHHHHHFFFFEEEEDDDDDDDDDEEDDDDDDDDCDDDDDDDDDDEDDDEEEDDDDDDD +@DRR015910.135 HWI-ST1182:184:D1KRDACXX:3:1101:10040:2132/1 +TCGAAGAACAGGCTAAACGCCGCGTAGTTGTTGGCCTGCTGCTGGGCGAAGTTATCCGCACCAACGAGCTGAAAGCTGACGAAGAGCGCGTGAAAGGCCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJIIJIIJIIJJJJJJJJJJJJHHHFFDDBDEEDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDBDDDDDDCDD +@DRR015910.136 HWI-ST1182:184:D1KRDACXX:3:1101:10533:2057/1 +GTTCATGCCGGATGCGGCGTGACCGCCTTATCCGGCCTACGAAACCGCAAGAATTCAATATATTGCAGGAGCGGTGTAGGCCTGATAAGCGTAGCGCATC ++ +CCCFFFFFHGHHHJIJJJIHIIGIBGHGICHAHGGFFDDFDDDDDDBDDB=CDCDDDEEEDEEEDDDCDDBBDD<9@CDDDDCDDDDDCC@8?>BDDDDD +@DRR015910.137 HWI-ST1182:184:D1KRDACXX:3:1101:10668:2077/1 +GCACGCTGTTTCTGCACTCGAAATGCCGCAAGCGCCTCTGCAACCGGGATGGGATTGTCCGCAAGCGCCAGAAATACCTGCCAAAGAAATTATCTGGAAA ++ +CCCFFFFFHHHHHJJJJJJJJIJIJJJJJIJJJJIJIJJJJJJJJJJHEFFFDEEEEDEDDDDDDDDDD@DDDDDDDDDDDDDDDDDDDDDDEDDEDDDD +@DRR015910.138 HWI-ST1182:184:D1KRDACXX:3:1101:10735:2121/1 +GCCGTAAAACATGGCAACTGCAGTTCACTTACACCGCTTCTCAACCCGGTACGCACCAGAAAATCATTGATATGGCCATGAATGGCGTTGGATGCCGGGC ++ +B@BFFFFFHHHGHJGIJJJJIIJJJGIJJIIJCHHJIJJJJJJJJJJJJGHJJJHHFFFFCCEEEEDEDDEEECDBCDDDDDEDDDDDDBBCDDDDDDDB +@DRR015910.139 HWI-ST1182:184:D1KRDACXX:3:1101:10523:2179/1 +GCGTCCATCGGGGAACCACCACCCAGCGCGATAATCACGTCTGGTTTGAAGGAGTTTGCCAGTTCTGCACCTTTACGAACGATGCTCAGGGTCGGGTCCG ++ +CCCFFFFFHHHHHJJJEHIJJJJJJJJJIJIJJJJ@GIIIHHHHHFFFFFEEEDCDDDDDDDCDDEDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDBDDD +@DRR015910.140 HWI-ST1182:184:D1KRDACXX:3:1101:10506:2192/1 +GGACAGGTGCTGTTGCTGAACTGCTGGAACCGCTGTATGACATCCTGCGCCAGTATGTGCTGATGCCCGGTAAAGTCCATGCCGATGATATCCCCGTTCC ++ +@@@DFDFFFHHHHJJIIGIIJJGIJJGGDGGGGIIJJJJJIIIIJJJJIIJJJIJJJJJIIHFHFHHDDE8>@DCCCCDBCCDDBBBDEEEDECBBDDDC +@DRR015910.141 HWI-ST1182:184:D1KRDACXX:3:1101:10793:2095/1 +ACCTACAATCGTCAGCGTCGTCACTCTCGTCTGGGGAATATCTCCCCGGCAGCCTTCAGGGAAAAATATCATCAGATGACTGCTTAAAAAAAGAACAAAT ++ +@@CFFFFFHHHHHJJJJJJJJJJJJJJJIJJJJJJJIIIIJGIIJJJJJHHFFDEEEEDDDDDDDDDDEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.142 HWI-ST1182:184:D1KRDACXX:3:1101:10910:2106/1 +CGATCAACAAAGGGCCACTAGCACACCTGATTCCTCTCTAAATACCCTATCCGAACCTTCTCTTTTGTAACGTTCTAAATATATTCCTAAAAATCTTCAA ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJIJJIJJJJJJJJJJJJIJJJJJJJJJJJJJJJJHHHHHHFEDFFEEBEEDDEFEFEEEDDDDDDDDDDEED +@DRR015910.143 HWI-ST1182:184:D1KRDACXX:3:1101:10841:2196/1 +GATACACCAGAGAACGATGCAGCCTTCCCCCGCCAGACACATGCCGGGAACCCGGCGCTCTACCCGCAGGTCAAAATGGTCTGCCAGATGGAACTGACCT ++ +CCCFFFFFHHHHHJJJIJJJJJIJIJIJJJJJIJJJJJIJJJJIJJJHGFFFDDDDDDDDDDDDDDDDDB8ACDDCCDDCDDDDDDDDDDDDDDDDDDDD +@DRR015910.144 HWI-ST1182:184:D1KRDACXX:3:1101:10923:2200/1 +AATCTACTCCGGATACGAAACCGATACGCGGAATGCGTACCGATCCCCCGACTAACCCATTCCAACCCGGTAACCAGCAGGCATTAAAACACGGTGGTTA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJIJJJJHHHFFFDDDBDDDDDDDDDDDDDDDEEDDDDDDD@DDDDABDDDDDDDDDDDDDDDDD?BDDDD +@DRR015910.145 HWI-ST1182:184:D1KRDACXX:3:1101:10852:2206/1 +GCTGCCGCCAGACCGAAGTCCTGACCCCCGCCGCCTTCAAAAGCGATGCGGTAGGTGTAGTTAACAAGCAGGTCGGTATAACCGGCTGGCGAGGTCGTGC ++ +@;@BD?=D@C?;<<8:E::DC@F??*BFF:F@4@B=B;AC?;;>18?,,8?(:(+3>@A:>4432298(400928@B@A>93555+5&)&0(&&5( +@DRR015910.146 HWI-ST1182:184:D1KRDACXX:3:1101:11239:2008/1 +NCTCTGGACATTAAACCAGGAGCTGGCGAAAAAGTGATTTAACGGCTTAAGTGCCGAAGAGCGATCGGGAAGCCCCCGACAGCCGCACTGAGAGGCAGCG ++ +#1=DDFFFHHHHHJJJJJJJGIIJJJGIIJJJJJ?DFIIIJJJJJFGIIJIGGIHHFFFDDEDDDDDDDDDDBDB>BDDDBDDDDDDDDDCDDDDDBBBD +@DRR015910.147 HWI-ST1182:184:D1KRDACXX:3:1101:11171:2098/1 +GTCAGACTCCAGTCCTGGGCTATGTGACGCACATCCCCACGGGTCAGCACCACGGCAAAAACGCATTCACTGTCCGGCACGTCTGTATCCAGTACATCGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJIIJJJJJJJJIJJJJJJJJAHHIHIEGHIJHHDFEEDDDDDDDDDCCCCCDBDDDDDDDDDDEEEDDDDDDDEDDD +@DRR015910.148 HWI-ST1182:184:D1KRDACXX:3:1101:11110:2103/1 +CCTCCATACCCCTTTCGCCCGTGCACTTCCCGTCCGACAAAGCGTTAATATCAGTGACTACAATCCGCACGACTGGATCGCCTCATTTAAGCAGGCCTTC ++ +@@@?=DDDFFDDHGIHH6?FAFA@EFEGGBGBDFBG@FFACCAF;;@7=;?==;BC>>;@;6;A>6859;=@85>?>(4585>BA:AC>::@AC@90>(+ +@DRR015910.149 HWI-ST1182:184:D1KRDACXX:3:1101:11076:2103/1 +GGCCGTTTGCTTCGGCTTCGTGCTGGGTAGCTTCATGCTGTAATGATCAATCGCGGGGCGTTCACGCCCCGCTTTCTTTCCCGCCGACTAACATCCTTCC ++ +CCCFFFFFHHHHHJJJJJJJHJIJJJJCFHIIJJJCHIJIEEIHGGIHIJJHIJJJFD=B0;?CCDADD>555>B>ACD:>C9-<>ACC@? +@DRR015910.150 HWI-ST1182:184:D1KRDACXX:3:1101:11215:2111/1 +CGGTAAGCGGCACGAACAACCAGCGTTGTGTGAATCATATTTCTGAACCGGATAACGAAATTCCGCCGGGCTTCAGGGGGTAAGTGTTAATTTCTGGTCA ++ +CCCFFFFFHHHHHJJJJJJJJJIJJHIIHHFGGIJIIIGGIJJJIIIHIHHFFDEEDDDDDDDDDDDDDDBBDDD@CDDD9>CCCCDDDDEEEDEDDCDD +@DRR015910.151 HWI-ST1182:184:D1KRDACXX:3:1101:11103:2121/1 +CCCTGACACAGGCGCCGGTCATTCTGTTAACTCATCCACGTATGGGAGAACAGTTGTTTCAGTTTGAACCCAGGGAGGTCAGACGGATTTTTACTGGCGA ++ +CCCFFFFFHHHHFJJJJJIJJJJIJJJJIJJJJIJJJJJJGGIJJJHIEHIIHHGHFHFFFFEFFEEEC=>BDDDDDD?CDDDDDD@BDDDDDDDDDDDD +@DRR015910.152 HWI-ST1182:184:D1KRDACXX:3:1101:11001:2227/1 +CAGTAACTCAGACTGTGAAAACAGAGAAAAACCGCCGGAACCGATTTTCACCGGAGTTTAAATGGAGACTTGTTCAGCAAACTCTTTTACCCGGTGCCTG ++ +CCCFFFFFHHHHHJIIIJJJJJJIJJJJJJJJJJJJJJJJJJJJHHHHH;BEFDDDBDDEDDEEDDDDDDDDCDDCDDDDDDDDDDDDDDCDDDDDDDDD +@DRR015910.153 HWI-ST1182:184:D1KRDACXX:3:1101:11448:2148/1 +GTCACATGCTGCGTATCCTCGACCACGGTGCGATCTCCATGGGCGACAACTGGGACATGATGTACGTGGGTATGTACCAGGATATCAACTGGGATAACGA ++ +@BCFFFFFHHHHHHGIJJIJJJJIGGIGBFGGIGIIJJJIJEHIIGIHEHFFFFAEDEEDDCBDEDCDDD8ACCC>CCDDDDDDDDEDDDDCDDDDDDBB +@DRR015910.154 HWI-ST1182:184:D1KRDACXX:3:1101:11738:2072/1 +GCCGTAAGCCAGCCCCAGACGTAGCAGAGTTGCAGCATCACGAATTTCGCGGCGGCGGGTTAGAGCCCCGGCATTACGTGCCGAAGTATCCAGTTCTTCG ++ +CCCFFFFFHGHHHJJJJJJJJIJJIJJIJIIIIJJIJIIIJJJJJJJJDIJJHDDDDDD;BDBDDDDDDDDD@DDCDDDDDDDDDD?CDEDCDCCDEDDD +@DRR015910.155 HWI-ST1182:184:D1KRDACXX:3:1101:11685:2115/1 +GTCATCGGGCATTATCTGAACATAAAACACTATCAATAAGTTGGAGTCATTACCTAATTTCTGATTGCCAGATATCTTATAAATCATAAGATGCTCCACT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIJJJJJJJJJJIIIIJFHIJJJJJJJJJJJJJJJJJJJJHIJJJHEHHHHHFFFFFFFEEEEEEDDDDDD +@DRR015910.156 HWI-ST1182:184:D1KRDACXX:3:1101:11565:2140/1 +AGGCATTCTATTAATCTCACGGAGATCCTTAACGGATCTCCGCTGTTGATCAGAACATCACCTGACCGCCGGTGACATTGATCGACTGACCAGTGCAGTA ++ +CCCFFFFFHHHHHJJJJJJJHIJJJJJJJJJJJJIJJJJJJJJJJHIJIJJJJJJJIJJJJJHHHHHFFCBD?DBCCCDDDEDDDDDDDDDDDCDDDDCC +@DRR015910.157 HWI-ST1182:184:D1KRDACXX:3:1101:11851:2206/1 +GTCGTCTCCAGTGGAGTGGCTGACGGATAATGGTTTATGCTACCGGGCTAATGAAACACGCCAGTTCGCCCGGATGTTGGGACTTTAACCGAAGAACACG ++ +<@?;BA;BF>FFFE):?<*0*9?:6@;FC)7))>C=A(5519'..;;>/82/,&)+448<(+(4((+(495<-)9+93& +@DRR015910.158 HWI-ST1182:184:D1KRDACXX:3:1101:11837:2215/1 +ATAATGAGAAATACGGAGGGAGATATGTCGTCATTTGATTACCTGAAAACTGCCATCAAGCAACAGGGCTGCACGCTACAGCAGGTAGCTGATGCCAGCG ++ +CC@FFFFEHHHHHIJJGHIIIIHIJGIIJIJJJIJJJIJIJFJGIIJIJJJJIJJJJJGIGGIHHGEFFF>CEEDBDDDDDDDDDBCCDDDCDDCDCDDD +@DRR015910.159 HWI-ST1182:184:D1KRDACXX:3:1101:11909:2216/1 +CGTTGCCTTGCCGAATCAGGTACTGTAACGCTACGCAAGCGCCGTCTTCCCCTCGAAATGATGGTCTGGTGTATTGTTGGCATGGCGCTTGAGCGTAAAG ++ +CCBFFFFFHHHHHJJJIJJJHHIJJJJJJJJJJJJJJJIJIJJJJJJHHHHHFFDCEDDDDDDDDDDDDDDBDFFCEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.160 HWI-ST1182:184:D1KRDACXX:3:1101:11802:2226/1 +GTACTGGAATACCACGTCCCTGAATCCGGCACGCTTCGCCGCGCGTTCCAGAATCCCTTGCGCCTGGGTGTTTGCTTCATCACCGCCCAGCCCCTGGAAG ++ +CCCFFFFFHHHHGJJJJJJJJJJJJJJJJJJJJJJJJJJJIJHHFDDDDEDDDDDDDDDDDDDDDDDDA99BDDDCDDDEEDDDD@DDDDDDDDDDDDDD +@DRR015910.161 HWI-ST1182:184:D1KRDACXX:3:1101:12031:2021/1 +NGTGGAGACTGGCCGAATATCCTTGAGCTACAGTGCTGAAAATGGTCGCTGTTTCCAGTTCGGAACAATGGATTGCGACGAACAGTTGTTTGGTGAAATG ++ +#4:BDDFFHHHHHJJJIJJJJJJJJJJJJJJJJIIJJJJJJJJJJHHIJJJJJJJIJJJJJJHHHFFFFEEEEEECDDDDDDDDDDDDDDDDDBBCDDDD +@DRR015910.162 HWI-ST1182:184:D1KRDACXX:3:1101:12221:2137/1 +GGATTTTATCGATGGAGGGATCATAGTAACTTTTAACAAATTCCCCTGAACGGTCATAAATCACCACCATATCTCCACGCTGACGGGCGTAGTTGGCCAG ++ +BC@FFFFFHHHHHJJJJJJIJJJJJJIIIJJJJJJJJJJJJJIJJJJJJJJJJHIJJJJJJIIJJJHHHHGFFFFFFEDDDDDDDDDDDBDDDEDDDDDD +@DRR015910.163 HWI-ST1182:184:D1KRDACXX:3:1101:12124:2178/1 +ATTCAGAATGCTCCTATAAGATAGCGAGCTCGTCAACGATACAGATGATCTGATTATATTGTGCAAAAGGAGAACAGGAAAATAGGCACTGGAAAAGATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJGJIJJJJJIJJJJJJJJJJJJJJJJJJJJJJIJJJJJIJIJHHHHHDFFFECEDEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.164 HWI-ST1182:184:D1KRDACXX:3:1101:12047:2197/1 +GTTTCTATTGATATTGAAACCACCCGCCACGGCGAGCTGTACTGCATCGGCCTGGAAGGCTGCGGGCAGCGCATCGTTTATATGCTGGGGCCGGTGAATG ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJIJJJJJJIJJJIJIJJJHHHHHFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEDEDDDDDDDD>BDCDD +@DRR015910.165 HWI-ST1182:184:D1KRDACXX:3:1101:12380:2023/1 +NGGCAATTCAGGTAATAAAAAAGCCGGAGCTCCCTTTCCGGCACGTCTCATTGCCGTATCACTTCCTCCCGAAAAAGCATTAATCAGTAAAACCCGACTG ++ +#1BDFFFFHHHHFIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHHHHHHHFFEDEEEEDDDDDDDDDDDDDBDDDDDDDEDDDEEDDDDDDDDDDD +@DRR015910.166 HWI-ST1182:184:D1KRDACXX:3:1101:12485:2078/1 +CTCAAATACCAGCGAAGAAGCGCGCTGAATCACGCTATTTACCGCGCCAAGAGTGTATTTTTTGCTGCGTCCTGCATTCACCAGTTGAGTATCAAGCTTT ++ +CCCFFFFFHHHHHJJJJJJIHIIIIIJJJJIJJJJJJJJJIJIJHHFFDDDDD>ACDFFFEDDDDDDDDDDDDDDCDEDEDDDDCCDDDCDDEDCDDDDD +@DRR015910.167 HWI-ST1182:184:D1KRDACXX:3:1101:12290:2084/1 +CGGATGTGCTTCTCCGTATACACCATGTTATCGGAGAGCTGCCCACGTATGGTTATCGTCGGGTATGGGCGCTGCTTCGCAGACAGGCAGAACTTGATGG ++ +CCCFFFFFHHHHHJJJJJJIJJJIJJJJJJJJJJJJIJJJJJJJIJJFFGHJHIJJJJJJHHF.9AEED@BBBDBCCA@@DDBDBCBB@BBDDEDDDDDDDDDDDDD +@DRR015910.171 HWI-ST1182:184:D1KRDACXX:3:1101:12626:2097/1 +CTCCCACCTACGTTGCCATTCTCAGGAAAAGCCCACACGCCGATGCAGCCCGTCGCTTTATTCACTACCTGTTAAGTCCGAAAGGACAGCGTATTCTGGC ++ +CCCFFFFFHHHHHJJIJJJJIJJJJJJJJIIJJJJJIJJIJJJJIJJJIDIHEFFDDDDDDDEEDDDDDDDCDDEDEFCDDBDDDDDDDBDBDDDDDEDD +@DRR015910.172 HWI-ST1182:184:D1KRDACXX:3:1101:12715:2148/1 +GTATTGCGATTTCTATTCCCGTAGGGGTTGTTGGCTACTTTGCAGCGAAAATAATCAATAAGCGCCAATATGCGATGTCAGTAGAAGTACTGGAACACTG ++ +BBBFFFFFHHHHHJJJJIJJJHIIJJJFHIJJJJJJJJJJJJJJJJJIJJJIHHHHHHFFFFFDDDDDDDDEDDDDDDDEDDEDDDDCCDEDDDDDDDDD +@DRR015910.173 HWI-ST1182:184:D1KRDACXX:3:1101:12607:2154/1 +GTAGATGGGGCCATGATTTGATCCCAGACCGCCTGCAACGCTTTCATGTTAAATTCCGGCTCGCCTTTCGGCTGCAGCAGTATTAACGCCATATCATTCG ++ +CCCFFDFFHF?FFHIGGGIBIIIIIJJIIJIJJIJJJJJGIGIJIJIGHGCGIJIGAGHHFFDDD>BCC?BD?BDDDDBB3>CDDC@85CCCDCDDBBDDDDDEEDDDDDCDDDD59 +@DRR015910.188 HWI-ST1182:184:D1KRDACXX:3:1101:14016:2079/1 +GGCGTATACCGAAGCCATGCTTACCGAGTATGCGGATTTTTTCCGCCAGGTCGAGTCTTCACCGCTGAATCCGGCGCAGGCCCGGGCAGTCGTTAATGGC ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJIJFGIJJJJIJJJJJJJJJJJHHFFEFDDEDDEDEDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDEDDD +@DRR015910.189 HWI-ST1182:184:D1KRDACXX:3:1101:14007:2139/1 +ACATACCCTTCTTCATCACACCGACAGCGGCTATATTAAAATTGTGCGGCAGTGATTCAGGACTGCTTTTAATAATATTAATATTACGCATGTTCATTTT ++ +CCCFFFFFHHHHHJJIIJJJJJJJJJIJIJJJIJJJJIJJJJJJIJJJJIHFEFFEEEEEEEDDDDDDDDDDDEDDEEEEEEEEEEDDDDDDDEEEEEEE +@DRR015910.190 HWI-ST1182:184:D1KRDACXX:3:1101:14179:2158/1 +TCATTGATATGGCCATGAATGGCGTTGGATGCCGGGCAACTGCCCGCATTATGGGCGTTGGCCTCAACACGATTTTACGTCACTTAAAAAACTCAGGCCG ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHHHHHFFDDDDDDDDDDDDB@=BDDADDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.191 HWI-ST1182:184:D1KRDACXX:3:1101:14384:2053/1 +GTATAAATCAAAACGACGGCAGGTATGGCAGAACGTGACGTATTCGTACGGTGAATCCGGGTACATTTTGTGGAAGGTTTCCCAGAAACAGACCGTGCAG ++ +CBCFFFFFHHHHHJJJJJJJIJJBGIIJJJJJJJJHIIIJGHIIGGFEHHF@DDEEEEDDD;?DDEEFE@5?BA@ +@DRR015910.192 HWI-ST1182:184:D1KRDACXX:3:1101:14337:2057/1 +ACGTTGGCGATCGGCTTCAATCGCATCGTCGATAAAACGATAGATTTCCTGCATCAGATACCTCGCGTCCAGGGAAAATTGAGCGCGGTGCGCGCCAGCG ++ +CCCFFFFFHHHHHJJJJJIJIIJJJIJIDEEGGIJJJJIIEGGIIIJAEEFHHFFFFFFEEECEDDDBD85:?@??BDDD:ACCBDDD>BDDDDDDDDDD +@DRR015910.193 HWI-ST1182:184:D1KRDACXX:3:1101:14451:2080/1 +CGTTCAATACGTTGCGTGAAGATTCTGCCGGTCAGGTGTTTCTCCTTCGGCACTTCTCTGGCGTAGCTGCCCCAGTCATCGCTGGTCACCATGCCGATAC ++ +CC@FFFFFHGHHHJJJJJJJJJJJ+CGIJJJHHIJJDFHIJJJJJJJJJJJJJIHHHHHHFFFDDDDDCA=BDDDDDDEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.194 HWI-ST1182:184:D1KRDACXX:3:1101:14363:2096/1 +TCTTCAGATGGTTCAACCCTTAAGTTAGCGCTTATGGGCACCCCCCCCTGGCTATTGTGCGCTCATACACTCAAATTAAAGATAGGTTCTAAATAAATGA ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJJJJJIJ@GIJJJJJJFDCDEDEDDDEDDDDDDDDDD>:@CCDDCCDDDDDDDDDCCCDEEDDEDDEED +@DRR015910.195 HWI-ST1182:184:D1KRDACXX:3:1101:14357:2173/1 +GACCAGAACGGTGTGCTCTGCCAGCGCCTCGGCATTGATCAGGTCCCGGCACGGGTGAGCGCCGTTCCCGGCGATCGCTTCCTGAAGGTGGAATTTATTC ++ +CCCFFFFFHHHHHIJJGJJJIJJJJGIJGIGGIJJJDHGIJJIJIJJJJIHHFFD<@BBDDDDDDDDDDBBDBDD?@BDDDDDD@CDD?CDBCDDDDDDA +@DRR015910.196 HWI-ST1182:184:D1KRDACXX:3:1101:14412:2211/1 +GACCTGTGGATAGCGACACAGCTGAATCGTCTTCCTGACTGCGACTGGGTACACCTGGTCTTCACCCTGCCGGACACGCTGTGGCCGGTGTTCGAAAGCA ++ +CCCFFFFFHHHHHIJJJJJJJJJIIJIIJIJJJJJJIJJJJJJJIJJJJHIJJJJJHHHHHFFFFFFDEDCBDDD@DDDDDDDDDDDDDDBDDDDDDDDD +@DRR015910.197 HWI-ST1182:184:D1KRDACXX:3:1101:14579:2041/1 +NCTTTATTGCCCATGATCAGCCGATCTATGAAAACCCATCGCCGGGGAACAAAGCGGGCGGTATCACCACTGTCTCTTATACACATCTCCGAGCCCACGA ++ +#1=DDFFFHHHHHJJJJJJJJJJIJJJJJJJJJJJIIJJJIJJJJJJHHFFFFEEDDDDDDBBDDEDDDBCCCDDCDDDDDDEDDDDDDDDDDDDDDDDD +@DRR015910.198 HWI-ST1182:184:D1KRDACXX:3:1101:14747:2069/1 +AGCACGAAGCCGAAGCAAACGGCCAGGGCAACACCCAGAGTCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAATCTCGTATGCCGTCTT ++ +@CCFFFFFHHHHHJJJJJJJJJJJJJJIJJJGGJJJJIJJGHIIFHHHHGHFFFFFFEEEEEDDDDDDDDDDDDDCCDDDDDDDC>ACBBDDDDDD@DDD +@DRR015910.199 HWI-ST1182:184:D1KRDACXX:3:1101:14777:2037/1 +NTCATGTAGTACACCATCAATCTCAACCTCGGTCACCGCGCAACCCGGCATCGATGAGAGCAGAATACGGCGCAGTGCGTTACCCAGAGTATGGCCAAAG ++ +#4=DFFDFHHHHHJIJJJJJJJJJJIJJJJJJIJJJJJJJJJJJJJJJJHHFFFFFEECEDDDCDDDDDDDDDDDDCCDBDDDCDDDDDCDDDDDDDDDC +@DRR015910.200 HWI-ST1182:184:D1KRDACXX:3:1101:14932:2078/1 +CCTCAAAAACACCATCATACACTAAATCAGTAAGTTGGCAGCATCACCAAACGCGCCTGCAACGCGCCGTTATTGGTCAGCACCAGCAACCCTTCGCTAT ++ +CCCFFFFFHHHHGJJJJJJJJJJJJJJJJJJIJJIJJJJIJJJJJJJJJJJJJJJJJJHHHHFFDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.201 HWI-ST1182:184:D1KRDACXX:3:1101:14847:2144/1 +GTCTTTAGTGTGCGGTTGAGGCCGAAAACAGCCAGAAAGCCAGTGCTGTCATGGCAAAAGACCCCAGAAGGTTGACGAAAACGTTCAGTAACGCCCAGCC ++ +CCCFFFFFFHHHHJJJIIJIIJIJIJIIIGHIJIJJIJGJIJIGGHJJGHIJJJJHHHDEEFDFDCBDCCDCD?CCBDDDDDDDDDDDDEDCDDDDDBDD +@DRR015910.202 HWI-ST1182:184:D1KRDACXX:3:1101:14795:2202/1 +CTATTAATAATATCCACATAAATAAAACAACGGGCGTGTTATACGCCCGTTTCAATATTTAACACATGGAGAGATTACATGTTTTCGATGATCGCTTCAC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJHIIJIJJJJJJJJGHIHHHHHHHHFFFFFFEEECEDDDDCDDDEDEEEDDDDEEDEDDDDDDDD +@DRR015910.203 HWI-ST1182:184:D1KRDACXX:3:1101:14902:2210/1 +ATACTAATGTCCATTTTCGCAGTAAAGGGACATTTAAGATGAATGCACGAAAAGCGGTACTGGCAGACAATCCGGAATTGATCCTGCGTGTGCTACAACT ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHIJJJHHHHFFFBEEEDDDDDDDDEDDDDDDDDDDDDDDDDDD +@DRR015910.204 HWI-ST1182:184:D1KRDACXX:3:1101:15117:2006/1 +NTCGTGAAGAAAGCGGGGACCGGCTGGCTGGACGTGCTGTTTCCACCTGCGGCAATGGGCGCAATCGTTGCCGTCATCGGTCTGGAGCTGGCGGGGGGAG ++ +#11A4B?ADD?DDEIIA<@DD@8:AADD7;ADCD9@?@A;@AAA5>?=(9/8;&7>:><<<<;;?A><<35A?5588>A?>>?9>:<>83<>9;5)0&&) +@DRR015910.205 HWI-ST1182:184:D1KRDACXX:3:1101:15004:2047/1 +NTTACTGCCTTTATACCGTTATTTTTCAGCTCGTTGCGCAATGCGCGCCCTGAATACGCTTTATCAGCCAGTACCGCATGTCCACGGCGTTTCATGCTGC ++ +#4=DFFFFHHHHHJJJJJIJIJJJJJJJIJJJJIJJJJJJJJJJJJJJJHHFFFFFFDDDDDDDDEEDDDDDDDDBDDDDDDEDDDDDDDDDDEEDDDDD +@DRR015910.206 HWI-ST1182:184:D1KRDACXX:3:1101:15492:2037/1 +NGATATCAGTCCACGGTGTGGTCAACCACAGCGCATCGGTCATATCCCGCCAGCTATCATCGCACCCGGCATCGTAGGTTTTTGTAGCTCCGTTGCGGGC ++ +#1=DFFFFHHHHHJJJHIHIJHIJJJJJJJJJJJJJJJJIJJJJJJJJJJJHHFFFFFFEEEDDDDDDDDDDDDDBDDCDDDDDDEDDDDDDBDDDDDDD +@DRR015910.207 HWI-ST1182:184:D1KRDACXX:3:1101:15419:2046/1 +NCAGAAAATCATTGATATGGCCATGAATGGCGTTGGATGCCGGGCAACTGCCCGCATTATGGGCGTTGGCCTCAACACGATTTTACGTCACTTAAAAAAC ++ +#1=DDFFFHHHHHIJJJJIJJJIJJJIJIJIIIJIJIJJJJJJJJJJIGIJJJJHGFFFFFEEEDBDDBDDDDDDCDDDBDDDDEDDDDDDDDDDDDDDD +@DRR015910.208 HWI-ST1182:184:D1KRDACXX:3:1101:15253:2194/1 +GAAGTTACCTTCTGGCACTGACCACTGCATTTCTTCCGTCAGCCATTGCCGCCAGCCCTTCGCCTGCGCTTTCTTTTCGCTGCATTGCTTGCGCCACTCA ++ +@@CFDDFFHHHHHJJJJJJJJJIJJJJJIJJJJJJJJIFHIJJJJJJIIJJJJJJJIJJJJHHHFFFDDDDDDDDCCDDDDDDDDEDDDDDDDDDDDCDD +@DRR015910.209 HWI-ST1182:184:D1KRDACXX:3:1101:15404:2221/1 +GTAACGATCCACCCAGTCATTGAGCGCATTAAACAGCGTATCGTTCATCATCACCGCCGGATTCACCGCCCGGCGTTCTTCTTCTGTCAATACCACCCGC ++ +CBCFFFFFGGHHHJJJHIJJJJJJJJJJJJJJJJJHIJHHIGIGIGJJJJJJJJJJHHFDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDEEEDDDD?BDD +@DRR015910.210 HWI-ST1182:184:D1KRDACXX:3:1101:15699:2034/1 +NTTTTATGCCGGATGCCGCGCAGGCAGTAAACATATCCCACAGGAACGACTCCACCATTGTTTTGACATCATCTATATGCTTTCGACACATCATCAGCGG ++ +#1=DFFFFHHHHGJJJJJJJJIJJIJJGIJJJJIJJJJJJJJJJHHHHFFDDEEDDDDDDEDDDDDDDDDDDDDDCDEEDEEDDDDDDDDDDDDDDDCDD +@DRR015910.211 HWI-ST1182:184:D1KRDACXX:3:1101:15686:2131/1 +AGATAAAAGTGTTGTGGGCTGACAGTGACGGACTGTGCCTCTTCACCAAACGCCTGGAGCGGGGCCGCTTCGTCTGGCCGGTTACCCGTGACGGCAAGGT ++ +CCCFFFFFHFHHHJIJJJJJJJJJJJJIJJJGJJJIJJJJIIJJJJJIJJJJJJJJIJHHFFDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDD> +@DRR015910.212 HWI-ST1182:184:D1KRDACXX:3:1101:15664:2196/1 +GTATTTTGACCTGATCCGGCTCACGACGCTGGGTGGTATAGCGCGATGTCCCAGGGCGACGACGGTCGAGGTCATGTTGCAGGTCCGCTTCCGTCAGCGG ++ +B@BFFFFFHHHHHJJJJJJJJJIJJGGIIJJJJ?DG@FGGIIJJHHFFFFFEEEDDDDDDDDDDDBDDBDD9CCDDEECDDDCBDDDDDDDDDDDDDDDD +@DRR015910.213 HWI-ST1182:184:D1KRDACXX:3:1101:15793:2080/1 +CAGTCAGGCTATGATTATACCGCTTTTCCCGGTTTATGATGAAAAAAAACATTTCCTGACTATTGAAGTTCGGCCACCAATGGATGCATGCATTGCCAGC ++ +@@CFFFFFHHHHGIJJIJJJJJJJJJJJJJJJGIJGJIHIGGGJJJJJJIHHHHHHFFFFFFEEDEEEDDE@BDD@DDDDDDDDDDDDEDDDEEDDDDDD +@DRR015910.214 HWI-ST1182:184:D1KRDACXX:3:1101:16161:2007/1 +NTGTTAGCATAGTGATCAAATTCCTGATCAGATACATGAATTACCTGAACCGAACTATTTTCATCTACAAATGCATCTGGCGATTTTTCTACAGGATCAT ++ +#1=DDFFFHHHGFIIIGIIGIJIJJJJIJJIJIIJIGGJJIIJIJJJIGGIIJJJJJIJJIJIJIGJJJJIJGEHCHHHGHFFDDDDDDDEDDDDDDDDD +@DRR015910.215 HWI-ST1182:184:D1KRDACXX:3:1101:16078:2027/1 +NGACGTATACGGTGTGACGCCTGCCCGGTGCCGGAAGGTTAATTGATGGGGTTAGCGCAAGCGAAGCTCTTGATCGAAGCCCCGGTAAACGGCGGCCGTA ++ +#1=DDDDFHGHHFHGGJFIIJJJIJJJJDGIIJJGGIJ;FGIIIIJDHIHH=BFFFDDDDDBDDDDDDDDDDDDD@DDDDDDDDDBBDDCDDBDDBDD>B +@DRR015910.216 HWI-ST1182:184:D1KRDACXX:3:1101:16117:2153/1 +CAGCTGGACGATGTCCAGCTTGCTCGCTACCTTTTGTCGGGTCAAAATCAACCCAAATCAGATCGCCCATATCGGGTACGTATCGGCTTACCATTACCAG ++ +CCCFFFFDFHHFHIHGGHCGHIFBEGBHIBHGGIIGHGGHG=;FGIIADHIIGHAHFH7;??C>=5>@BCAC>?B@5;:59>A:>9@>@@A:>C +@DRR015910.217 HWI-ST1182:184:D1KRDACXX:3:1101:16202:2205/1 +TCCATATTGTCTTCAATACGCAGCAAAAAACAGGAAACCAGTTCGCCGCGCTGCTGCTTACCGCAGTTGAGGAATGTTGGCGTGGCTGGCTGAAAGCGTC ++ +CCCFFFFFHFFHGIIJIIGIHGIIIIIJJJIIJIGIJIJGIFGHHGGJGGFFDDDDCDCCCDDDDD@CDDDDC?C@CDDDDDDDDDBDD?CD?CCC>B@B +@DRR015910.218 HWI-ST1182:184:D1KRDACXX:3:1101:16188:2241/1 +CTGAAATAGTCCCAAAAAGCAAGAAATTTTGCACAACTATTAATGTTAAAGCGATAATGATAGTTCACATTATCACTGAATTTTATATTTTGATTTCGGA ++ +@CCFFFFFHHHHHJJIJJJIJJJJJJIJCEC>C@BD;BD@>B;;=@;;? +@DRR015910.220 HWI-ST1182:184:D1KRDACXX:3:1101:16273:2007/1 +NTGTTGACCCGGCAATCACTCAGCCTGGTGTGCTAAAACCGAAGAAAGGGCTGATTATCCTTGGGGCGATTATTCTTGGCCTGATGCTCTCTATCGTGGG ++ +#1=DDFFFHHHHHJJJJJJJJJJJJJJIBGDGIIJJJJJIIIJIIJJIJJJJHHHHHFFFFFFEDDDDDDDDDEEDDDDDDDDDDDDDDDDDEDDDDDDD +@DRR015910.221 HWI-ST1182:184:D1KRDACXX:3:1101:16326:2014/1 +NAAGAGCGTTGCCGAAGCGGCGTTCCACCGCTCCCAGCATGACGTCCTGTACTGTTTCACTGTTGAAGCCGCCGGTAGTCACCGCCCAGTGCAGTGCCTC ++ +#1=D=D>DDAH>>AFHH6FH:G6:;@BAFG>BEB=;?@D9BA>A58?@C>;>;>>:>>;>:@:>CCCC38995;>@9@CAD@CBB<>B?>CCCC:CCCAC +@DRR015910.222 HWI-ST1182:184:D1KRDACXX:3:1101:16394:2062/1 +AAAATACTCGTTTTTCCCCCGAAGTCCGTCAACGGGCAGTCCGTATGGTTCTGGAAAGTCAGGGCGAATATGACTCACAATGGGCGACAATTTGTTCCAT ++ +CCCFFFFFHHHHHJJJJJJJJJJIGIJIGIJJJJJJFGIHHIJGHIGGAEHGFFFFFFCEEEEEDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDEDDDEE +@DRR015910.223 HWI-ST1182:184:D1KRDACXX:3:1101:16418:2107/1 +GGTTTGGAGATTTCGTTCCGTCAGGTTGCTTATCCACAAGAATTTTTCCGGTGGCATTTTTTGACCAGGTAGGTTGTGACAGCTCCATCAACAACCGGTC ++ +@@?DFFFDHHHGHGGGGIGIFHEHGBEHIEIIJJJIJJGGHGGGIIDHJJI@FHGEGGIJ@EFFFFCEC>>AB;CCBBDDDDDDCCCDDDDDDDDDDD>B +@DRR015910.224 HWI-ST1182:184:D1KRDACXX:3:1101:16357:2133/1 +CAATACACCGCGCTGTTTTTACTTACTATCAATCGTTTCTAAACAAGTTTTCATCAGGTATTCTACTGATGACTTGTTATGGAAGTGTTAAGGTAAAAAG ++ +@@@FFFDD;F:FFBHDFHGGADFGBFGCHGGIGHGBFHGAGGHIGEHCHGGIIIIIII=@E:DHHEFHFHFDCD>?BECEEECCC>CCDCDCC@AC@CC@ +@DRR015910.225 HWI-ST1182:184:D1KRDACXX:3:1101:16268:2172/1 +GTCTTTCTGGCTGGCGGTTCAGGGTATTTGAGGTAGCGTCTGACCGTCCGTTCAGAGCAACCAATCTGAGTCGCAATATCGACGATGTACGCGCCCTGCT ++ +C@CFFFFFHHFHHJFII:FHEHII?DEIGECBG?DGAHFHDFFHIJEHJHHFFFFFFBCCEEBDDDCDCD>CDDDBBCCEDDDDDDDADDDDDBDDDDDD +@DRR015910.226 HWI-ST1182:184:D1KRDACXX:3:1101:16620:2076/1 +GAATGACCCGGAGGTCGTGAGGGCGCTCAGGGGCGCATTAAAACACGACCTGAGAACACCAAATCGTCAGCAGAGAAACGGAAGCCCGTTAAAACCACAT ++ +B@CFFFFFHHHFHJEGIHIIJJJGIIJJJJJJJGFDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@DDDDDDDDDDD +@DRR015910.227 HWI-ST1182:184:D1KRDACXX:3:1101:16599:2249/1 +TTTATAAGCTTCCCATACCTGTCGTTAACTTACAGGAAATGGCTTTGCCGATTTTACAGCAGTCCTCCCATCGGCATTGTCGCCCGTGGTTGCCGCCGCA ++ +@CCFFDFFHGDFFGGHIJJGIGGGG?+BB>CDDCDDEEC +@DRR015910.229 HWI-ST1182:184:D1KRDACXX:3:1101:16927:2214/1 +AAGTTATCCCGCAGGATAAACCGGTCAATTTACCGGGCGTGGGGCAATTCTCCGGACTGAAAACAGCGGTCTGGCTGGAAGTCGAAGGCGCAGCGCATTA ++ +BCCDFFFFHHHHHJJJJJJJJJJJHIJJJJJJJJJJJJJIJHHFFDDEDDEDDDDDDDDCDDDDDDDDDDDDDDDCDDBDDCDDDDDDBDDDDDDBDDDD +@DRR015910.230 HWI-ST1182:184:D1KRDACXX:3:1101:17024:2196/1 +GATGTCGAGCTGGTAAAAATAATGCGGGGAATACGATGGGCCAGCGCGCTATCCACTAACTCTTGTACCGCTTGTAAATAGAACTCATCGCCGGGGCCGC ++ +BCCFDFFFHHHHGFGIIJJJJJGIIJJIFIJIIJIIJJJJHHHGFFDDDDDDDDDDDDDDDDDDDDDEDDDDDDDADEEEDDDDDDDDDDDDDDDDDDDD +@DRR015910.231 HWI-ST1182:184:D1KRDACXX:3:1101:17183:2206/1 +GTGGTATGACTCTTCCGATCGAAATAATTCCTGGAGCGTTTCTGCTTCAGGCGACAATGACGAATTTAAAGATATGGAGGCGTCACTGCGCGCCAGTTAT ++ +BBBFDFFFHHHHHJJJJJJJJJJIIJJJJJJJJJJJJIIJJJJJJJJIJIJJJJJHHHFFFFDDDDDDEDCDDDECDDDDDDDDDDDDDDDDDDDDCDDE +@DRR015910.232 HWI-ST1182:184:D1KRDACXX:3:1101:17275:2039/1 +NTACCAACCTGATCCGCACCGCCTTCAGTGAGTCCATGACCTCGATGGTATCACCGTCCAGTACACGAACAACCCGTCCATGAATATCTGCAGACAATAC ++ +#4=DDFFFHHHHHJJJJJJJJJJJJJJJJJGJIIIJJJJJJJIJJJJJ@FHJGIJJJHHHHFFFFFDDDDDDDBDBDDDDEDDDEEEEEECDDDDDDDDC +@DRR015910.233 HWI-ST1182:184:D1KRDACXX:3:1101:17482:2120/1 +TAAAGACTCCGGCCTGCGTACCATGTACGAGCAGGAGAAGGGCGAAAAAGGTCAGACGCGTATCGAAAACTTAGAGGAACTGGTGACGGCAACGCGCCAG ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJIGIJGIGHIJJJJAEHFFDD@EEDDDDDD@DDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.234 HWI-ST1182:184:D1KRDACXX:3:1101:17712:2093/1 +AGCCATCGACCGCGCCACGCTCAGTGGTCAGCCTGTCGGTATCCATTTCTCTGATTCAGCATGGCGCATTATGGTACCGGGCAAAACACCATCAGCCTGG ++ +CCCFFFFFHHHHHJCAC@C455?C +@DRR015910.238 HWI-ST1182:184:D1KRDACXX:3:1101:17536:2219/1 +CCTTAATTAGCGTGTTCATCTTGCCTGCCTCCTGTTTCAGACTGCTTTCCGGCGTTTCATGTGATTAAAGACCAGATGGAAGTCTGCACGCTTTCGCGTT ++ +CCCFFFFFHHHHHJHIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJHIHHHHHHHFFFFFFEEEEEDBDDDDDDDDEDDDDDDDDDDBDDBD +@DRR015910.239 HWI-ST1182:184:D1KRDACXX:3:1101:17888:2173/1 +ATGCTGATATGACTCAAAACGATGTGAAAGATACAGAGTCAGCTTATCGTGGATGGCTGGAGATTGACGAAGAAGATCTTGAGTAAAGCTCGATAATTCT ++ +CCCFFFFFHHHHHJJJJJJJJIJJHIJJJIJJJJJJIJIIJJJJJIJJJJJJJJJIJJJJGIHIHHIIHGHFEFECEEEECDDDCDDDDDDDDDDDDEEE +@DRR015910.240 HWI-ST1182:184:D1KRDACXX:3:1101:17860:2223/1 +GACTTTGGTTGAGATGTTTTCAGCACGCAGTGCTTTTAATGCTGCGGCAACGTCCAGTACTTGTTTCAGTTCATCTGGCGTCTGTTCCCACGTTAACAAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIJJJJJJJIJJJJJJJJJJJJJJJHHHHHFFFFEFEEEEEEEEEECDDDDDDDDDDDDDDDDBDDDDDDD +@DRR015910.241 HWI-ST1182:184:D1KRDACXX:3:1101:18066:2021/1 +NATCTGAACATCTTATATAAGACTATTTAAGATGCATAACTTAGATTCGCAAGATATCTTCTGGTCATTCAAAAACAATTTGCGATATAGATATTCTCAT ++ +#4=DFFFFHHHHHJJJJIJJIJJJIJJIIIGGHIIIHIJJJJJIJJJJJJJJJIJJJJJJJJJIIJJJJJJJGIJHHHHHHHFFFDDDEDDEEEFEEDEE +@DRR015910.242 HWI-ST1182:184:D1KRDACXX:3:1101:18153:2033/1 +NTGCAGTAATGGCTGGGTGGAAATCGACAACAACATTGCAGAGAACGCCTTACGGGGAGTGGCCGTAGGCCGGAAAAACTGGCTCTTCGCGGGTTCTGAC ++ +#1=DDFFFHHHHHJJJJAGHIJJJJJJIJJJJJIGGIIJGEGGHIIJIJGIIJJHHFDDBDDDDDBBDDCDDDDD@DDDDDDDDDDDCBBDDD<@BACCD +@DRR015910.243 HWI-ST1182:184:D1KRDACXX:3:1101:18047:2038/1 +NCCACCGCGAACGCATCGCGTCTTTCAGGAAGCTCAGCTTTTTCCACTGACCATGCTTATTCAGACCTCCACAGGTTACAGACACATGTACATGCGGATG ++ +#1=DDFFFHHHHHIJJJJJJIIJJJJJJIJJJJJJJJJJJJHHHHEHFFFEFEEEEEEDDEEEDDDDDDDCDDDDDCDDDDDDDDDDDEEEEEDDDDDDD +@DRR015910.244 HWI-ST1182:184:D1KRDACXX:3:1101:18184:2101/1 +GACATTACGATTGCAGTACGCATCACGATCAAGCTGTGCACGTCCATCCGATGCCATTTTCTCATTTGACTTTCGGGGGATTACTGCCTTTATACCGTTA ++ +CCCFFFFFHHHHHJJJIIJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJHHHHHHHFFFFFFFEDDDDDDDDDDDDDDDDDDDEDDDDDD +@DRR015910.245 HWI-ST1182:184:D1KRDACXX:3:1101:18117:2187/1 +GTGTGATAGAACCACGGCAGCCTGGCGGCTGCAAATCGGGGTGTGGCAGAATATGAGCTTTCAGAGTAACCATCCAGAATGAGTTCCCATGTTACACAAC ++ +BCCDFFFFHHHHHJJIIJJJIJJIJIJJIIEHJJJJJJJHH?BABDDCDDDDDEDEDDDDDDDDDDCCCDDDDDDCDDDDDDDDEDDDDDDE>CCDDDDD +@DRR015910.246 HWI-ST1182:184:D1KRDACXX:3:1101:18330:2149/1 +CTATAAACATCCCGATGCGGCGTGTAAACCCCTAATTTGTTTGTTTGCCTGAAAAACAGCCAAAAGTGCATTGATAGCGTGAAATAACAGCAGATTGATC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIGJJJIJJJIEHJHHHHHFFFFFDDEEDDDDDDCDDDEEDDEDDCDBDDDDDDDDDDDDDDDDDDED +@DRR015910.247 HWI-ST1182:184:D1KRDACXX:3:1101:18392:2226/1 +GGATGATACCTCTCAGAAAGGGAGCGCAATATGAAGAGCTCAGAAAACTGGGTAAAGGCGATCATCTGGTGAAGCTGAAAACCAGCCCGCAGGCACGAAA ++ +@CCFFFFFHHHHHJJIJJJJJIHIJJJJJIJJJJJIHJJJJJJJJJJJJJJIFHIJIJJIHHFFFFFEEEEDEDDACDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.248 HWI-ST1182:184:D1KRDACXX:3:1101:18713:2066/1 +AACCACGGATGCATTTCTTTACTGGGCGCAGCAGGATTTCTCCGGTGTGAAGCCACTGGTTGCTCAGGTGAAAAGGCATCTCTTTCCCTATAGCCGCTAT ++ +CCCFFFFFHHHHHJJJIJJJIJJJJJJJJJJJJJJJJJJIJIJIJIJHIIJGHHHHHFFFFDEEDEEDDCCCDDD@DDDDDDEDDDDDDDDDEDDDDDDD +@DRR015910.249 HWI-ST1182:184:D1KRDACXX:3:1101:18909:2013/1 +NTATGACTCACAATGGGCGACAATTTGTTCCATTGCTCCAAAGATTGGCTGTACGCCGGAGACTCTGCGTGTCTGGGTTCGCCAGCATGAGCGCTGTCTC ++ +#1=DDDFFHHHHHJJJJJJJJJJJJJIIJJJJJIJJJJJJJJJJJJIJJJJGIJIJJHFFDDDDDDDDDDDDDDDDD3?BDDDDDDDDDDDDDDDDBDDD +@DRR015910.250 HWI-ST1182:184:D1KRDACXX:3:1101:18765:2083/1 +GTTCATCAGAATGATTTTGACATCCAGCTGATTTTCACTGGCGGTCGCCATCTCCTGAATATTCATCATCAGGCTGCCGTCGCCGGAGAAACACAACACT ++ +::=1??DDD>FHF:AEFHBDB=ACE@C?>?@B@>;>3;?;??;;==@BBB-9<@C9>@??<(+4 +@DRR015910.251 HWI-ST1182:184:D1KRDACXX:3:1101:18753:2091/1 +CGCTGGCACCATGCAGCACCAGAGGAACATCCACCACTTCACGAATTTCCGCCAGCCGCTGGAAATCAATCTTCGGCGTTTTGCTGTATAAGCCGTGCGC ++ +CCCFFFFFHHHHHJJJJJJJIJGIJJJJIJJEIJE@GGIHGJJIIIJJJHIJIJIJJHHFFDEEEDDDDCCDDEDBDDDDDDDDDDCDEEEDDDDDDDDD +@DRR015910.252 HWI-ST1182:184:D1KRDACXX:3:1101:18805:2130/1 +GTGAGTTGTATCTGCTGGAAGAAGTCATTTCCTTTATCATCCACAAGGATAAACGCCGGGAAATCTTCCACTTCAATTTTCCAGATGGCTTCCATTCCCA ++ +@BBFFFFFHGHHHJJJIJJJJJJJHJJJJJIIIJJIJGIIIJJJJJJJJJJJJJJJJJJJHHHFFFFFFEEEEEEEDEDDEDEDDDDDDDDDDDFFEEDD +@DRR015910.253 HWI-ST1182:184:D1KRDACXX:3:1101:18894:2226/1 +ACAATGCAGCCGTCGCACAGAATGCGCGGGTGCGCATGGTATCGGGACAGGTAGTCAGCGGCGTTGTTGATGCAGATGGGAATATTCTTATAAACCTGTA ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJJFHIHHFFFF@CEEDDDDDDDDACDDEEDDBDDDDDDDDDDCCDDDCDDDDDDDDEEEEEDDDEEDDDDDD +@DRR015910.254 HWI-ST1182:184:D1KRDACXX:3:1101:19109:2089/1 +CTAGCAGATTATCAGGGTTTACAGAAGAAGTATGACTTCTTTCGAAGTTCTTGTCTGCATTTCCACTCTTATTATATGAAAAGATCCCCCTCATATCGCC ++ +CCCFFFFFHHGHHJJJJIJJIJIIJIJJJJHIIIIJJJHJJJJJIJIHHIIJIIJJJJHIJIIJJJJJJJJJJIJHIJJJHHHHHFFFFDDDDDDEDDDD +@DRR015910.255 HWI-ST1182:184:D1KRDACXX:3:1101:19135:2152/1 +TCCCTGCTACGTTCAGGCTGTCGCCTGAATTATTTCGGTGGGTTCCTGCTTCAACGGGCGGCCTGACTGCACCATCTCTCCACAGGCAAGAACGGCGTGC ++ +CCCFFFFFFHHHFJJJJJIJGIHJJJJIJICHIJJJJIBGHH?DFHEGEIIIJIIJJJGD@=BBDDDDDCDDCBD?CDEDDDDDBDDDDD?CDBDDDDD@ +@DRR015910.256 HWI-ST1182:184:D1KRDACXX:3:1101:19024:2166/1 +ATAAAGCGCCACGCGCGGGCTTTGCCCAATCAAAAACACATTACGTCCGGCATGGGTTTTATGCAGCCAGAGCCAGAAAACGAGGAGACATATCAGGAAG ++ +CCCFFDEFGHHHHJJJJIIJJJJJJJJJJJHHHHHFFFFDEEEEDDDDDDDDDDDDCDDDDDDDEDDDDDDACDDBDDDDDDDDDDDDDDDDEDEEDDDD +@DRR015910.257 HWI-ST1182:184:D1KRDACXX:3:1101:19354:2101/1 +GTATTGCGATGATGCAGGTGCAGAAAATGGTTAAGGAAGCCACGCTGCATCCTAAATCTGTCCGTATTCCGGGTTATCTGGTGGATATTGTGGTGGTTGA ++ +C@CFFF,BFHHHHJJJJJGHJJJIJJJJJJHHJJIJJJIIJJJJJJJJJJJJJJJJJJJJJJJJHHHHHHFFD>BACDDEDDDDDDEDFEEDDDDD@0?C +@DRR015910.258 HWI-ST1182:184:D1KRDACXX:3:1101:19266:2115/1 +GCGCCAATGACGCCAATGTTGCCTTCCGGCATCACGTTAGCAAAAGCCAGCGGCGTGCCGGCAATCATCGACGTACCGCAGTCCGGCCCCATCACCAGCA ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJIFIIGJIJJIIJJJJIIJIJIGGHFDBDDBBD@BDDDDDDDCBD@BBDDDDDBDDDDDDDDDDDDDDDDDD +@DRR015910.259 HWI-ST1182:184:D1KRDACXX:3:1101:19373:2244/1 +CTACCAGGCACTGTTCTGTTAAATAACTGAAGTCAGCGCAAAAAAATCAATGAGACATCATCTCCTCGACCACTTCTTCGCTACTCAACTGATAGGGATA ++ +CCCFFFDFHHHHHIIJIJHJIJJJJJJJJJJJGHIJJJJJJJJJJJIIIIJIJJJJHHHHHHHFFFFDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDCDD +@DRR015910.260 HWI-ST1182:184:D1KRDACXX:3:1101:19627:2061/1 +ATACATGCTGTTACGCACCGCAAAATTGCTACCCTTGCCGGGGTACCGTTGGGATCGATGACCTACTATTTTTCAGGAATTGATGAGTTGTTACTGGAGG ++ +@@@FDDBDHGHHFHIIIG@EGIEEGHI@F?DBA>FEBGGIIGI;B@DE;A??8;;?BDD>@CDCCCCCFDCCCC@,>:@4@A@ACCC:@C8? +@DRR015910.261 HWI-ST1182:184:D1KRDACXX:3:1101:19738:2237/1 +GCTATGAGCGGGAGGCGGCTGCCCAGTTATTCGAAAAATGGCTGGAAACGCATCCGATGCCGCAGGCGCTGTTCACAACGTCGTTTGCGTTGTTGCAAGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJHHGHFFEEEEEDDBDD>@BDBDDBDDDDCDDDDDDBDDD;CCC>CCDBDDD>BDBDDBDB?BACCDDD +@DRR015910.262 HWI-ST1182:184:D1KRDACXX:3:1101:19874:2049/1 +NTACCGATGTCACTGTTCGTGCACAAAGACACGGAAGAGCTGCATCCGCGTACCCTCGAACTGATGGAAGAAGTGGCAAAACGCGTTGAAGTTAACGGCA ++ +#4=DFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJJJIIJJJJJJJJJJJJIHHFFFFDDEDDDDDDDDDDDDDCCCBDDDDDDDDDDDDDDDDEEDDDDD +@DRR015910.263 HWI-ST1182:184:D1KRDACXX:3:1101:19895:2183/1 +CCGTTTTATTACGCTTAAAACCGTGGTGGAAGAGGGTTCCTTTTTGCGAGCTTCGCAAAAATTGTGCTGTACACAATCGACGGTGACTTTTCATATTCAG ++ +BCCDFFFFHHHHHJJJIJJJJJJFHIEHIIIJIJJJIJJJJJJJJJJIIIJJHHHGFFDEDEDDDDDDDDDDEDDBDDDDDDD@DDDDDDDCDEEEEEED +@DRR015910.264 HWI-ST1182:184:D1KRDACXX:3:1101:19914:2238/1 +GATGAATATAATGCTAAAAACGCCATCTTCACCGTTTCGGAAGCGATGGAGCACTTCGCCTATTTGCCGACCGGATTGTATGTATTTGCGTATAAAAAAG ++ +B@CFFFFFHHHHHJJIJJIJJJJJJJJJJIIIJJJJJJJIJJJJJHJJIGIJJJJJJHHHFFFFEEEEDDDDCDB@BDCDDEEEEEEEDDDDDDEEDDDD +@DRR015910.265 HWI-ST1182:184:D1KRDACXX:3:1101:20109:2070/1 +GCAATCGGTGTAGTGCTCGGCGTTCTGCTGTCGCGTCGTTAATTATGGCGGACACTCATCACGCGCAAGGGCCCGGTAAAAGCGTTCTGGGCATCGGGCA ++ +CCCFFFFFHHHHHJJJJJJJFHIBIJHGIIIGIIJHDCCDBDDCDDD8CDDCCB<@D@DDDDDDDDDDDDDDDDDDDB? +@DRR015910.273 HWI-ST1182:184:D1KRDACXX:3:1101:21058:2060/1 +CTCTTCAGTCATGAATCGCCTCCCGTGGGATGGCTTCCACGCCAGATTCACGCAGCGCAGCCAGAACCTGCTCAAGCGCAGGTTCAATCATTGCTTCAAC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJHIJIIGGIHHIIJIIGIJJJJJJJJIJJJJHHFFDDDDDDDDDDDDDDDDDCDDDDDBDDDEEDDDEDCDDDDDD +@DRR015910.274 HWI-ST1182:184:D1KRDACXX:3:1101:21094:2187/1 +ATTCCCAACGGCGCGACGGTGGAGCGCGAGATCCCCAGCGATTTTCAGATGGGCGATACCATCACCCTCAACCTGAAACGCCCGTCGTTTAAAGATGCTA ++ +CCCFFFFFHHHHHJJJJJJFIJIJJJJHFDDDEDDDDDDDDDDDDEDDDDDDDDDDDDDCDDDDDDDDDDDDDDDCDDDDDDDDDDDBDDDDDDDDDDDD +@DRR015910.275 HWI-ST1182:184:D1KRDACXX:3:1101:21244:2187/1 +GTCGAGCACTTGTTACTGGCGCTGCTCAGTAACCCATCTGCCCGGGAGGCGCTGGAAGCGTGTTCTGTGGATTTGGTTGCGCTCCGTCAGGAACTGGAAG ++ +B@@FDFFFHHGHFHIJJJFGJFFGGFHIGCGGGIJD?FDFHIJJBG/;AEEDACDBDDBB8;'9@CCDCC@:@>C@A<@ADDBDBDBDDBD@?A:@CACC +@DRR015910.276 HWI-ST1182:184:D1KRDACXX:3:1101:21262:2086/1 +TCGTCAATCAGCGTGACCAGTTGCTCAAGCAATAACATTAAGTCGCGCTGGCGAATATGTTTTTGCAGTAGTTCGAGAATCGCAATCCGCCGATGTTGCA ++ +CCCFFFFFHHHHHIJJJJJJHJJJJIJJJJIJIJJJJJIJJJIIJJJJJIJIJHHFFFECEEEDDDEDDDDDEEDBDDDDDDDDDBDDDDDDDDDBDDDD +@DRR015910.277 HWI-ST1182:184:D1KRDACXX:3:1101:21363:2226/1 +CGCCATATTGCTGCAATTCTAGTGTCAAAAAAATGCGATGTTGTTAGGAATTAGTTTATAAACAGACTTTTTTGATCGCGGTCGCTTCCCGTGTAACAGG ++ +CCCFFFFFHHHHHJJJJJJJJJFHGJIIJJJJIIJJJIIJIIJHJJJJJJJIJJFHIIJJJJJJJHHHHHFFDDDDDDDDDDDDDDDDDDDBDBDEDDDD +@DRR015910.278 HWI-ST1182:184:D1KRDACXX:3:1101:1282:2348/1 +CCCTTATTTTATAACGAAAATTCCTAAAGGCATTAATGGATGAAGAAGGGGTTTAATAAACCTCGGTTTTTAGCAATTAGTGCTATTCTTTGTTAAATAT ++ +@@CFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJIIIJJGJIIJJHIIJJJGGHHIIJJIIJIJJHEHFFFFEDDECEDDDDDEDEDEFEDDDDDDCDEE +@DRR015910.279 HWI-ST1182:184:D1KRDACXX:3:1101:1645:2396/1 +GCGTTTAATGCGCAAAAACAGGCGCTGAAATGGGGTCTGGCTGGTTTTTCCAGCACCACGGTATGGCTGGTATTTGGCGCATTTTTTTTTGCATTAGGGT ++ +@@@DDFFFFF>FHGIIIIIGGEBHG?F@DFEHGIIHEHHIIIII7@@EG?EEECBDDFCCC==@CABCBB((5;;5::<5005:(4CDCDCCCCCCDC@CCDDDCDDDACDDCCDDDDDCDCDDDBDDBDDDD +@DRR015910.286 HWI-ST1182:184:D1KRDACXX:3:1101:2029:2325/1 +GTGTATGGTCGTCCGAAACACATCTACAGCATCTGGCGTAAAATGCAGAAAAAGAACCTCGCCTTTGATGAGCTGTTTGATGTGCGTGCGGTACGTATTG ++ +@@@FFFFFDHHHHGIJJIIJJIIGJIJJIJJGIJIIJJHGIIJIIIJJJJIJGJIJHHHHFFDDDEDCDDEDDDDDDDDCDDDCDD@BDDD<>BDCDDDD +@DRR015910.287 HWI-ST1182:184:D1KRDACXX:3:1101:2077:2437/1 +AGCTGACGCTCCAGCCGGTTTTCCTGTTTCGCTTTCATCAGTGTCGCGATCAGTCTGTCCAGTGGCATAAACAGTACCCGATGTCCCGCATCCACCGCTT ++ +CCCFFFFFHGHGGJIIJJFGIJJJJIHGIHIJJIIIEGGGEIGIJJIJIHHFCHFFFFFDEDEEEDCCDCCDDDCACACDDDDDDECDBBDDCCDDDDDD +@DRR015910.288 HWI-ST1182:184:D1KRDACXX:3:1101:2188:2491/1 +GGCATTCTGCTCTGCCTCCCGTGCCTGCTGACGGCTGTACTTCTGCATGACCAGCGCGGATTTATGGCGACTGCGCTCCCTGACACGAAACCGCACCGAC ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJIJJJJJJJJJJIJJJJJJIJIJJIJJJIJJJHFCDDDDEDDDDDDDDDD@BDBBDDDDDDDDDDDBDDDDDDDD +@DRR015910.289 HWI-ST1182:184:D1KRDACXX:3:1101:2354:2254/1 +CTCCTTCCCATAGACGGCTTAGGGGGGTGCCCCTATTAAGTTGTCAAGCATGTTATGACCCCTGCGGGGTATAAAAAGTCCCGTCGCGCATCATGGCGAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJD5:BDDDDBDDEEDEEDCCEEDDDDDDEEEDDDDDDDDDDDDD5>CDEECDDCDDDDBBDDDDDDDCDDDDDDD +@DRR015910.290 HWI-ST1182:184:D1KRDACXX:3:1101:2459:2310/1 +CTCTTGATCGAAGCCCCGGTAAACGGCGGCCGTAACTATAACGGTCCTAAGGTAGCGAAATTCCTTGTCGGGTAAGTTCCGACCTGCACGAATGGCGTAA ++ +@@@DDDDDHHHH=GHIIIIG@GIIIIIIIIHEECCCECCCCCBB<@BCCCCCACCCBBBBBCCCCCCCCBBB<@?>CDDCB@BBBCBCCBBBBCCBBBBB +@DRR015910.291 HWI-ST1182:184:D1KRDACXX:3:1101:2694:2334/1 +GCGATGGCCCTGACATTGGTCGCGCCACAGTCGAGTACCAGGATAACTTCTTGTTTCATAATCGCTCCTGCAATATAGCCGGATAACATTGCTTATCCGG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJJIJJJJJJIJJJJJJJJJJJJHHHH=7=7?DEDDEEDDDDDCDDDDDDDDDDDDDDDDDDDDDCDD +@DRR015910.292 HWI-ST1182:184:D1KRDACXX:3:1101:2684:2455/1 +ATTTAGCGCGCGATATGCTGCAAATGTTACTCGATTTCCTGCCTGAAGTTCGCAACAAAGTTGAGGAACAGCTGGTTGGAGAAAACCCAGAAGGCCTGGT ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJIJJIIIJHHHFFFDECCEEDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.293 HWI-ST1182:184:D1KRDACXX:3:1101:2605:2485/1 +GATATATTCGTCAGTGGTCTGCTTGATCTTATTAGCAATATCTTCAGCAGCACCCAGCGCATATTCAAAGAAGCTAATCTGTAAACGCAGGTCATTCAGG ++ +CCCFFFFFHHHHHJIJJIJJJJJJJJJIJJIJJJJJJJJJJJJJJGJJJJJJJIJIJJJJJJJJJJJJHHHHHFFFFFFEEEFEEEDDDDDDDDDEEEDD +@DRR015910.294 HWI-ST1182:184:D1KRDACXX:3:1101:2903:2337/1 +TGGTGAAACCATCCACAAAGGCCGGGCAGCGATGGAGCGGGAGTTCCCCGAAGCACTGGAACGGATGAAAGAGAGACTGCCACCGTATCTCATTATGGTT ++ +@BCDFFFFHHHHHJJJJJJJIJJJJJJJJIJJJJJIJIIJJHFBFFFEEDDDDDDDDDDCCDDDDDDDDDDDDDDBDDDDDDCDDBDDDEDDEEEECDDD +@DRR015910.295 HWI-ST1182:184:D1KRDACXX:3:1101:2928:2460/1 +GGCAGCATTCCTCTTCCGGCCGGATGACCCGGGTTTCACGGGGAAGTGAGGTCGGTAACGGTTTACGGGCTGAAGACTGGCGCAGGGCGGATGCTGTCTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJJJJJHHJJJJJJJHDFFCEEEEEDDD?BDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.296 HWI-ST1182:184:D1KRDACXX:3:1101:2894:2496/1 +CAGCAGGCTTTCTCCGTTACGGCTGCCCTGCAGGGCCACGAACTGCGCATCCCCGCTGCCTTTTACCCGACCTTCACCGCTGAATCCCCGCAGCCCGTTT ++ +CCCFFFFFHHHGHIJJJBDDDDD +@DRR015910.297 HWI-ST1182:184:D1KRDACXX:3:1101:3067:2424/1 +ATGATTAATAGCGCCGGAATGTTAATCGGCTATGGGGTAATTAAAGGCAAATATCTCTCGATACCGCAAAATTTCCGAGTGAATAATATTCAACTGGATA ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJJJJ@FHIJJJJJJJJJJJHHHHHHGFFFFDEDDDDDDDDDDEDDDBDDEEEDEEEEEEEDDDDDDE +@DRR015910.298 HWI-ST1182:184:D1KRDACXX:3:1101:3001:2424/1 +GTACACCGGAGACTCTGCGTGTCTGGGTTCGCCAGCATGAGCGGGATACCGGGGCGGTGATGGAGGGCTCACCACCGCTGAACGTCAGCGTCTGAAAGAG ++ +BB@FFFFFHHHHHJJJJJJGIIIJJJJFIJIJJJJJJJJIJJJJHFFFFEDDDDDDDB@DCCCBBBDDBDDDDDDCDDDDB +@DRR015910.304 HWI-ST1182:184:D1KRDACXX:3:1101:3677:2260/1 +GCTAAGCCTGGTATATAACTCTGAATTAATCATCGTTTTGTCGGGAAGCGAGTAAACTTAAAGGATATCTTCAGACTGTCTCTTATACACATCTCCGAGC ++ +CCCFFFFFHHHFHIJJJJJJJJJJIJJJIJJJIJJHJJJIJIJIJEIJJJJJFGIJJJJJJHHHHHHFFFFFFEECCCEEDDDDDDDDEDDDDDDDDDDD +@DRR015910.305 HWI-ST1182:184:D1KRDACXX:3:1101:3578:2420/1 +GACCAGCCCAAAGGTAGAGATAACGGTAATCACCGGTACAACCTGGAAGCTGCCGAACAGAATCATAAATTCGCCGACGAAGTTACCGGTGCCAGGCATC ++ +@BCFFFFFFFHHHJFGGGIJJHJIIHCCFICGHIJJF@GGHIIJJIIIFIJIGIIHHHFFFDCEEEEECDCCDBDDDDBDDBD@CCCBDBBDDDDCCBDDDDDDDDDDDEDEDDDDDDD +@DRR015910.311 HWI-ST1182:184:D1KRDACXX:3:1101:4436:2257/1 +GTTACCAGATCATCCTGGTAGACGATATCGGAGGGGATCTCACGACGAATAATTTTGCTGAATATAGTTTCTTCTGCCACGACATTTTCCTTTTTCAAAT ++ +CCCFFFFFHHHHHJJJJJHJJHIJJJJJJJJIJJJJGJGIJJJJJJJHHFFFFFEEEEEEEDDEEEDDFEEDDDDDDDDDDDDDDDEECDDDDDDDDDDD +@DRR015910.312 HWI-ST1182:184:D1KRDACXX:3:1101:4443:2444/1 +AGGCAATACCGCTTCGCTTTCCATCGCCGCCATCACCAGCGCATGGTTTGCCACCACCACTTCCGCTTCCTGAATCTCCCGACGAGCGACAAAAAACGGG ++ +CCCFFFFFHHHHHJJJJJJJJIGJJJJJJJJJJIJJIIJ;FHGHHHHHFFFFEEEDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.313 HWI-ST1182:184:D1KRDACXX:3:1101:4573:2340/1 +ATGGAATACCGGTGTATAGTCATTTTTTCCTAATGCAAAAGCGACAGCATAAAGGTCTGCTGCTTGTTGGAACTGTTCTTTTATCTGATAAATAGCTGCG ++ +CCCFFFFFHHHH@FEHIJIJJIJJJJJJJIJJJJJJJJJJJIJIJJJJJJIJJJJEIIIHHHHHHFFFFDEEEEEDDDEDDDDDDDECEDDDEEDDDDDD +@DRR015910.314 HWI-ST1182:184:D1KRDACXX:3:1101:4513:2360/1 +CGCTGTAGGTAAACGTCTCGCACAACTGAAGTTGACCGATCACGGTTGCTTCCTTAACCGCGTCATTCGTAGCCAGATTGAGATGCCGATAGATGACAAC ++ +CCCFFFFFHHFDHIIJJJJIJIJJJJJIIJIIJJJJJJGJIJJGIEHIIJJJHHHHHHFEDDDDDDEDDCCDDDDABDDDDDDDDDDDDDDDDDDDDDCB +@DRR015910.315 HWI-ST1182:184:D1KRDACXX:3:1101:4948:2271/1 +GTATCCCGCTCATGCTGGCGAACCCAGACACGCAGAGTCTCCGGCGTACAGCCAATCTTTGGAGCAATGGAACAAATTGTCGCCCATTGTGAGTCATATT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJJJJHIIJJJHHDCDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDEDDDDDDEEEE +@DRR015910.316 HWI-ST1182:184:D1KRDACXX:3:1101:4911:2306/1 +CAATAAAACTGAAAATCCGCCGCTGTTCCGCGCGCTGGCGCTTCGTCGCAATCAGACTCTGCTCACTTTGCACAGCCTGAATATGCTGCATTCTCGCGGC ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJIJJIJJJIJJIJHHFFFDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDAADDDDDEEEDEDDCDECEDDDDDD +@DRR015910.317 HWI-ST1182:184:D1KRDACXX:3:1101:4978:2325/1 +CATCGCCACCAGCGGGATCGCCGCGATATCCTGGAACAGCAGCACCGCAAAGGCACTGCGACCCATTTGCGTCACCATCAGATTGCGTTCATTCATCGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJHHHHHFFFFFEDDDDDDDDDDDDDDDDDDDDDDDEEDDDDDDCDDDDDDDDDDDDDDDEEEEEEDDD +@DRR015910.318 HWI-ST1182:184:D1KRDACXX:3:1101:4867:2355/1 +TCGCCATATAGCTCGCCAGATTTGGGTGTCGACATAATTAAATGTTTCTTTCGCCACGACGTGTCGGTGATAGGTAGCCCATCCCCGGATTACCGGGTTT ++ +=?;;DDDDH?FAHIIIA7:FFFDFFH):?FGIGGHIGFG;C,5::@A?>CA2?@<559>A@5<.)8< +@DRR015910.319 HWI-ST1182:184:D1KRDACXX:3:1101:4895:2446/1 +GGCAAATAATATGTCGTCCCGTCAGGCGTGCCATGCCGCCCGGTATGTTGTCGCCCGGGTTCTGCGAGGACTGTTCTGGTGTCTGAAGTACACCGTCATT ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJDIJJJJJIJJJIJJJIJFHIJHHHHHHFFFDDD?BDDDDDDBDBDDDDDCEDDDDDDDDCDDDDDDDDDDDDDE +@DRR015910.320 HWI-ST1182:184:D1KRDACXX:3:1101:4860:2454/1 +GATCGAAACCGGTCATCCGAAACGCGGCGATATCGTGGTCTTTAAATATCCGGAAGATCCAAAGCTTGATTACATCAAGCGCGCGGTGGGTTTACCGGGC ++ +CCCFFFFFHGHHHIJJJJJJJJJJJJJIIHHFFFDCADBCCDDDDDEEEDEDDDDDDDDDDDDD(:ACDDDEDDEDDDDDDDDDDD>BDDBBDDDDDDDB +@DRR015910.321 HWI-ST1182:184:D1KRDACXX:3:1101:5220:2425/1 +GTTCAATTATGGATATCGGTTTTTACTGTCTGGCGTCGGCGGTGGCGTTATTTGGTGAGCCGAAAAGCGTGCAGGCAACCGCCAGTTTGCTGGCAAGCGG ++ +CCCFFFFFHHHHHIJJJJJHJJJJJJJJJJJJIIIHIJJIJH?DECD>BBDDEEDBDDDDDDDDDDDDDDDDDDDDDDDADDDDDCDEDDDDDDDDDDDD +@DRR015910.322 HWI-ST1182:184:D1KRDACXX:3:1101:5030:2480/1 +GTGCCATATAGCGTGATGGTTGAGCAATCTTCTTCTTACTCTTCCGGTATTGAACTGATTCGCCAGGCGCGGCGGGAATATCCGCAGCTGGATGGCGTGT ++ +CCCFFFFFHHHHHHIIJJJIJJJJJJJJJJJJJJJJJJIJGIJJJJJGIJJJJJJJJJJJIIJJJHHHFFDDDDDD99<@>3@?@5<>?@C8:>BA>5<0 +@DRR015910.323 HWI-ST1182:184:D1KRDACXX:3:1101:5144:2490/1 +ATTTTAGCCCACAGTTCTCTATGAGATATCATTTGATCTCCATCAAGCTCGGCTTCTTTCGGGGCTGAATGTAATAATTCTCTTGCGTCTTTATTAATTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJIJJJJJJJJJJJJJJJJGJJJHHFFFFEEFEEEEEFEEDDDDDDDDDDDDDDEEEED +@DRR015910.324 HWI-ST1182:184:D1KRDACXX:3:1101:5567:2260/1 +GAGTAATGATTTTGCCGAAGCTGTTTCTCAGCTGGCAGCACTGGCCGCTGCAGGTAAGGATGTTGCGGCGCTGAACGGGGTGGATGTCCGTGCTTTCACC ++ +B@CDDFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHJDGIGGIGIJJBEHHHHHHFFFFDDDDDDDDDCDDDD9@DDDDDDEDBDDDDDDDDD +@DRR015910.325 HWI-ST1182:184:D1KRDACXX:3:1101:5509:2326/1 +GTACAACACCGCAGCATGTTCACCACCGCTGTCAGAACCCGCGAAGAGCCAGTTTTTCCGGCCTACGGCCACTCCCCGTAAGGCGTTCTCTGCAATGTTG ++ +CCCFFFFFHHHHHJJJJIJJIHJIIJJJJJJJJJJIJJJJJJJJHFFEDEEECDEDDDDDDDDDDDDDBDDDDDDDDDBDDDDDDDDDDDDDDDDDDDED +@DRR015910.326 HWI-ST1182:184:D1KRDACXX:3:1101:5637:2341/1 +CTTCTATTGTTACAGCGATTTCTTTACCAAACAGCTGAACCACCATCAAGATAAAGATAGCCTGAACATTCATCGCACCATTTTGTTACCAATGGCAAAA ++ +CCCFFFFFHHHHHJJIJHIJJJJJJIJJJJJJIJJJJFGHIJJJIIJJJJIJJJJJJJJIJJJJJIJIJJHGHHHDEFDEEEEEDDDDDDDDDDDDDDDD +@DRR015910.327 HWI-ST1182:184:D1KRDACXX:3:1101:5594:2347/1 +AATGATAGGCGCTCACCTGACAACGCGGTAAACTAGTTATTCACGCTAACTATAATGGTTTAATGATGGATAACATGCAGACTGAAGCACAACCGACACG ++ +CCCFFFFFHGHHHJJJJJJJJJJJJJJJEHIJIJJJJJJJJJJJJIJIJJJJHHHHHHCFFFFFEEEEEEDEDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.328 HWI-ST1182:184:D1KRDACXX:3:1101:5931:2264/1 +TGATATCCCCGTTCCGGTCCAGGAGCCGGGCAGTGGTAAAACAAGAACTGCCCGGCTGTGGGTCTATGTCCGTGATGACCGTAACGCCGGTTCACAGATG ++ +CCCFFFFFHHHHHJJJJIJJJJJHIIIJJJIJJGHJCDHIIIJJJIJIJJJHHHFFDDDDDDBDDDEEEEEDDDDCDEDDDDDDDDDDDDBDDDDDDDDD +@DRR015910.329 HWI-ST1182:184:D1KRDACXX:3:1101:5851:2409/1 +GATTTTCTCTGTCTGCATAACATTCGATATCCGCGCCATTACCTGTCATCATCTAAGCAATGACGACCCTGTTTCGCTTGCATCCCCGGTGAGTTTTGCC ++ +BBCFFFFF4DHHHJIIJJIJJJJJIJJJIJJJJJJJJJJIJJJJJJJJJJJJJJIJJJJJJJIJJIHHFFFFEEECDDDDDDEDDDDDDBDDDCDDDDDD +@DRR015910.330 HWI-ST1182:184:D1KRDACXX:3:1101:5754:2450/1 +ATCTTTTAGAGTTTTGCTTAGGTTCATCTAATGTAAGGCTGGCTACTTTAAAAAGAATTCGTACTGGTGATATAATCATAGTTCAGAAACTTTATAATTT ++ +CCCFFFFFHHHHHJJJJJJJJJEHJJJJJJJIJHIJJJJJJJIIJJJJJJJJIJJJJJJIJIJIJJJHIJJIJJIHHHGHHHFFFFFFFEEEDEEEEFEE +@DRR015910.331 HWI-ST1182:184:D1KRDACXX:3:1101:5820:2456/1 +CTGTGGCACGTCTCATGGCGGTTATGGGACTTGCCGGTGTTCTCCGGGGTAAAAAGGTCCGTACGACCATCAGCCGGAAAGCCGTTGCCGCAGGCGACCG ++ +@CCFFFFFHHHHHJJJJJJJJEGHGGIJCHIIFIIJJ;F@FHIIJIHHF,9ACDDDDCCDDABDDDDD@DDDDDDDDBDDDDDD@BDDCDBDDDCD@BDD +@DRR015910.332 HWI-ST1182:184:D1KRDACXX:3:1101:6043:2274/1 +CGTAGATAGCGGTCATAAAACCGCCGCGAAGCAGTCGACCGATCATTCGAGTTCCACCTTTTTATTCAGCAGACGAGAAGCGCGCCAGTAAACCAGCAAC ++ +CCBFFFFFHFHHDHIJJJIJJIJJJJJJIGIJIJHHHGFFDBDDDDEEEDDCBDDEDDDDDDDDDDEDDDDDDDDDDDDDDDCDDDBDCCDDDDDDDDDD +@DRR015910.333 HWI-ST1182:184:D1KRDACXX:3:1101:6129:2300/1 +GGGTGACATTCCGCTGGAAATCAAAGACTGGTCGCAGGTCGAGCAAAATCCGTTCTTCTGCCCGGACCCGGACAAAATCGACGCGTTAGATGAACTGATG ++ +B@@ADDFFHHHHHIJJJJJIIJJJCFDG@GG?CDBDHI@?D0@AGHIIIJ9AHGHHEFCDFFEDDBDDBDD3>BBCDDCBA9<5>BB@BCC:C>ACCC>A +@DRR015910.334 HWI-ST1182:184:D1KRDACXX:3:1101:6139:2361/1 +CGATAAGGCTGCATTAAATCGAGCGGGCGCAGTACGCCATACAAGCCGGAAAGCATTCGCAAATGCTGTTGGGCAAAATCGAAATCGTCTTCGCTGAAAG ++ +CCCFFFFFHHHHHJJJJIJJJHJIJJJGIFGIHIIJIHHHFFFFFDDDDBDDDDDDDDEDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.335 HWI-ST1182:184:D1KRDACXX:3:1101:6232:2420/1 +CCGTAGTTCTGGCAAGCGCGGTAATCCTGGCCTTCAATATCCATGCCGTGCGCAGCCCAGGCAGAAGGACGATACACTTTGGTCTCTTCAACGTTGTGCA ++ +@CCDFFFFHGHHDIJIGHBHI:FGGEHIIJDGGIIIJIGEGJJJJJJJJHIJHDHBEDDD?BA@=?AB??BBDBBCDCCDDDACDCCCCDCCDBCDDDDE +@DRR015910.336 HWI-ST1182:184:D1KRDACXX:3:1101:6419:2336/1 +CAACCATTTTCTCTGCGATTTCTTTCGGCTTACCAGACTGCATCGCGATATCCAGCTGTACCTGGTATTCTTTTTCTACCACTTCAGCGGATACGTCTTC ++ +CCCFFFFFHHHHHJJJJIJJJJJJJJIJJJJJJJJJJJJJIIJJJJJJJIJJJJJJHHHHHFFFFBEEEFEEEEDDDEDDDDDDDDDDDDDDDDDCDDDD +@DRR015910.337 HWI-ST1182:184:D1KRDACXX:3:1101:6257:2406/1 +TAATTCACCACTGAATATTGCTGCGCAACCCGGCAAAACCCGTCTGCGAAAATCACTGAAATTGTGGCAGGGGGTAATGATGGGTCTGGCCTATCTCACG ++ +CCCFFFFFHHHHHIIJJJJJJJJJJIJIIIJJJGIJJJIJJJJJJIIJGGFFFECEEEEDDDDDDDDDDDD'5>55?AC>@>@B(9???(@CDDDDECDBBCCD>ACDCEEDCD +@DRR015910.341 HWI-ST1182:184:D1KRDACXX:3:1101:6582:2331/1 +GAATTACGACAACTTTATGGAAGAGTTTACCGCGATTCTGCACCGCCAGGCGTTTACCGTTAGCGAGAGCAACAAGGGGTAAGCCATGGCCAGAGCGCGT ++ +CCCFFFFFHHHHHJJJIJJJJIJJIIIJJJJJJJJJJGJJJJJIJJJJIJHHHFFDEEDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDD +@DRR015910.342 HWI-ST1182:184:D1KRDACXX:3:1101:6720:2353/1 +CATCAAGATAAATTTCATGGCCCGCCTCCCGGTAGCGAGAAATTATCGGGGCGCTGGTTTTCGGATCGGCAAACTCGCGTTCAGTGAGTTCAAGCGCGAT ++ +CCCFFFFFHHGHHJJJIJJJGIJIJJJJJJIJGIJIJIIIJJJJGIIJJJHFDDDDDACDDDDDDDDDDB9BDDDCBDBBDDDD@CCC>CCDEDDDDD@D +@DRR015910.343 HWI-ST1182:184:D1KRDACXX:3:1101:6637:2369/1 +TCATGATGATGTTCAGGAAAATCCGCCTGCGGGAGCCGGGGTTCTATCGCCACGGACGCGTTACCAGACGGAAAAAAATCCACACTATGTAATACGGTCA ++ +@CCFFFFDHFHHFEGHGIJIHJJIJJIGGGDGIHIFIJJJGHEEEFHFFFFDDDDBDDDDBDDBACCBBB@;@BCABDB@A@?C@DDDD>@CDDDBDCDD +@DRR015910.344 HWI-ST1182:184:D1KRDACXX:3:1101:6626:2499/1 +GACAATACCTTCCTGTGGGGAGAAAAAGCGCAGCGTAAATAAAGGCGTATCAAGCTGCCAGGTACGTTCACGCACATCACGGGGGGCAGCATAGACCACC ++ +CCCFFFFFHHHHHJJIJJJJIJJJJJJJIJIJJJJIJJJIJJJGGIIBHHHFFFFFFEEEEDCDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDD +@DRR015910.345 HWI-ST1182:184:D1KRDACXX:3:1101:6994:2262/1 +GTGCATCCGTTCTTAATTCAATCTGCTTCTGTGCTTCCGGCAAAGTTATCACCATATCCTCACCCTGCTGTCTGGCGCTGATTGCCACTTTCTTTCCGTC ++ +BBCFFFFFHHHHHJJJJJIJJJJJJJJJJJJIJJJJJJJIJJJJJGHIJJJJJJJJJJJJJJJIJIJJHHHHHHFCEDDDDDDDDDDDDDDDDDDDCDCD +@DRR015910.346 HWI-ST1182:184:D1KRDACXX:3:1101:6789:2347/1 +CTCCCTCCGTGGTTTCTGCCGGACGGAAGCGATCACCTCATCGTTAATTTCCGGTGGCTGTGGTTCAGGTTGTTTGTCCGGTACCGCCGGCGCTGACGGT ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJIJJJJJJJIJJHHHHFFFFFFDDDDDDDDDDCDDDDDCDDDDDCDDDDDDBDDDDDDDDDDDDDDDDB +@DRR015910.347 HWI-ST1182:184:D1KRDACXX:3:1101:6980:2362/1 +GCCCTGAATGATGCCGGACTGTCCGGTGCCGCACGGGACGCGGAGAAGATGAAGAAAGGCGATGCCGCTGAACATGCAGAGTTCCACATGAAAGACAACC ++ +CCCFFFFFGHHHFIJGIJJJJJJJIIDDGIGIIGIGGBGHFABBD@DDDCDDCCCCDABBDDBDDCDDBBBCDAC@@CDDD:CCCCDDDDDDCDDDACDD +@DRR015910.348 HWI-ST1182:184:D1KRDACXX:3:1101:6866:2459/1 +CAGAATATTGTGCTCACTACGGCTCAGTAATATGGGTCGGCGATAACCATCTACCCGATGCAAAAAATGGGTATGTGACTGGAAATCAAATACATCGCGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIJJJJJCGIGGIIJJJJJIIJHHHHHFFDDDEEDDDDDDDDCCDDDEEDDDDCDDDDDDDDDDDEDDDDD +@DRR015910.349 HWI-ST1182:184:D1KRDACXX:3:1101:7250:2295/1 +TGGCAAACCGCCAGCGGCTCATCGCGCGGGCTGGAAAGATACCGTTAAGGTAGAAGGTAATGTCAGCGAAGTGCTGGTGAAGTTTAATCACGATGCACCG ++ +CCCFFFFFHHHHGJJJJJJJJJJJJIIJJHFDDDDDDDDDDDDDBDDDDDCCDDDDD>CDEDDEEDDDDDD@CCECCCCDDDCCEEDDCDDDDDDDDDDD +@DRR015910.350 HWI-ST1182:184:D1KRDACXX:3:1101:7062:2389/1 +GTATTACCAGGGGCAGGATCTGCTTAAGCACGATCCGCAGGCGCAGAAGCTGCGTCGGCAGAAAATCCAGATCGTCTTCCAGAACCCTTACGGTTCGCTG ++ +B@CFFFFFHHHHHJJJJJJJJJJJJIJJJJJJJJJJJJJJJIJJJJIHHHHHHFFDDDDDDDDDDDDDDDDDDDDBBDDDDDDDDDDDDDDDDCDDDDDD +@DRR015910.351 HWI-ST1182:184:D1KRDACXX:3:1101:7047:2461/1 +GAAGATACCGTGGTTAATGGCGTTGTTGAGGAACAGGATTTTCGCCGGTTCAACAAAGATAGATGCCAGTGGCAGCATGTCATGGACAACCATGAAGTTA ++ +CCCFFFFFHHHHHIIJJJJJJJJJJJJIJJJJJJJJJIJJJJJJJJJJHHHHHFFFFFEEEEDEEDDDDDDDDDDDDDDDDEEDDDDDDDDDDDDDDCDE +@DRR015910.352 HWI-ST1182:184:D1KRDACXX:3:1101:7441:2254/1 +GTTGCGTCTCCCATCACCGCGCCACAGTCAGGGCAGTTATCCTCGCCAGTCTGATTGCAGGGTGTTCCCTCCTCCGGTTCGCTGTTCTGGTGCTGTTTAT ++ +CCCFFFFFHHHHHJGIIIJJJJJIJJIIJJJJJIIJIIJJIJJJIGJGHHHGGHFFFFFFEDEDDBDDDDDDDDDDDDDDDDDDDDDEDDCCDDD@CCDD +@DRR015910.353 HWI-ST1182:184:D1KRDACXX:3:1101:7295:2317/1 +GTGTTTGCCCGTCGGGTAGCGCCATTAATACTTCGCACTGCTCTGCGCCGCGCTCAATATGACTAATAATACCCGGTAATTGGTTGTCGGCGTTTTGCGC ++ +CBCFFFFFHHHHHJJJGIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHFDDDDDDDDEDEEDDDDDDDEEDDDDDDDDEEDDDDDDDDDDDBDDDDDDD +@DRR015910.354 HWI-ST1182:184:D1KRDACXX:3:1101:7297:2355/1 +GAACTAACCGTGTTTGTCGATAACGCCCCGGCAATTAAGGTCTATAAAAAATACGGCTTTGAAATTGAAGGGACTGGTAAGAAGTACGCATTGCGTAATG ++ +CCCFFFFFHHHHHJJJHJJIIIJJJJJJJJJIJJJJIJJIHHIJJJJJJHFFFFDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDCDDDDDDDDDDBDDDD +@DRR015910.355 HWI-ST1182:184:D1KRDACXX:3:1101:7719:2278/1 +GGTTTTGCCCTTTCGGGGATCTCGATTGCTTATGGATTTTCGAAATTCATCATGGGTTCGGTATCGGATCGCTCGAATCCGCGCGTTTTCCTGCCCGCAG ++ +BC@FFFFFHHHHHJJJJJIJJIJJGIIJJJJIJJJIJIJJJIJJJJJEIJJJJJJJEHIHHDFFFDDDDDBDBBB@CCBCDDDDD>BDDACDCCBDDD@@ +@DRR015910.356 HWI-ST1182:184:D1KRDACXX:3:1101:7652:2356/1 +CAACGGTTTTACTCATTGCGATGTGTGTCACTGAATGATAAAACCGATAGCCACAGGAATAATGTATTACCTGTGGTCGCAATCGATTGACCGCGGGTTA ++ +CCCFFFDFHHHHHJJJJJJJJJJHIIGIJJJJJJIJIIJJJJJIJJJJJGGIJJJJJHHHHHFFFFFFFFEEEEECDDDDDDDDDDDDDDDDDDDDD>BD +@DRR015910.357 HWI-ST1182:184:D1KRDACXX:3:1101:7893:2251/1 +GCGCAGAAATGCGCGGGTACGACAGTGACTCGTCAAATCTCAGTTGTAGCACACGCAGGATCAATTCCGGATTGTCTGCCAGTACCGCTTTTCGTGCATT ++ +CCCFFFFFHHHHHJJJJFHIJJJJJGHJJIJJHIJJJIBEFFGHHDBCEEFFEEDDDDDDDDDDDEDDDDDDDDDDDDDDDDCCDCDDDDDDCBBDDDDE +@DRR015910.358 HWI-ST1182:184:D1KRDACXX:3:1101:7756:2297/1 +TTATTGCACAATACGGTGAAAATTACATGCATATTGCCTGCTTATTTCTGCGTAAAGCATACGGGAAATAACAAATGACACATGAACCCATTAATACATA ++ +CCCFFFFFHHHHHJJJEGIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJJJJJJJJJJJHHHHHHFFCFFFDEDEDDDDDDDDDDDEEDDEE +@DRR015910.359 HWI-ST1182:184:D1KRDACXX:3:1101:7757:2326/1 +CTATCGGCGGCTTCTTCAGATAACGACCCAGGTAGCGTGCCGTATTCCTCCCGCCGGCCGTTTTTTTCGACATGTACACATGCCAGTATTTTCCTCCGGC ++ +CCCFFFFFHHHFHBFHGEHDGGIDFHIIIIHI@DCHH=DDFA34::@CACCCDDDE:@>>A<>B +@DRR015910.360 HWI-ST1182:184:D1KRDACXX:3:1101:7981:2376/1 +GAAATCGCCCGCTGCACGGAGCGGGAATTTGCGACCATTCTTTCCGGTATCAGCGCCGGCGGTATGTACTGCCCGGAGTGTGGCACGGTTCACTGGCCGG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJGIJJJJIJJJHGHHFFFFFFDD>BDDEEDDDDDDDDDBDDDEEEEDDDDDDBDDDDDDDDDDDBDDDDDDDDDDD +@DRR015910.361 HWI-ST1182:184:D1KRDACXX:3:1101:7937:2447/1 +GTTACCGCCTTCTTTCCATGTTTTGTAGTCTTCCCACAAGAGACCGAGAGCCACGATCAGACCGGTAATCAGCCCTATAGGTGACATCCAGAAAGTAGAG ++ +CCCFFFFFHHHHHJJGIIJJEHIJCHIFIIIJIJJCEGIJJJJJJJIIJIJJJIHHFFFFFEDDD>BDEEDDDDDDDDDEDACDDDDDDDDDCDD>ACCD +@DRR015910.362 HWI-ST1182:184:D1KRDACXX:3:1101:7844:2454/1 +AACTATATCAATTTTATTGAACAGCAATGAATTTTACTATAAAAAAACGATACTTTCTCTGGGTAATGACTCCAACTTATTGATAGTGTTTTATGTTCAG ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHIHHHHHHFFFFDEEEEEEEEEDCDDFDDDDDFEEED +@DRR015910.363 HWI-ST1182:184:D1KRDACXX:3:1101:8220:2262/1 +GGTTTCCCCGGATGATGTCGTATCCCTGACTGCAGAACACCACCAGTGCCGGTACACTGCGAATGCCGTACTGTGAAAACAGCGTCGGGTCGATCTGAAC ++ +BC@DFFFFHHHHHJJJJIJJJJJJJJJJJJJJJJJJJIJIIIIJJJHHIJJJIGGHHHFFFDDDDDDDDDDDDFDDDDDDDDDDDDDDD<>BBDDDDDDD +@DRR015910.364 HWI-ST1182:184:D1KRDACXX:3:1101:8238:2322/1 +CTTCAAGAATAGCCGCAAAATGTTGTCATTACAACAAGGCGGCTATATGACGCTCGCGCAGTTTGCCATGATTTTCTGGGACGACCTGGCAGCACCGATC ++ +CCCFFFFFHHHHHIJJJJJJJJIJJIJJJJJJJJJJJJJIJJJJJJJJJHHHHFFDDDDDDDDEDDDDDDDDEEDEDDD?BDDBDDDDDDDDDDDDDDDD +@DRR015910.365 HWI-ST1182:184:D1KRDACXX:3:1101:8046:2420/1 +GAATAAAAGCAGAGTGCTTATGAATGATCGCCTGCCCGAAGGTTGGTATTTCTGCACAGCAATTTTGCAAAAAAGACGAGCATTCAAAACGCAAACGTCT ++ +CCCFFFFFHHHHHJHIJJJJJJJJJJIJJJJJJIJJJJHIIJDGIICGHIJJJJJIJIJJJIIHHHHHHHFFFDDDDDDDDDDDDEEDDDDDDDDDDDDD +@DRR015910.366 HWI-ST1182:184:D1KRDACXX:3:1101:8152:2447/1 +GCATAACGGACAGTACTACGACGCTCCACGCGAGCCAAAAATGCAGGGCACCGGCAAAGTCTGCCTGTGCGCCAGCGTCGGCAAGGGTCGCGGGGACGTC ++ +CCCFFFFFHHHHHIJJJJJJJJJJIJIIJJJJJJJJJJJHHHHFFDDDAADDDDDDDDDDDEDDDDDCDDDDDDDBDDDDDDBDDDDACDDDDDDBDDBD +@DRR015910.367 HWI-ST1182:184:D1KRDACXX:3:1101:8136:2460/1 +CCATTCGGCCCCACCAGGTGCAGGATCTCCCCAGCCCGAACCTCGCCAGAAAACGGCCCCAGGCGGGTAGATTCCGCAACATCCTGTAACTGCATCACAA ++ +CCCFFFFFHHHHHJIJJJGIJJJJIJJJJJJJJIJJJJJJJJJJGIHGHFFFFEDDDDDDDDDDDDD8>BCDECDDBFHEHEEEHHIBHG@EDEEFHHHDDDDFCD:BDDDDDDBD>9>BDDDDD2>FHGHGIGG>FHHG<=CFHI?HIGEHHHHEHFBDCEEDCCB>?@BCCC>CCCDDCDDD<@@BDDDD +@DRR015910.381 HWI-ST1182:184:D1KRDACXX:3:1101:9116:2456/1 +CAGGTATCCGGGTTCCACAGCTCACGAATACTGACCGGCGTTTTTTCAATTTCCGCACAGGCTTTTGCGGCAGCAACTTCAAGCGGTGATGAGCCGGTCG ++ +BCCFDDFFHGHGDGIJJJJJJJJJJJIJIGGIIJIJJJHJIIJIIFFFFFFEEEDDDDDDDDBCDDDDDDDDDBBC??CCDDDD?B59?ACCCDDBDDDD +@DRR015910.382 HWI-ST1182:184:D1KRDACXX:3:1101:9133:2471/1 +GAATCACTGCTCCCCCGGTTAGAACCAAACTGACTGAGCGTGTTCCAGGCACTGGCAATACTGCTGCTGAAACCATGCAGGGCGCTTTCGGCTCTGTTCG ++ +CCCFFFFFHHHHGJJJJJHIIJIJJJJJJJJJJJJIJIIIFGFIIJJJJJJJJHHHEHFFFFFFEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.383 HWI-ST1182:184:D1KRDACXX:3:1101:9296:2324/1 +GCCCATTCGTTGGCTTGCGCAACACGGCAGCGAAAAACCGGTAACGCACGTTTCACGCGACGAACTCCAGGCATTACACATTGCTCGGGATGAAGAACTA ++ +CCCFFFFFHHHHHJJJIJIIJJIGIJIJIJJJJIJIJIIHH=DDCBDDBDBDDDEDDDBDDDDDDDDDDDDDDDDCDCDDCDDDDDDBDBDDDDDDDDCD +@DRR015910.384 HWI-ST1182:184:D1KRDACXX:3:1101:9308:2345/1 +ATATGAAGAGCTCAGAAAACTGGGTAAAGGCGATCATCTGGTGAAGCTGAAAACCAGCCCGCAGGCACGAAAAAAGTGGCCGGGACTGGGAAATGAAGTG ++ +@CCFFFFFGHHHHJJJJJJJJJJJCHHHIJJJJJJJIIJJJHIIEHIIJJJJJJIJJJJJJHFFFDDED@BBDDD@:>C@BDDD7'>(69;B@;;6=6-;@35---,55:(::55?:830)59044+4 +@DRR015910.387 HWI-ST1182:184:D1KRDACXX:3:1101:9519:2274/1 +CCAGAGGGGGAGGTTCCCTCGGGTGACTCGACTTGTAGTACATTGTTCACGAATGAGTGATGCAACAAGGCTGAAGAACAGGTTATCGGTGCGCTTCTCG ++ +CCCFFFFFHHHHHHIJJJJJJJJBFHJIJJIJJJIGHIGHHJJJIHHFHHHFFFDEECEEEDDDDDDDDDDDDDDCDDDDDD@CDDDDD@BDDDDDDDDD +@DRR015910.388 HWI-ST1182:184:D1KRDACXX:3:1101:9639:2314/1 +AACGACATTCGTGCTGGATGCACTGGAGCAGGCGTTATGGGCCCGTCGACCGTCCGGCACGGTCCATCACAGTGATAAAGGTTCTCAGTATGTATCGCTG ++ +CCCFFFFFHHHHHJJJJIJJJIJJJJIJJJJJJJIJIJJJJJJJJIJIHHFDDDDDDDDDDD@DDCEDDDDDCDDCDDDDDCCDDDDDDEEEEEEEDDDD +@DRR015910.389 HWI-ST1182:184:D1KRDACXX:3:1101:9666:2340/1 +CCAATATTCAATACTAAAGATATGAAGTTAGGGCTCGGATTATACCTGATTGACTTTATTAGAAAAAGTGAAGACCAAAGCTTCAAGGAGTTTTGCTATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJIJJIJJJJJJJJJJJJJJJJJJJJJJJJJJHIJHHHHHDFFFFEEEDEEDDDACDDDDDEED +@DRR015910.390 HWI-ST1182:184:D1KRDACXX:3:1101:9512:2457/1 +ATCGATGGCGATAAATTCGTTACGGAAACGCTTAAATTAACCATTCCCGAAGAGAAATTAGCGGTTCTGAAAACACAGGAAAGTTTGCATAAGCCCATCG ++ +CCCFFFFFGHHHHJJJJJJJJJJJJJJJIIJJJJJJJJJJIJJJJIJJJGIJJHHHHHFFFFDDDDDDDEDDDDDBDDDDDDDCCEDDEEDDDDDDDDDD +@DRR015910.391 HWI-ST1182:184:D1KRDACXX:3:1101:9706:2477/1 +CTTCGGGGGAAAAACGAGTATTTTTAGTCATCCTGTTTACCTCTTTCTCAGGAAGTTTAGTCTCCAGGATTCCCGGGGCGGTTCACAATGGATAGCCGAT ++ +CCCFFFFFGHHHHJJJJJBFHIJJJJJJIFGHIIIJJJEIGIIHHHHHEHFEFFEEEEEEEDEDDCDDDDDDFDDDDDDDDBBBDDDDDDDDDEDCDDDD +@DRR015910.392 HWI-ST1182:184:D1KRDACXX:3:1101:9821:2434/1 +GTGCAAAGCTTGATTTTAACGATAAAAATCAAGCCTTTATATCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAATCTCGTATGCCGTCT ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJIJIJJJJJJJJIIIJJJJIJIIJJJJJJJJJJJJIJJJJJJHHHFFDDADDDDDDDDDCACDDDDDDDDDDDD +@DRR015910.393 HWI-ST1182:184:D1KRDACXX:3:1101:9845:2480/1 +GGTTAACAATATTGGCGATCGTGAGCTTTTTGAGCACTATGTTGGCATGGGCACCGATGTGAAGGTACCGTTTTTGGGTCTGGTAGGGATGAACGTCTAT ++ +B@BDFFFFHHHHHJJJJJJIJHIIIIJJJJJGGIIIIIGIIJJJIIJJJJJIJJJJJHHFFFFFF@CEEDBDDDDDDDBDDDCACDDDCCDDDDDDDCDE +@DRR015910.394 HWI-ST1182:184:D1KRDACXX:3:1101:10146:2309/1 +GTGGCGATACTGGCCCCCTGTAATGACGCCCGGATGATTTTCACCAGGTTTTCCATTTCCAGAATGTCAGCCCGGCTTTTTTTCTTTGAGGGAGAACAGT ++ +B@@FFFFFGHHHFIIJJJJJJJJJIJJJJJJJJJJIIJJJJIIJIIJJCHHHHHGHFFFFFFFEEEEEEDDDDDDBDDDDDDDDDDDCCDDDDDDBDDDC +@DRR015910.395 HWI-ST1182:184:D1KRDACXX:3:1101:10117:2337/1 +CGGGTTACCTTCGCTGTCGCGTTGTTTACAGGAACCGTCCAGCGCAGCAGAACCGGAGTTGATCAAATGGATGATGCCGTGTTCTGCCAGTCCATCCAGT ++ +@CCFFFFFGHGHHJJJGIGIJEGEGHIGIJJJIJJIGBFHIIIIIBHHDDFFDDDD???CDDDDEDDDDDCCDDDACCDCDDCDEDDDDD?CCCCDDDDDEECDDDDDDDDDDDDD +@DRR015910.397 HWI-ST1182:184:D1KRDACXX:3:1101:10277:2294/1 +CCTGGTGGTACGTCTGATTGATGCGCTTTCGCAACTTCCGGCAGGTTACCCGGTGTACAGCAACCGAGGGGCCAGCGGTATCGACGGACTGCTTTCGACC ++ +CCCFFDFFHHHHHHIJJJJJJJJIJJJJJJJJIJJJIJJJIJJJJGHHGGHFFDCCEEEEDDDDDDDDDDDDDDD@BD@BDDDDDDDDDDDDDDDDBDDD +@DRR015910.398 HWI-ST1182:184:D1KRDACXX:3:1101:10291:2311/1 +CTACAAGAACTGGATGAGTTAGATTCTTTATTAATTATAGACCTCGGGGGCACCACATTAGATATTTCTCAGGTAATGGGGAAATTATCAGGGATCAGTA ++ +CCCFFFFFHHHHHJJJJJHJJJIJJJJJJIJJJJJJIJJGJJIJJJJJJJHHHFFFFEEEEEEEEFEFEDEDDCDCACDDDDDDDDDEDEEDDDDDDDDE +@DRR015910.399 HWI-ST1182:184:D1KRDACXX:3:1101:10470:2313/1 +GAGTAATATGCCGGGGAGGGCGCTGTTTCCTCCCGCTTGCAAGGAACGCCGGATGAAACGTTAAGTCGTCATCCGGCAGCGTATTCAACCCCCGGAAACG ++ +@@BDFFFFHHHHHJJJIJJJJJJJJJJJJJJJJJIJJHHHFFFFFEEDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDD@BDDEEEDDDDDDDDDDDD +@DRR015910.400 HWI-ST1182:184:D1KRDACXX:3:1101:10352:2376/1 +GTTGTGGAGAATAACAAAAATGGTCATCTGGAGCTTACAGGTGGCCATTCGTGGGACAGTATCCCTGACAGCCTACAAAACGCAATTGAAGAACGCGAGG ++ +BBBFDFFFHHHHHJJJJJJJJJJIJJJJJJJIJJJJJJIJJIJJJJJJJIIIJJJJJJIGGIIJJIJHHHHHFFFCEDEDEDDDDDDDDDDDDDBDDDDD +@DRR015910.401 HWI-ST1182:184:D1KRDACXX:3:1101:10397:2434/1 +GTGTACTGCGTGAACCACAACGGGAGCGGGAAGCGGTCCGGGAAGTTGCCCGGGAAAATTTGCTGCAGGAGCGTCTGCAGCAGATGGAGCGGGATATGGT ++ +BBCDFFFFHHHHHJJJJJJJJJJJJJIJJJJIIFJJGHHHFDBDDCDDDDDDDDBDDDDDDDDDDDDDDDDCDBBBBDDDDDDDDDDDDDDDDBDDDDDC +@DRR015910.402 HWI-ST1182:184:D1KRDACXX:3:1101:10391:2463/1 +GTATGTTGCCACCCGGGAAGGATGGCTGTATCTCGCCGGCGTCAAAGATGTTTATACGTGCGAAATTGTCGGTACGCCCTGGGGGGGGGCCAGAACGAAA ++ +CCCFFFFFHHGHHJJJJIJJIJJJJJJIIIIGGJIJJJJJHHFEDDDEEEEDEDDEDDCDDDBDDDDDDEDDD(&&&0&&(+<)&&&&&&)(((((&)<& +@DRR015910.403 HWI-ST1182:184:D1KRDACXX:3:1101:10423:2477/1 +GCTGTACATATTGCAGCATGTCCGCCACGGTATCGCCTTCGTCAGACAGTTCTACTTCTACGCTACCGTCAGGGAAGACGAACACGTCAACCGCTTCGGT ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJIJJJHHIJJJJJJJJJJJJJJJJGHJJJJJJJJJJJHHHFFDDDDDDDDABDDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.404 HWI-ST1182:184:D1KRDACXX:3:1101:10740:2366/1 +TGTTTATCCATCCCCAGAGCACGGTACACCTGCGGCAGCTTCTCTCCACACACCCGGTTGGCAAGGAACCCGAAGTACCTCACCATCTTAAAAAACTTCT ++ +CCBFFFFFHHGHHJJJJJJJJJJJGIJJJJJJJJJJJJJJJJJJJJJIJIJJHHHFFDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDEEDDDDDDDDD +@DRR015910.405 HWI-ST1182:184:D1KRDACXX:3:1101:10586:2428/1 +ACCAGGAACAAAGATTGCTGCATATTCGCTGTCTGCGTTGAGGCTGACGACAACATCCGCGAGTTTTTTCGGATTGCGGAACAACGATTTATGCTGCTCA ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJJJJJJJJIJJJIJIJJJJJJJJJJJJJJHHHHFFDD>BDDDDDDDDDDDDDDBDDDDDDDDDDDEDDEDDDDD +@DRR015910.406 HWI-ST1182:184:D1KRDACXX:3:1101:10697:2437/1 +GGTTATGCGGTGGAATATCGGTCGCCATGCCGACGGCAATACCGGTGGTGCCGTTAAGCAAAATGTTTGGCAGACGGGCAGGTAGCATTTTCGGCTCCTG ++ +BC@DFFFFHHHHHJIJJJJJJHIJJJJIJJJJJJJJGIHGHHFFFBDD@BDDDDDDDDDDDDDDDEEEDDDDBDDDDDDDDDBCCDDEDDEDDDDDDDCD +@DRR015910.407 HWI-ST1182:184:D1KRDACXX:3:1101:10680:2448/1 +GGAATCATCACTGCGGATATAGCCATCAATAATGGATTCAGGCAATAACCACGCATCTTTATAAAGCTCCTGAATGATCATATCCCAATCTCTTTTCGCC ++ +B@@DDFFFHHHHHJIJJJGIJJJJIIJJJJIIJJJGIJGIJJJIJJJJJJIIJJJJJJJJJJJJIHHHHHFFFFFDEEEEECEEEDDDDDDDEDDDDDDD +@DRR015910.408 HWI-ST1182:184:D1KRDACXX:3:1101:10819:2310/1 +ACTTAAAACCCAAAACATACCCAAATACACACCAAAAAAAACACCATAAGGAGTTTTATAAATGTTGGTATTCATTGATGACGGTTCAACAAACATCAAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIIIJJJIJIJJJJJJJJJJJJJHHHHCDFFFFFEEEEFEEDBCDDFEEFDDEDEDDDDDDDEDDDDDDDDDDD +@DRR015910.409 HWI-ST1182:184:D1KRDACXX:3:1101:10833:2443/1 +ATCCAGCGCACCGCTTGGGCACACTTTGGCGCACGGAATGTCCTCACACATTTCGCAAGGAATATCCCGTGCGACAAAATATGGCGTGCCCGCCGACAGA ++ +CCCFFFFFHHHHHJJJJIJJJJJJJJJIJJJJJJ0@GIJIIJJHHHHHFFFFFFDDDDDDDDDDEFEDDDDDDDDBDDDDDEEDDDDDDDDDDDDDDDDD +@DRR015910.410 HWI-ST1182:184:D1KRDACXX:3:1101:10761:2475/1 +GTAGAACCAATGTAGATACCGAAAGTTTCCGGACTAAACCATTGAGACATCAGCGGATATATCGCCGGGTAGAGGAAAATCGCGACGGTCCCGAAGATAA ++ +CBCFFFFFHHHGHIIJIJJJJJJIJHIJJJJJGIJJJJJIJJJIJIJIJJIJJJJJGHFFFFFFDDDDD=BBCDDDDDDDDDDDD9@DBDDDDDDDDDDD +@DRR015910.411 HWI-ST1182:184:D1KRDACXX:3:1101:11210:2374/1 +GCGTTTAAGCTATCGCCTGGTGCGTAGCGCAGAAGAGAGCAAAATCGCCCTTTCAAGCACTGCGGAAACCCGCGCCTCACTGCCGTTTATCAGCGATGAA ++ +CCCFFFFFHHHHHJJJJJJJEHIJHIIGIJJIIJGIHGIJJIJJIJJJJJHHHHFFFFFFEEEDDDDDDA8=BDDDBDDDDDDDDDDDDDDCDDDDDDDD +@DRR015910.412 HWI-ST1182:184:D1KRDACXX:3:1101:11364:2303/1 +TATGCAGATGAATGACCTTACGCGGTTGCAAACAGGCGAGGAATGCTGCTGATGCATTAAGCCTTTCTGGACTCAGGCAGAGATTTGTAACAAAGGAAAC ++ +@?@FFFDFGHDHHIJJJJJJIIDHFCAFHIIIGGIIGIIHGGEHGIIIHHECEHFC@DDECC>CEEDDDC@ACCCCCCBBDDCDDDDEDDDACDDCDDDD +@DRR015910.413 HWI-ST1182:184:D1KRDACXX:3:1101:11298:2396/1 +GGGCGACAATTTGTTCCATTGCTCCAAAGATTGGCTGTACGCCGGAGACTCTGCGTGTCTGGGTTCGCCAGCATGAGCGGGATACCGGGGGCGGTGATGG ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJIIJIJIJJJIIJJJJJJJIJJHHHHHFFFDDEEEDD?BDDDDDDDDDDCDDDDDDDDDDDDDDDDDDBD;;@AE??BDD?B4?BAAB@A?;=@;994:+439509@2>334><5959B?+8 +@DRR015910.416 HWI-ST1182:184:D1KRDACXX:3:1101:11559:2496/1 +GTCAGGGAGAACTCATCTCGGGGCAAGTTTCGTGCTTAGATGCTTTCAGCACTTATCTCTTCCGCATTTAGCTACCGGGCAGTGCCATTGGCATGACAAC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJIGIJJJJJJIJJJJJJJJJIJJJJJJJJJJHHHHFFDEEEEEEDDDD8=BDCDDDDDDDDDDDDDDCCD +@DRR015910.417 HWI-ST1182:184:D1KRDACXX:3:1101:11996:2261/1 +ACATCAATGTATTACTGTAGCATCCTGACTGTTTTAGCATAGCTTTCGCTTTGTGTCTCCTGGTGTCTCGCTTCAGCATGACCCAGGTCGCCTTCCGTTG ++ +CCCFFFFFHHHHHJJJJIJIJJJJJJJJJJJIJJJIJJJJJJIJJJIJJJJJJJJJIJJJJJJFHJIJIGHHJJHHHGHHFFFFDDDCEDDDDDDDDDDD +@DRR015910.418 HWI-ST1182:184:D1KRDACXX:3:1101:11802:2299/1 +GTCATGCATATAGTTTCTGAAAATCAGTGCGGTAAATACGCATTACTGCTGCAACAGGCCAGAACCGAAGCACAGGCCGATGCAGCGACGCGCTTTTCTT ++ +CCCFFFFFHHHHHJIJJJJJJJJJJJJJJJJJHHJJIIJJIJJJJJJJJJJJIJJJJJJJJJJJJJHHFFDEEEDBDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.419 HWI-ST1182:184:D1KRDACXX:3:1101:11758:2328/1 +TCCAGGTACTGAATAAAGTTCCTGGCCTTGACCACAAACATAACCTGCAAATCACCAAGCTGGATCTGAGCTATTCAGAAACCTTTAATCAGACGCATCT ++ +CCCFFFDEHHHGHJJJIJJJJJJJJJJIJJJJGIJIJJJJIJJJIJIJJJJJJJJJJJJJJJJJJJJJJJJJHGHHFHEEFFFFEEEEEEEDDDDDDDDD +@DRR015910.420 HWI-ST1182:184:D1KRDACXX:3:1101:11937:2336/1 +ATCGGTCGTCAGCCAACGTGAGAGTGTCAAAAACGATAAACCAACCATCAGCATGAGCCTGTCGCATTGCATTCATCAAACGCTGAATAGCAAAGCCTCT ++ +CCCFFDDFHGDHHJJJJJFHEIIIHIGIIIJIJIIJIJJJJJJJJIJIJIJJJIJGFEHGFDFFBDDDDDDEEDEACCDDDDDDDDDDEDDDDDDDDDDC +@DRR015910.421 HWI-ST1182:184:D1KRDACXX:3:1101:11920:2346/1 +CTGCACGATACGCCAAACATTCTGTACTTCATCAAAACCGCCGGTAACGGTCAGTTCAAAGCGGTAGGTGACTCTCTGGAAGCGCAGCAATACGGTATTG ++ +CC@FFFFFHDHHHJJJGIIJIJJJJIIGICGIIIJIIGIGIJII@BHEHFDEFE>CCEDCDDDD;BDD>>ACDCCAACDDCDDDDDDDDDCDC@D9<@AC +@DRR015910.422 HWI-ST1182:184:D1KRDACXX:3:1101:11984:2355/1 +AAGCCATTCTATATACTGATCTGTTGTTGATATGTTCCCCATGATAAAACCACGATAACATGCACGCAAAAGCTGTGGTTCAAGTTTCATTTTGTTGCCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJIIJJJJIJJJJJJJJIJJJJJJJJJJJJJJGHHHFFFDFEDEEEEDDEEEEEFEDDDACDD +@DRR015910.423 HWI-ST1182:184:D1KRDACXX:3:1101:11832:2427/1 +ACATACAACTGCATCAGGGAGGCAGCAGATCAACTTCCGGCATGGTTCCCATTAGCTATGGATTTAGCCCTTGTAACAGGACAACGTCGCGAAGACATAA ++ +@@@DDDDDDDHAHBHE?>ACAB?BC9@B<@BB@5@B@C?>@( +@DRR015910.424 HWI-ST1182:184:D1KRDACXX:3:1101:12013:2404/1 +GCCTGAGAGTTCCGGCCGGCAGAACCAGCTCACAGCACAGACTGTCGGGCATCTGTTCAGGTATCTGCACTGGTGCCGGGATTTTATTATCCGGCTCCGG ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJJJJJIJIIJJJJJHHFFEEDEDEDEDDCCEDEECDCCCDAC@CDDD@BDDDEDDEECCBDDDDDDD +@DRR015910.425 HWI-ST1182:184:D1KRDACXX:3:1101:12127:2419/1 +GAAGATTGCCATACGCTTGTTTTTAAACAGCGCGAATGCATCGAGGCCCAGCAGGGTTGTCCAGCTCTGATTCGCTTGCTGTTTAGCAACCGGAATATGC ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJIJJJIJJJJJJJJHHHFFFFDDCEDDDDDDDDDDDDEDEDDBDDDDDDDDDDDDDDDDDDDDDEED +@DRR015910.426 HWI-ST1182:184:D1KRDACXX:3:1101:12456:2330/1 +TCCTTCTGTTTCTCCTTGCTGACAAAGCCGGAGTCTTCCCCACGGCGAAACCACCAGCCACCACTCGCCCGTTGAGTTTTTGAAGCGAATATGCCCGGCC ++ +@@@FFFFFHHHHHJIIJJIJJJJJIJJJJJJJJHIIGIJIJFFGIJJJHFFFDDDDDDBDCBBDDDDDDDD>BBDA>ACDDDDDDDDDDBDEEDDDBDDD +@DRR015910.427 HWI-ST1182:184:D1KRDACXX:3:1101:12305:2386/1 +CTGTTCTACGCTGGTGGACCGTATCGTTACCGGTTATCCGCGCGATGAAGTGGCTAAACTGGAAGAAGAACTGGGTTATCACGATGGTTTTCTCGACACC ++ +CCCFFFFFHHHHHJGIJJJJIHIJIIJJJIIIIGIIIHIIJIJJHHFFFFDEEDEEDDDDDDDDDDDDDDDDDDDDBBDDEDDDDDD@CDDDDDDDBDDD +@DRR015910.428 HWI-ST1182:184:D1KRDACXX:3:1101:12748:2382/1 +GTGTGGCTTACGACGGCGATGTAATTACGGTTTACCCCGGATAAGTGAGGAATAATGAGCACAAAATTCAGAACCGTTATCACCACTGCCGGTGCAGCAA ++ +B@CFFFFFHHHHH)CGIJJJIIIJJIIJJJHIJJJJJJIH>DFFECEEEEDDDDDEDDDDDDDDDDDDDDDDDDDBDDDDDEDDDBDDDDDDDDDCCDDD +@DRR015910.429 HWI-ST1182:184:D1KRDACXX:3:1101:12663:2464/1 +TCGGAGAGCTGCCCACGTATGGTTATCGTCGGGTATGGGCGCTGCTTCGCAGACAGGCAGAACTTGATGGTATGCCTGCGATCAATGCCAAACGTGTTTA ++ +CCCFFFFFHHHHHJJJJJJJJJIIIJJJJJJJJBDHGIJIGHIIIIHCEEFFDEEEDDDD@CCCCCCDCC5@CCD>CCDDBDDDDDDDDCDDDDBDDDDDDDDDDDDDDDEDEDE +@DRR015910.432 HWI-ST1182:184:D1KRDACXX:3:1101:12964:2461/1 +AGATACTACGTTACCGTTATGGTCAGCGATGTTGCCGCTGGTCAGTTCCAGTTTGTCAGTACGGAAAGCTTCAGTATCGAACTGATCAACGTTCACATCC ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJIJJJJJJJJJJJJJJGIIJJJIJEIJJIIIJJJIIJHHHFFFECEEED@;BCDDDDDCCDCDDDBDDACCDDDD +@DRR015910.433 HWI-ST1182:184:D1KRDACXX:3:1101:13023:2471/1 +AAGTATAGCGGCACAGTTGCGCCTCTGGCATCAATTACGATGGGTCAGAATCGAATCGACCAGACCGTATTCCACCGCTTCAGGGGCGGAAAGGAAGCGA ++ +BCCDFFFFHHHHHJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJGIIJJJJJJHHHHFFFDDEDDDD@BBDDEEDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.434 HWI-ST1182:184:D1KRDACXX:3:1101:13141:2492/1 +ATCTACTTCGGCGCGGAACATGCAAAAACCATCATTGATGTCCTGCCGCAACGATTAATCGACGGCCTCGGCGTCGCGGGCGGCATCATGCCAGCAATCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIJJIJJJJIJJJIJJJHHHFFDDDDDDDDEDDDDDB5@DDDDDDDDBBD9@BBC?@DD>DDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.444 HWI-ST1182:184:D1KRDACXX:3:1101:13866:2392/1 +ACATTGTAAAAACCTGTACGGTCAGGGATTTGAAGAATGATTTTGTGAACTGCGATGAGAAAGGTGAGGGACAATGAAACAGATTTCTTTATTTATTCCT ++ +@@@DDFDDHDFHHBDHHIJJIIEBHIGHHEHIGIJJJICAFFEHBHG@FDAFHHGEHCHFGHIJCDDEAAABFFFACECE@CDDACCDCCACDCDDDEED +@DRR015910.445 HWI-ST1182:184:D1KRDACXX:3:1101:13896:2464/1 +GTTCTAAATTAGGGTTAAATAAACAAATAGATACAAATATCACCTCACCACAAACTAACTCTAGCACAAAATTTTTAGGTAAAAATAAACTGGCGCCAGA ++ +CBCFFFFFHHGHHJIIJJIJJJJICEFCHHHIJJIJIIJJGIJJJJIJJJIIIJJJJJJJJJJJIIJJJJJJIIHCHHHDDFFFFEECEEEDDBBDDDDD +@DRR015910.446 HWI-ST1182:184:D1KRDACXX:3:1101:14014:2317/1 +CCCAAGAACCAGGCTGCCAAGGAACAAACCAAGGAGCGCCGAGCCGCCGATCATTCCCGCCATAAACGGCGTCAGTTGCATGGCGGGCGTAAGCTGAATA ++ +CCCFFFFFHHGHHGIJJJJJJJJJJJJJJJIJJJIJJJIJIJJIHHFFDDDDDDEEEDDDDDDDDDDDD;@>DDDDDDDDEDDDDDDDDBDDDDDDDDDE +@DRR015910.447 HWI-ST1182:184:D1KRDACXX:3:1101:14081:2408/1 +CTCTACTACCGTTCATGCGCTGGCTCTGCATACTTACACTATTAAGGAGTGGGAAGGGTTGCAGGACACCGTCTTTGCCTCTCCTCCCTGTCGTGGAGCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJIIJIJJJHIFHIIIJJJJEHHHHHHFFFFBDBBDDDDDCDDDDDDDDDDDDDDDDDBDDD +@DRR015910.448 HWI-ST1182:184:D1KRDACXX:3:1101:14190:2450/1 +GCTATTTACATTTTAAGTGGGCAACGCGCAGGAGCGGAACATGGCCCTGCGACGGTGGCAATTGGTTCGTTGATTGCAGCGTTAATTTTCGTGCCAATTG ++ +CCCFFFFFHHHHHJJJJHJJJJJJJJJJJJJJJJJJJJJJJJJHHHHFFFDDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEDEDDDDDDDDDD +@DRR015910.449 HWI-ST1182:184:D1KRDACXX:3:1101:14436:2305/1 +ACTGTACCTCGCCCTGCCGGTGGAGATCCAACGTTCCGGCGGCCGCGAGCAGGATCTGGCGCCGCTCTTTATGCTGGCCTCGCTGTTGATTATCACCCTC ++ +CC@FFFFFHHHHHJIJJJJJFGHGHGGIJJIJIIIIJGIJIFDDBDDBDDDDDDDDDCDCDBDDDDDBD@CCCCDDCDBCABDDB@CCCDDEDDEDDDBD +@DRR015910.450 HWI-ST1182:184:D1KRDACXX:3:1101:14329:2381/1 +CTATAGATAGTGCTAATTATTAACATTTGCTTGTTGACTGCGAGTATCGACTTTGCGAATGGAGGCGGTGTCGGGTTTTATGTCGCGTGTAATCCCGACC ++ +@@@FFFBDBFHFFEBEFEEIIGGHDGIGFHGIBFEBCEGBGFFG?GGI;BFHCHDFHE4;D@=6AHD:,3;>=89+228:>(+:8895-0<:>@(+BDDB@BD +@DRR015910.454 HWI-ST1182:184:D1KRDACXX:3:1101:14627:2387/1 +GGCTGTCAGTCGCTATGGCGTTAATTTGGGTGCCAGTGGTACAGACGATTTGCTGGGTGCGGTATTGGTGGATGTGAAAGGCTTCTCTGAACAGGATGAA ++ +CCCFFFFFHHHGHJJJJJJJJJJJJJJIJJBFHIJJHIJBGHIIJJJGIIIIJJJJJ?BEFF=BCDDDCBDBCDD@CDDDDDDDDDDDCDDDDDDDDDDD +@DRR015910.455 HWI-ST1182:184:D1KRDACXX:3:1101:14617:2417/1 +TTCCGCAACAGAAAGCGATTGATTCACCGGAGGCGAAAAGCAAGTCGGAAGAGCTGGAAGATGAACCCAGTGCCAATATTGCTTTTGTACCACTGGCAAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJAHIJJJJJJJGGHHHFFFDDDDDDDDDDDDDDDDDDDDDDDCDDDDCDDDEEDDDDDDDEEDDDDDDDDDD +@DRR015910.456 HWI-ST1182:184:D1KRDACXX:3:1101:14942:2288/1 +AAACGATAGTGGCTCAGGCTCTCATTTTTCAGCGTTCCCCAGAAGCTTTCCATCGGAGCGTTGTCGTAACAGTTACCTTTACGCGACATTGATGTTTTCA ++ +CCCFFFFFHHHHHJJJJJJIJJJIIIJJJGGHHGGIGIJJJIIJGHGHIHJJJJJJIJJHHHFFFDDEEDDDCCDCDCDDDDDDDBDB@DCCEDCDEDDD +@DRR015910.457 HWI-ST1182:184:D1KRDACXX:3:1101:14989:2356/1 +GACCAGTGATGAGCGCTTACCCGATTTTTGATCGTATTGAAGAAATGGCATGGGCTCGCCACTACCAGCAGATCGTTCGTGAAGAAAAAGAAACGGAACT ++ +CCCFFFEFHHHHHJJJJJJJJJJGJJJJIIIJJJHHHIEGIGJJJJIIFIJJJJJJJHHFFDEEECCDDDDDDDDDDDD@DDDDDDDDD@BDDDDDDDDD +@DRR015910.458 HWI-ST1182:184:D1KRDACXX:3:1101:14918:2376/1 +ATCATAATTTAATCCTTATTGATATTCTTTAATACTTTTGATAGGGAAGTGGTTACATCTTTTGCTGCTTTATATATATTATTGTTTTCAGCTGTAATAC ++ +CCCFFF4BFFHFFGIIJIIJJHJIJJGGHJJHIGIJJJIIIJJJJIGIG?DGFGIJIGIIIJJJJJIIIJJIHGIGGIIIJJJJJIHHHFGGFFEFFFFE +@DRR015910.459 HWI-ST1182:184:D1KRDACXX:3:1101:14964:2399/1 +TTAACGTCGAGGCGACAAATAACATCCGTACGTTACTATCCTGCCAGCCACCTTGCATTGATAAAGCATTTTCCGACGGCAGTTCTACCCGCGCCACAGA ++ +CCCFFFFFHHHGGJJJJIJJJJJJIFJJHHIJIIJIIIJJIIGJHHHHHFFFFEDEEEEDDEEDDCDDDDDEEDDDBDDDDDCDDEEDDDDDDDDDDDDD +@DRR015910.460 HWI-ST1182:184:D1KRDACXX:3:1101:14880:2469/1 +TCCGGATTCCGTGAACAGGTCGCTGCATGGCTGGAAAAACTCAGTGCCTCTGCGGAGCTTCGACAGCAGTCTTTCGCTGTTGCTGCTGATGCCACTGAGA ++ +CCCFFFFFHHHHHJJJJJJHIJJJJJJJJJJJJJIJJJJJIIIGIJJIIJJJJJJHHFFFEDDDDDDDDDDDEDDBBDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.461 HWI-ST1182:184:D1KRDACXX:3:1101:15204:2270/1 +GTCCGGGTATTTACCCACGTTTGTCTTAAGAGAGAACGGATGCTGAGATTACTTGAAGAAAAAATTGCCACGCCACTGGGTCCACTGTGGGTGATTTGCG ++ +CCCFFFFDHHHHHJJJJJJIJJJIIIJIJJJJJIJIJJJIJJJJIIJIJJJJJJIJIIJJHHHFFEEEEEEDDDD?CDDDDDDDDDDDDDD<@DDEEDDD +@DRR015910.462 HWI-ST1182:184:D1KRDACXX:3:1101:15008:2429/1 +GAATAATTTACCGCTGCTGAATGATTTGCGCGTCTTTATGCTGGTGGCTCGCCGGGCTGGTTTTGCCGCCGTGGCGGAAGAACTGGGCGTTTCACCGGCG ++ +CCCFFFFFHHHHHJJJIJJIJJJJJJJJIJJIHHIJJJJJJIJJGIJJJJJHHFDDBDDDCCDDACDDDDB9@DD@BBDBBDDCCDDDDCBBDDDCDDDDDDDDDDCDBDBDDDDDDDDACDCDDD +@DRR015910.466 HWI-ST1182:184:D1KRDACXX:3:1101:15334:2402/1 +GTATGATGGTGTTTTTGAGGTGCTCCAGTGGCTTCTGTTTCTATCAGCTGTCCCTCCTGTTCAGCTACTGACGGGGTGGTGCGTAACGGCAAAAGCACCG ++ +BBCFFFFFHFFFHJJJJJJJHJJJJJJJHIJJJJIIIIIJIJIIGIIIJIJJJJJJJJIHIIIJJJJJJIIHHHFCABB;@CBBBDDDDDDDDDDDDDDD +@DRR015910.467 HWI-ST1182:184:D1KRDACXX:3:1101:15653:2358/1 +CTTTAGTCCGACGCTGGTACGTCGTCATTCAGTGTCAACTCCGTCGCTGGAGGCAAGTCATCATGCAACCAGCGACTAACCGCAGTTAAAGCAATTCCAG ++ +CCCFFFFFHHHHHJJJJGHIJIJIJIJIJJJJGHIJJJJIJIJHIIJJJHHHFFFEDEEEEDDDDDDDDDDDDDDCD +@DRR015910.472 HWI-ST1182:184:D1KRDACXX:3:1101:15917:2495/1 +GCATTCGCCAATTGCGTTGGGCTATAGATCTTCTGAAAGCTCATCATGTCATACGTCCACAGCAAGTTTATCCGCTTAAGGGGATATTATAAGTTTTATC ++ +CCCFFFFFHHHHHJIJIJJJJJJJJJJJJJJJJIJJJJJJJJJIJJJJIJIJJJJHGJJJJJJJJHHHHHHFFFFDDDDDDDDDDDDEEEEEDEFEDDDD +@DRR015910.473 HWI-ST1182:184:D1KRDACXX:3:1101:16124:2302/1 +GACCACCAAGCACAATCAGCTCACCATCGTTAGCCAGCACGGTGGTTTTCAGTTTGCGCTCACCAAACACCACGTCGAGGCTGGTCTGTCCTTCCACCTT ++ +CCCFFFFFHHHHGJJJIJJJJJJJJJJJJJJJJIJJJJJJII?FHBFIJJJJGHJJIJHHHFFFFDDDEDDDDDDBDDDDDDDD?CCDACDDDDDCDDDD +@DRR015910.474 HWI-ST1182:184:D1KRDACXX:3:1101:16146:2317/1 +ATAACGGCGCGTTGCAGGCGCGTTTGGTGATGCTGCCAACTTACTGATTTAGTGTATGATGGTGTTTTTGAGGTGCTCCAGTGGCTTCTGTTTCTATCAG ++ +CCCFFFFFHHHHGIIIJJIJIJAGGGJ=CACHHFHHHHFFFFEEEE>CEECD@C>CCDCDCD5>9C@ +@DRR015910.475 HWI-ST1182:184:D1KRDACXX:3:1101:16148:2352/1 +GATCAGAGAGTTCAACAAAGGCTTCGTAGGGTTCCTCAAACCAGTAACGCATCACACTGGCGTTATTGTCGAGTTGATGTACATAGCGTAAATCTTCACG ++ +CCCFFFFFGHFHFIIIIJIIJIJJJJHGIJJDFHJJJJJJGIJJDGIGIGIJJHHGIEGIJHEFFFEEEEDBD@BCDDDDEEFFEDDDBBDDEDDDEEDB +@DRR015910.476 HWI-ST1182:184:D1KRDACXX:3:1101:16047:2385/1 +AAGTAAGATGGCGCTGGGGATGAAGAACCAGGCGTTTCCTTGCTGAAGAAGAGTTGTAAATTCGGTCATGATAATAATTCTTAGTATTAATTCGGCAATC ++ +@@CDDDFFGHHHHJJJJJJIIJJJJJJJJJJJGHDGIJJJJJJJJJJJIJJHHGHHEHHHHGFFFDCDEEDCDDDDDEEEEEDDDDEEEFEEEDDDDDDD +@DRR015910.477 HWI-ST1182:184:D1KRDACXX:3:1101:16435:2269/1 +TGTATGATCTCTGCGAGCTTGAGGCGCTTTCGTTGAAGCATCCTGGTCTGCAAGTGGTGCCGGTGGTTGAACAACCGGAAGCGGGCTGGCGTGGGCGTAC ++ +@CBFFFFFDFBDHIIBGIJIGIIHIII>HG@ADGHGD<DDA?@,;<>@B<@BDD>BDD>9><>00059 +@DRR015910.478 HWI-ST1182:184:D1KRDACXX:3:1101:16334:2445/1 +CCTTTGACATATCCCGGTATCAATCCCACAATAGATATACACAAGACATATCCACATAAGGAGGCAAATAATGGAAACCACCGTATTTCTCAGCAACCGC ++ +CCCFFFFFHHHHHJJJJDHIJJJJJJJJJJJJJGIGIJJJJJJIJJJIJJJJJIJJJIJJJJJJIJJJHHHHHHFFDFFDDDDBBDDFEEDEDDCDDBDD +@DRR015910.479 HWI-ST1182:184:D1KRDACXX:3:1101:16494:2458/1 +TCTTCCATGCTGGTGACCTGACGGAAGCTACCACCGGAGGCTTTAGCATTGTTTTTCGCCACTTCAACCACATCCGGGATCAGGTCGTAGCCTTCCGGAT ++ +CCCFFFFFHGHHHIIJIJJIGHJIIGIGHIJJIJJJJAFGGHIJJJJJJJJJEIIGEHABDFECEEEEDDDDDDDDDDBDDDCDDDDDBBDDDDDDDDCD +@DRR015910.480 HWI-ST1182:184:D1KRDACXX:3:1101:16380:2477/1 +GAATTAACGCACGAGGGGAAACGTGTTTATTGGGCGCTAAAATCGTCGCTGGATACCCTGAACCAGGAAATTCTTGATATCAAAAATCAGGAGTTATCGG ++ +B@CFFFFFHFHFHGIIJIEHIGIBHDHGGDHGIJ@HIIJGIJIHHEHFDDDDDDDDCDDDDCDDDDDDDDDDCDDCDDEEDEDDDDDCDDCDDCDCECBD +@DRR015910.481 HWI-ST1182:184:D1KRDACXX:3:1101:16504:2326/1 +TACCTCATCTGGCTGGTCAACTGCCACATCTTGTTCACCAGTATCCATTATGGCGTCACGGGGCGTCCAGTTTACCGTTACCGTATTCAGGCAGAACACT ++ +CCCFFFFFHHHHHIJJHIJJJJJJJJIJJGIIJJJHIJJJJBHIIJJJJJJJJIIHIJJJGIJHDBDDDDCDEECCBBBBDCD?BDDEDDDDDDDDDCDC +@DRR015910.482 HWI-ST1182:184:D1KRDACXX:3:1101:16609:2391/1 +GTGTAATCAATCGCCGCAATGCGCGCATCATATTTATTGAGATTATTAGGGTTAAGGCCATGGGTACGATGAGCAATCGGCGTTGGATCCAGTTTCATCT ++ +@BBFFFFFHGGGHIJJJJJJJJJIJJIJJJJIIIJHJJJGHGGIJJJIGEHHFHHFFFFDEEEDDDDDDDDDDDCDDDDDDDBDDDDDDDDDCDEEEEEC +@DRR015910.483 HWI-ST1182:184:D1KRDACXX:3:1101:16728:2414/1 +GATCAGCGGCACGTCGCCGTAGAGCATTAAAATGTCTTCATCATCGGCAAAGAAAGGTGCGGCCTGCTGCATTGCATGACCCGTACCCAGCTGCTCTGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJJJJJJIIJJJIJJJJJJJJHHHFFFFEECEEDDDDDDDDDDDDEDDDEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.484 HWI-ST1182:184:D1KRDACXX:3:1101:16838:2250/1 +GTCTTTTTCTACGCCATTGCGAGTAAAGACCTGAACGTCGATAACCGTACCGGATACACCGTTTGGTACGCGCAGAGAAGAGTCTTTAACGTCAGAGGCT ++ +BBCFFFFFHHHHHJJJJ?HIJJJHHIJJJJJJJJJJJGIJJJJJJJJJJJJJHHFFFFFDDCDDDDBDDDDDDDDDDDDDDD>CDEDDDDDDDDDDDDDD +@DRR015910.485 HWI-ST1182:184:D1KRDACXX:3:1101:16877:2496/1 +TAAGTATATCAACAGATCCTTACCCAAATTATGACGGCTTTTATCTTTCCAAGAAACCAAACGAAATGTTTAACTATCATTACTCAACTAAAGGGACTAT ++ +BCCFDFFFHHHHHJJJIIJJJJJJIJJJJJJJJJJJJJJJJJEIIIJJHIJJJJJJJJIIJIIIIHHHHHFFFFFEFEEEEEEEDDDDDDDDDDDDDDDD +@DRR015910.486 HWI-ST1182:184:D1KRDACXX:3:1101:17243:2335/1 +CGTTGATTCCGTTCTCACGAGCTATTTGTGCGACACAGGCACCGGGTAAAAGAGTTTGCTGAACAAGTCTCCATTTAAACTCCGGTGAAAATCGGTTCCG ++ +@@?DFFFFHHHHDHGHIHIEFIGIIIIIEHIIIEDIIIGGBHIBGGBHHGGHHHCHHEFFDFECEECCCDCCCDDCDDDDDDDDDBBDDDDDD@B?>BDB +@DRR015910.487 HWI-ST1182:184:D1KRDACXX:3:1101:17055:2355/1 +GCATGGGGATTGGTTGAGGAACGCGCAATGACGATCATCCATCCTCTGCTTGCCAGTAGTAGCGCACCGAATTATCGCCAGTCCTGGCGGTTAGCGGGAG ++ +CCCFFFFFHHHHHHIJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJHHHHHFFFFFFFEDDDDDDDDDDDEDDDDDDDDDDDDDDDBDDDDDDDDD +@DRR015910.488 HWI-ST1182:184:D1KRDACXX:3:1101:17101:2451/1 +GATAATCCCCACCGGAATGTTGATCAAAAAGATCCAGTGCCACGATGCGTACTCCACCAGCAGACCGCCGAGCGCCGGACCGAGCAGCGGACCGACCTGA ++ +CCCFFFFFGHFHGIJEFGGAHIJIIIIFGI>@DAFCHFGIJGJJIIEGGFEADGADEHHHFEDDECDDDDBBDBDBBDBDDD-99BDDDDDBDD@B<@C> +@DRR015910.489 HWI-ST1182:184:D1KRDACXX:3:1101:17076:2478/1 +GATTTGCGTCTGCTCTTTGGCGCTGCGGAAACGGGAGATCATTTCGATACGTACCGGCCAGTTGGCGAAACGGTCGCGGAAGTTGTCGTAATGCTGCTGC ++ +BBCFFFFFHHHHHJJJJJJJJJJJJJJJIJJJJJJGIHJIIJJJJJHHHFFFFDDDDDDDDDD=CDDDDDDDDBD@BDD@DDACCCDDBDDDDDDDDDDD +@DRR015910.490 HWI-ST1182:184:D1KRDACXX:3:1101:17310:2332/1 +GTGTTTCTCAAACCGTTCATTTATCACAAAAGGATTGTTCGATGTCCAACAATGGCTCGTCACCGCTGGTGCTTTGGTATAACCAACTCGGCATGAATGC ++ +BBBDFFFFHHHHHJJIJJJJJJIJIJJJJJJIJIJJIJJJJJJJJJJJJJJJJIJJJJ85;@@E(:44>.;6>AC(;,5;;>(:@A53:5??-58@C:(4 +@DRR015910.491 HWI-ST1182:184:D1KRDACXX:3:1101:17286:2335/1 +GTTGCTGACTGCCAGCATCAGCAACCCGGCAATACCGTAACTGGTGCCGGACAAAGGCCCCCCCAGGGCCATCAGGAGTATGGCCGCTGCTGTACGCCAC ++ +@C@FF?;4DFBHHBHGGCHI@>BFH@G)?DFHGB<*@8?(?D=BCCGE>4@4:(239>4AC?<9>@ +@DRR015910.492 HWI-ST1182:184:D1KRDACXX:3:1101:17324:2393/1 +GCATTAGGCCGCCGGGGACGTTTTTTTCCCACCGGGAGTTTGGGCATAACGGTGCTTTCAGTAAGTACGACAGGTACTGTGGAGGCACTTCCGTAAAGAA ++ +@C@BDFFFHGHHHIGIJEEG@BGIGGGIEEEEEDDC;?@C@CBD@CCDDCDB8?BCDCDCABDDDEDCB@BBBB::ACC>CDCB??BDDCDDDAB@ACAA +@DRR015910.493 HWI-ST1182:184:D1KRDACXX:3:1101:17496:2450/1 +GAAGAAGAACAATAACAAGCACGGTAACCACAGTAACCGTCTCATTTAAACCGTCTTTCGCCTCCCTTTCCTGTTTCCGATACTAATGTCCATTTTCGCA ++ +CCCFFFFFHHHFHGJIJJJIJJIIHHIJIEHHIHGGIJJGIGJIIIJIJJIJJIIIJEI?EEHHFFFFEEDCEEDACCBDDDDDDDDDEEEDDEEEED@D +@DRR015910.494 HWI-ST1182:184:D1KRDACXX:3:1101:17610:2364/1 +GCTGTATTCCGTCTCCTCGGTGCTGATTAACGTCTTCGTCAGCAGCAAAGAGTTGAAATTTACCGGCGGATCGGTGCAGGTATTCCACGGCATGGCGGCG ++ +CCCFFFFFHHHHHJJJJJIJFHIJJIIIJIJJJJIJIJIIJIJJJJIJJIIJGIJJJJJJJJIJJHHDD8=BDB88<@@B2>CC@DDCBD@DDDDD@D>5 +@DRR015910.495 HWI-ST1182:184:D1KRDACXX:3:1101:17534:2433/1 +GATTAACGTGACCGCCAATTCGTAAGTACATTAAAATTGGCTTCGTTATTGAAGATTTTGCTGTGCTTTACACCATGCCACAGAATTCCCCCATTGAAAC ++ +CCCFFFFFHHHHHIIJJJJJJJHIJJHIJJJJJJJJJJIJJJJIJJJJJJJJJJJJJJJJJJJHHHHHHFFFFFDEEEEEDDDDDDDCDDDDDDDDDDDD +@DRR015910.496 HWI-ST1182:184:D1KRDACXX:3:1101:17519:2450/1 +GACATATGAAGTCTGGATCGGTTTCTTCGCCTCTGCGTTCACCAAAGTGTTCACCCTGCTGGCGCTGTTTTCTATCTTGATCCATGCCTGGATCGGCATG ++ +CCCFFFFFGHHHHJJJJJJJJHIJIJJIIJJJIIIJJJJJIJJJJJJGIHHIJJJJJJJJIJHHFFDAEEEDDEECDFDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.497 HWI-ST1182:184:D1KRDACXX:3:1101:17761:2257/1 +GGGTAATGTCACCGTTATGGTGCGTTCCAGAAGCGTGCCGTCTTTGCTTGAGTGGATATCGCTGCGCCAGTTCCACTCTTCGCCATTTATTAACTCTTTG ++ +BCCDDFFFHHFHHJHIJJJJFGIIJJJJGIJJJJJHIJJJIIJJJJIJJIJJIIJIIIJJHHHHFFDDDDCCCDECDDDDDDDDDDDEEEDEDDDDDDDD +@DRR015910.498 HWI-ST1182:184:D1KRDACXX:3:1101:17831:2265/1 +CCCCAAAATGGTGTTCAGGAAAAAGCGGGTAAAGTGGACCATCCCCTGATAAGGGTCGCCCTGCAAGAAGTAGTTAACCATCACCGCAGGTTCTTCAAGG ++ +CCCFFFFFHHHFHJJJJJJJJJJJJIJJJFHIJJFHJJJIIIIJJJJJJJJJJJJHHFFFDDEDDDDDDDDDDFECDDDDDDDCDDDDDDDDDDDDEDDD +@DRR015910.499 HWI-ST1182:184:D1KRDACXX:3:1101:17969:2342/1 +TTACTGGAGTTTGGTGAAACCATCCACAAAGGCCGGGCAGCGATGGAGCGGGAGTTCCCCGAAGCACTGGAACGGATGAAAGAGAGACTGCCACCGTATC ++ +CCCFFFFFHHHHHJEGIJJJIIJJJJJIJJJJJJJJJJJJJJIJJJIJJHFFDD@DDDDDDDDDDDDDDDCDDDDDBDDDDDDDDDDDDDCDDDDDDDDD +@DRR015910.500 HWI-ST1182:184:D1KRDACXX:3:1101:17825:2346/1 +GAGCACGGTACACCTGCGGCAGCTTCTCTCCACACACCCGGTTGGCAAGGAACCCGAAGTACCTCACCATCTTAAAAAACTTCTCCGGGATGTGCTGTTT ++ +@<@DDBDDHDDBFHG;CC@B68?BD@???BB5>B>ACC>CCC +@DRR015910.501 HWI-ST1182:184:D1KRDACXX:3:1101:17965:2368/1 +GGTGAAGTGATCGTTTCCGTACCGATGGCGTTGATAAATCCACGGTCAATTTTCAGATAATCGAGCGTAAAACGCTCAAGATAGATAAGCGCGCTGTGCC ++ +BBBDFFFFGHHHHJJJJJIJJJJJJJJJIJJJIIJIIJJJIIIJJHGJJIIJJJJJHHHHHHFFFFDDDDDDDDDBDDDDDDDDDEEDDDBDDDDDDDDD +@DRR015910.502 HWI-ST1182:184:D1KRDACXX:3:1101:17976:2460/1 +GGCTTGTTTAATTTGCTTAACCGTTTTGGAAAATACTGCAGCCTGGGTTTCGTCTTCGATCAGCGCAAGCTGTTTTTCCATCTTTAACATCACGCGGCCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFHIJJIJJJJJJJJJJHHFFDDDDDCDDABDDEFDDDDDDDDDDDDDDDDDDD +@DRR015910.503 HWI-ST1182:184:D1KRDACXX:3:1101:18220:2257/1 +CGAGTAAATACTGCAACCGACCAGAATCAACGCGCCAAACAGCGGCAAAATCGTCTCTTTGCTGGTCAGCATCATCACACTGGCTTTGCCCAACTGACTG ++ +BBCFDEFFHHHHHJJJJIJJJJJJJJJIJJJJJJJJJJJIIJJJHFFDEDEDDDDDDDDDDDDDDCCDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.504 HWI-ST1182:184:D1KRDACXX:3:1101:18221:2325/1 +GTGAAATACCACTCTCGATCCCAGTGCATATGCGGGGTGATGTGAACGCGAGATACTGCTTTCATCGTCGTTTCCTTTTTGTTTATGGCATTACGCCATC ++ +@B@FFFFFHHHHHJJJJJJJJJJJHIIJIIJJIJJJJAHIIJJJJJHHHFDDDDDDDEDDDDDDEEDDDD;BDDDCCDDDDDDDDDDDDDDDDDBDDDDD +@DRR015910.505 HWI-ST1182:184:D1KRDACXX:3:1101:18174:2422/1 +GTATATGTTCAAGGAATTGAGTAGACGCGTACAGACTAAGAAAAGCCAGAAACCTGCCTAACTTACTGTTTTTATGGACTAAAGTAGACGTTAGTAGACT ++ +@@@FDFEFHHHHHJIJIIHGIFHGJJJJJJJJJJJJIJJGGIIJG@GHGIJIJJJJJJJHHGHHHFFFBCCEDDEEDDDDDDDDB@CCDDDDDDCDEDDD +@DRR015910.506 HWI-ST1182:184:D1KRDACXX:3:1101:18277:2262/1 +TAAATGACCTCCTCCGTGGTTGTCATGAAAATGCGTCTTAGGAAGGTTAAATCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAATCTCG ++ +CCCFFFFFHHHHHJJJIJJHIJJJJJJIJJJJJJJJJJJIJJIJJJHIGIJJJJJJJJJJJJJJJJJJHHHHHFFCDDDDDDDDDDDDDDDDDDDCCDDD +@DRR015910.507 HWI-ST1182:184:D1KRDACXX:3:1101:18361:2278/1 +GTATAAAAACCAAGAAGGCAAGCCAGAAGTGAAGGCGCGCGTGCGGCGACTGCAACGGCAACTGGCGATGGGGCAAATTCGCAAAGTGGTGCCGAAAGCC ++ +@@@FFFFFHHHGGJJJJJGIJHIJIJIJJEHHGHIGIGIIIFIIGHFDBDDDDDDDDDDDBDDDDDDDDDBDDDDBDDDDDDDDDDCDDDDDDDDDDDDD +@DRR015910.508 HWI-ST1182:184:D1KRDACXX:3:1101:18434:2298/1 +ATCTGGATGTTCTACATGTTCGCGGATGTTTATTTGCTGACGACCAAGGTCGATATTCTCGGTGTATATCTCTACAAAACCGCCTTTGCCTTTAATGATT ++ +CCCFFFFFHHHHHJJJJIJJJIJJJJJJJJJIJJIJIJIIJJJJJGIJJEHHHHFFFFFEDDAB@CDDFEFDEEDDDDDDDDDDDDDDDDDDDDDDDDDE +@DRR015910.509 HWI-ST1182:184:D1KRDACXX:3:1101:18357:2330/1 +GTATTGCCACGTGACTTTGTTGTGCGCTTGTATGAGTCCGGCGCTACGGTTCAAGGTTGTTCAGCCTTTCGAGCGGGGCAGGTCGCAACTCTGGATTTTG ++ +B@@FFFFFHHHHHIJJJJIJJJHIJIJJJJJJJJJJIIJJJJJJJJJHHEFFFFFEEEEDDDEDDDDDDC@?CDDDDDDDDDBDDDDDDDDDDDACDDDD +@DRR015910.510 HWI-ST1182:184:D1KRDACXX:3:1101:18259:2421/1 +GCATAAGCCGCCACCCGCTGTGAGAGCAGGCGGTTGTATTTCGCCATCTGGCGGATGGTGTCCTGTTGCGTCTGCAACAGTGCCCGCAGGCGGGCATTCT ++ +CCCFFFFFHHHHHJJJJJJJHJIJJJJJJJJJJHIJIIIJHHHHFFFFEDEEDDDDDDCDDDDDDDDDDBBDDDDDDDDDCDDDDDDDDDBDDDBBCDDE +@DRR015910.511 HWI-ST1182:184:D1KRDACXX:3:1101:18626:2283/1 +TTCCATCGGAGCGTTGTCGTAACAGTTACCTTTACGCGACATTGATGTTTTCAGACCAGACTGCTCCTGTATGACCCGGTAATCGTATGCGCAGTACTGT ++ +BCBFFFFFHHHHHJJJIJJIIJJJJJJIJJJJJJJJJJIJJJJIJJHHHHHHFFFFFEECDEDDDDDDDDDEEDDDDDDBBDEEDDDDDDBDDDDDDEDE +@DRR015910.512 HWI-ST1182:184:D1KRDACXX:3:1101:18545:2321/1 +ATCCAGCGTGATATCGAACAGCGCCTGATGCGCGCCGTAGAAGCAATTAATGCCGTTTAATTGAATACTCATTGACACTCGTATACTGGCAGTCTGATAG ++ +CCCFFFFFHHHHHJJJJJJJJ@GHIJJJJJJJJJJJJJJIHHHHHFFFFFFFEEDBDDDDDEDDDDEDDDDDEDDCDDDDDDDDDEEEDDDDDDDDDEDD +@DRR015910.513 HWI-ST1182:184:D1KRDACXX:3:1101:18632:2381/1 +TATTAATGCAGTCTCTCGATCCTCTCTTCGCGCGTTTATCCCGTTCAAAATTTCGCTCTCGCTTTCGTTTGGGCATGAAAGAGCGTCAGTATTGTCTGGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJFJJJJJIGIJJJJJJJJJHHHFFFFDDDEDDDDBDDDDABDDDDDDDDDDDDDEEEDEEDDDD +@DRR015910.514 HWI-ST1182:184:D1KRDACXX:3:1101:18577:2403/1 +AAATAAAGGAAAGAATTACAAACAGAGTTATCGATAAAAACCCAAATAAGAACGTATGAGCGAAGGAAACTATTGAAAAAACAATCACAAACGACAAGAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJHIIIJJJJIJJJJJJJJJJJJJJJJJJHIIJIJJJJHHFFFFFEEEEEDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.515 HWI-ST1182:184:D1KRDACXX:3:1101:18724:2405/1 +ACTCCAGCCCCGCCTGACGAACTTCCTCAATGTACGCTTCGTTATTAGGCGGATATCCCATCGGCACCACCACTTTTACCGTATCGCCAAATTGCTGATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJJJIIJJJJJJIJJJJJJIGIJIFDDDDDEDDDDDDDDDDDDDDDDDCCDDDDDDDDDDDBDDDDDDDDDDD +@DRR015910.516 HWI-ST1182:184:D1KRDACXX:3:1101:18528:2419/1 +TCGTTGGATCAATCCGCCGTTTGAACCCACCATTCGTGATGGCATGTTATTCGGGCGCGGTGCGGCAGATATGAAAGGCTCGCTGGCGGCGATGGTGGTA ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJJJIJJJIJJJJJJJJJJJJJJJFDDDBDDDDDBDDDDEDEEDDDDDDDDDDDDDDDDBDBD>AB9> +@DRR015910.517 HWI-ST1182:184:D1KRDACXX:3:1101:18627:2479/1 +CTCTGTATATTGAGCAAGAAGAAATGAAGAAACTGCCGATTGGCGGTTTATGGGAAGGGAAAGTTAAACTCCATTTTAGCTACCCGGCAACAGATTATCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJGIJJJJJJJIJIJJJJJFIJIJJJJIHHHFFFFEEEEEEEDDDDDFCDEDDDEDDDDDDDDDDDDDDDDDE +@DRR015910.518 HWI-ST1182:184:D1KRDACXX:3:1101:18985:2341/1 +GTTAATGATTGGCCGAAAAGGGGCGGTTGGCGACATTTTAGGCTACTTTTTTGATGCAAAAGGTGACGTTGTCACGGATATCAAAATACATAACGAACTG ++ +@@@FBDEFHHHHHJJHIGJJJJJGJJHIHHHFFDBDDEEDDDDDDDDDEDDDDDDDDDDDDDDCCDDDD@BBCED>BDDDDDEDDDDDDDEEDDCDDDDD +@DRR015910.519 HWI-ST1182:184:D1KRDACXX:3:1101:18956:2354/1 +CAGAAGAAGATGATTGCAGACGCATAGAGTAACACATAAAGCGGTTGCCCAGGCTGCAAATACAGCGAAATTGTTGTCAGCCAGTTCCAACCAGTACCGC ++ +BCCFFFFFHHHHHJJJJJJJJJJJJJIJJGIIJJJJJJJJJIJJIHIJJJJJJJJJJJIIHHHHHHFFDDDDDCDBDDEDDDDDCDDDEDDDDDDDDDDD +@DRR015910.520 HWI-ST1182:184:D1KRDACXX:3:1101:18838:2442/1 +CCATTAATGTATTAAAGACTATTTAGTGAGGTTTAAATATGAGTAACATTAATTTAGTTCAATTAGTTAGAGATAGTCTTTTCACGATTGGTTGTCCTCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJHIIJJIIJJJJJJJJJJIJJJJJJJJJJJJJHIJJJIJIIJIIHEHGIJHHIIJJJJJJIIHHHHFFFDEEEEE +@DRR015910.521 HWI-ST1182:184:D1KRDACXX:3:1101:18935:2458/1 +GTATATAATCCTTTTATCTAATGCCTCCACATCTCGATACAAAGAGTTTTTTTTTTAGTGTTAATATGTGTGCTTCAATTAATTTAACAGACCGTTGATA ++ +@BBFFFFFHHHHHJJJJJJJJJJJJCHJJJJJJJJJHIJJJJJIGHDIIJJJJJHFBC?BDDEDEEDEFCCBACDCCDEEDDEEDDECCACBDDDDDDCC +@DRR015910.522 HWI-ST1182:184:D1KRDACXX:3:1101:19159:2295/1 +AATTGGTGTAGCGTCCGGTAACCTGTTGCAGGGCGTACCGTTCAACGTTGATGAATATCTGCGTCTGTACTACACCGGTAACTTCTTCCAGTTGCTTAAC ++ +CCCFFFDFHHHDHG1CFGFHIJJJJIJJJJJJIJIIIJJJJJJJJJJJHHHHFFFFFFFFEEDDDDDDEDEEDDDDDDBDDDEEDDDDDDDDDDDDDDDD +@DRR015910.523 HWI-ST1182:184:D1KRDACXX:3:1101:19327:2344/1 +TAATAGAACACTTCCGCCATTATTTATTACTTTCTGCCGGATATTGTCCACCAGAGTTTTTTGGGAGGATAACCCGTACTCACCATGATTGTTACGCCAA ++ +CCCFFFFFHHHHHJJJJJJJJIJJJIJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJHIJJJHHFFFDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDD +@DRR015910.524 HWI-ST1182:184:D1KRDACXX:3:1101:19550:2435/1 +TTTTACCGTTACGCATCACCACTTCGCCCTTGATACCGTTTTTGCCCCGGAAGCTGACATGCCCCTTAATCGGCATATCAATAGTTTTGCCGTCCTTCAG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJIJJHIJJJJJJJJIHHFFFFEEEEEEDDDDDDDDEDDDDDBDDD@ACDDCDEDDCDDDDDDDDDD +@DRR015910.525 HWI-ST1182:184:D1KRDACXX:3:1101:19515:2482/1 +ATCCGCGCTCGCGCAGAAGTGGAAGTTGACGCCAAAACCGGTCGTGAAACCATTATCGTCCACGAAATTCCGTATCAGGTAAACAAAGCGCGCCTGATCG ++ +CCCFFFFFHHHHHJJJJJJHIJJJJHIGJJJJJJJJJIIHHBEDDBDDDDDDDDDECDDDDDDDDDBBDDDDDDDBDEDCCCDDDDDCCDDDDDDDDDDD +@DRR015910.526 HWI-ST1182:184:D1KRDACXX:3:1101:19797:2279/1 +ATTTATCATTCTGAGATAATGCCTCTGTTTTATGATGATTTTGCAGTTCAGAATACTGCCCTCTTACAATATTTTCCTCGCCACGGATACTGTTCTGAGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJIJIJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJIJJJGJHHHFFDDDDDEFDDEDEDC +@DRR015910.527 HWI-ST1182:184:D1KRDACXX:3:1101:19911:2414/1 +CTACAAGACCGGGCTGATGGTTAATCCCACAAATCGCGCGCCGGATCGAGCACCGGGCGAATGATGCCCGCACGCACCGTAAAGTCGCCGAAGCCTTCAC ++ +CCCFFFFFHHHHHJJIJJJGFHIJJJJJJJJJJJJJIIJJIJHFDDDDDD@BDDDDDBDB;BDDDDDDDDDDDDDBBDDDDDDDDDBBBBBB@BBDDDDD +@DRR015910.528 HWI-ST1182:184:D1KRDACXX:3:1101:19967:2442/1 +CCCGGGCACACTTAGCCTGTGTCAGGCCGGCATATACCTCAGCAGACTGATATCCCGCGCGTTTTTCTTCAGCCCCTCCACATTCAGCCCCGCAATGGCC ++ +CCCFFFFFHHHHHJHIJJJJJJJJJJIJJJIJJJJJJJJJJJJJJJIJJJJJJJJJHHFDDBDDDDDDDDEDDDDBDDDDDDDDDEDDDDDDDDBDCDBD +@DRR015910.529 HWI-ST1182:184:D1KRDACXX:3:1101:19878:2490/1 +GGGTGAAATCTCAAAGGGGCTTAAAGGCCTGGCAAAATCCGGTGGTTTTCCGTTGATTGCGCTGAGCCAGCTCTCCCGCGGTGTGGAGTCCAGACCCAAT ++ +BBBBDDFFHHHHHEIJJJJJJJIJJJIIIHIGGHIJJEHJIJ@GH@FFHGDFCGHIJHHFHFFCDDEDDBBDDDDCDDDDD@BDDDDDCDDDDDDDDDDC +@DRR015910.530 HWI-ST1182:184:D1KRDACXX:3:1101:20237:2344/1 +TAACAACATCGTGCTGAAAAAATTACGCATCGCGTTTTCGCTGAAAACCGATGACATTCTGGCGATCCTCACCGAACAGCAGTTCCGCGTTTCGATGCCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJIJJIJJJJJJJJJIJIIJJHHHFFDEEEEDDEEDDDDDDDDDDDDDDBDDDDDDCDDDDDDDDDDDDEEDDD +@DRR015910.531 HWI-ST1182:184:D1KRDACXX:3:1101:20030:2360/1 +GTATCAAAACGCTCTATTACATCCGCCTGCGTCAGATGGCGCTGATACGTGAGAGTTTCATAGATATTCCTTAAAGTGCACAGGAGACGCAGCCTTCAAT ++ +BBCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJIJJJJHIJHHHEHHFFFFFFFFEEFEEEEDDCDCCDDDDDDDDDDDDDDDDDDDDE +@DRR015910.532 HWI-ST1182:184:D1KRDACXX:3:1101:20289:2301/1 +AACCGATGTCATTCCGCCAGATTACACGCCCGGCATGTTACGTCTCGATGCGAAGCTGGTTTACGACGATAAAGGTTTCTGTGCCGATATCGTAAATCTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJJJJJJJIJJJIJJIGIJHHHFFDEEECDDDDDDDDDDDDDDDDCCCDCDCDDDDDDDDDDDDDDDDE +@DRR015910.533 HWI-ST1182:184:D1KRDACXX:3:1101:20456:2467/1 +AACGTGTTCCGGTTCGTATTCGTCTCGACAACCAGCAAGAGAACATCTGGCCTGCGGGCACCACTGCTACAGTGGTGGTCACTGGCAAACAAGATCGCGA ++ +CCCFFFFFHHHHDGIJHJJIIJGIIIJIJJIJJJJGDGHGHJJJJIIIJIIJJJJGHF@BDDDDDCDDDDCDDDDC?BDDB@B?C@@:A +@DRR015910.535 HWI-ST1182:184:D1KRDACXX:3:1101:20459:2485/1 +GAATGCGCCCATCCGGGAAGGTCACTTTGCCGTGTGCGCCGCAGCCAATACCGATGTAGTCACCAAAGCGCCAGTAGTTGAGATTGTGCTGGCACTGATA ++ +?@@D=DDDFDFFBCGEF)?E@:?DAGIIIIEF?0?DDEFBBBD>ADBBAB<@?)59;>A4:@ABBABBA@>@AABA??@?AB3> +@DRR015910.536 HWI-ST1182:184:D1KRDACXX:3:1101:20271:2489/1 +CGCCCGCTGTCCGCTTGAAGCTGACCGAGCATCAGTTTTAGCAGCGTGGTTTTGCCGCACCCATTCGGACCAATCAGGGCAATTTTGTCGCCACGTAGAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIHJJJJJJIIIJJIIJJJJJHIHCHGFFFFDDBDDDDDDFEDDDDDDDDDDDDDD?CDDDDDDDDDDDDDDDDC +@DRR015910.537 HWI-ST1182:184:D1KRDACXX:3:1101:20588:2396/1 +CCTCACTTCCCAGGCGCTGGCGGGCCTGAATAACGGCACTGGGGGCAACGAAGGGGCGATTGCCCGGCAGCATGATGTCCAGGCGATTCACAATCTGGTG ++ +@@@FFFFFHHHHFHGIJJJJIJJJAHCEEHFHFBBD<>BCDDDDDDBDDDDDDDDDBDBHHCHFBEDDEEDDDDDDDEDDCCDCDDDDDDDDDDDDDDDDD +@DRR015910.542 HWI-ST1182:184:D1KRDACXX:3:1101:20833:2487/1 +GATTATGGCGGACATAAACTATTTAATACATCTGTTCCTGGTCTGTATTACACCATGTTAATATCAAGGGTCTGGTCTGCATACGATCTGTCTCTTATAC ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJIJJIIJIIJJJIIJFHIJHIJJJJJJJJIJHJJJJJJJHHHHHBEFFFECEEEEDDDDDDDDDEDDDDDDDDD +@DRR015910.543 HWI-ST1182:184:D1KRDACXX:3:1101:21044:2279/1 +CTTACATACGATGTACCGCTGTTCTCTTTACGATTTTTAGCTGTACTGGTGAATTATGAGCAATCTGAATCCATGCATGACGTGTGGTGCCTGTTGTGCA ++ +CCCFFFFFHHHHHJJJJJJJJHJJJJJJJJJJJJJJJJIJJJIHIJJJJFHIJJJJJJJJJJIJJJJJJJHHHHHADFFFFDBDCDDDBDDDDDDDDDDE +@DRR015910.544 HWI-ST1182:184:D1KRDACXX:3:1101:21334:2320/1 +GCGGAGGTCAGATGCGGTTTACGGGGCTGAAGAGGGGTTACCGTCTGGCAGAGCAGGTTATGATGCATGAGCCGCTAGCTCGAATACGGTGGTGCGGCTG ++ +CCCFFFFDHHHGHJJJJIJJJJJJJJJJIJJJIJJJJGJJJHHEFFFFEEDDDDDDDACDDDDEDDDEDDDDDDDDDDDDDDDDDDDDD?BD9@CDDDBD +@DRR015910.545 HWI-ST1182:184:D1KRDACXX:3:1101:21385:2454/1 +ACGTACTTCTCGGGGCGCTTACCTTCAAAATGATGGACATTATTTTTGTGGAACCGGAGGTAACAGACCAGACGGTTTAAATGAGCCGGTTACTTTAAAC ++ +@@@FFFFFHHHHGIJJJJJJJJJJJJJJJJJJIIJJJJJJJJJJJHHHHFFFFFDDDDDD8@CDDDDDBDBDDDDDB@CCDEDDDDDDD@BDDDDEDDDD +@DRR015910.546 HWI-ST1182:184:D1KRDACXX:3:1101:21328:2460/1 +CTTAAAAAACTCAGGCCGCAGTCGGTAACCTCGCGCATACAGCCGGGCAGTGACGTCATCGTCTGCGCGGAAATGGACGAACAGTGGGGCTATGTCGGGG ++ +CCCFFFFFHHHGHIJJJGIGGDFHJFHIIJGIIIBHGHIHHHHHFFBD?DDCDDDDDDBCDDDBDDDDDD9>@CC@>A>>BDDD@@CBDDDDDDC@<BD8@CDDDDDDDDDCCDDDDDDDCDBBD>BDBDDDBDDAC +@DRR015910.548 HWI-ST1182:184:D1KRDACXX:3:1101:1697:2555/1 +GCCCAGCAGTATGCCTGCCAGAAAGGGTTAACCGCGACCTTACGAGGATAACAACCATGACCACACTGAAACTGGACACGCTCAGCGACCGCATTAAAGC ++ +C@CFFFFFHHHHHJJJJJJJJJJJJJJGHIJ4CGIIIJJJJJJJJJJJHHHHHHFFFEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.549 HWI-ST1182:184:D1KRDACXX:3:1101:1579:2563/1 +ATTTATGTGGTTACTTGACCAGTGGGCAGAGCGCCATATAGCAGAAGCGCAAGCGAAAGGTGAGTTTGATAACCTGGCAGGTAGCGGCGAACCATTGATA ++ +BCCFFFFFHHHHHJJJJJJJJJHJJJGIJIJJJJJJJJJJJJJJJJJJJJJJJJJHHFFFBCEECEEDDDEDDDDDDDDDD?CDDDDDDDDDDDDDDDEE +@DRR015910.550 HWI-ST1182:184:D1KRDACXX:3:1101:1612:2593/1 +TCTATTATCTGGTGGATGCGTCTTATCAGCAGGCAGTGAATTTACTACCGGAAGAAAAGCGTAAATTGCTGGTACAACTCTGAAAGGAAAAGGCCGCTCA ++ +CCCFFFFFHGHHFHJIJJJJJIJJIJIJJJJJJJJIIIJJIJJIJJIJIJJJJJJIJJJIHHHFFFFFFEEECCEDDDDDDDDDDDDDDDDDDBDDDDDD +@DRR015910.551 HWI-ST1182:184:D1KRDACXX:3:1101:1996:2504/1 +ACCTGCGACAGTAACGTCGTCGGGACTTGAATGAAACGAACACCGCGCTGATAACTCGCCGCCGCGAAGCCGGTCAGATCGCCCACTACGCCGCCGCCAA ++ +CCCFFFFFHHHHHJJIIJJGIIIJGIIJIGJJIJJIJIJJEHIIFGFDDDDDDDDDDDDDDDDDDDBDDDDDBDD>CCDDDDDDDDDDDDDDDDDDDD@B +@DRR015910.552 HWI-ST1182:184:D1KRDACXX:3:1101:1936:2576/1 +TCTGTACAGTCATCGCTGGGAAATCGAACTGGGATACAGGGAGATAAAACAGACGATGCAACTGAGCAGGCTGACGCTGAGAAGTAAAAAGCCGGAGCTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIJJJJIJJHIGIJJJJJJJJJJIJJJIHHHHHFFFFFDEEEDBDDDBDDDDDDDDDDDDDDDBBDDD +@DRR015910.553 HWI-ST1182:184:D1KRDACXX:3:1101:1899:2671/1 +CTGTTTCACCATTTGTGCATAGCACACTTTCGCCACTGGTTCCTGTTTATCCATCCCCAGAGCACGGTACACCTGCGGCAGCTTCTCTCCACACACCCGG ++ +CCCDFFFFHHHHHJJJJJJJJJJJJJJJJJIJJJIJJJJHIJJJIHIIIJIIJJJIJIJIIJJJJJJEHHHFFFFEDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.554 HWI-ST1182:184:D1KRDACXX:3:1101:2108:2539/1 +GGGAATAATCAACAGGTCCTGTTCACCCGCCAGCCGGATGGCAGTTTTATTCGTGCGCGGTAGATGAAGGGTCAACCAAAAGCCAGCTAAGGATTGTCTC ++ +CCCFFFFFHHHHHJJIHIIJJIJJIJJJJJJJJJJJJIGIJJIJFIJJIJJIJIJGHFDDBDDDEDDDDDDACDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.555 HWI-ST1182:184:D1KRDACXX:3:1101:2067:2565/1 +ACTTAAACAAGGCGATGCTGCTATTCAGGCGGTATCTGACCAGCCGTGGGACGCCAGCGTTAAATCACTGGTGGCCTTTCCACAATTGATGGCATTGATG ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJJGIIIIIIIIIIJJJHIHHFFFDDDDDDDDDDDEDCDDDDCDDDDDDDDDEDDDDDDDECDDDDDDDDD +@DRR015910.556 HWI-ST1182:184:D1KRDACXX:3:1101:2019:2622/1 +AAATTATCCTTTCTAAACCGAAGGTGAAGGTTGTGGTTGAGTGAAAATTGATCAGTAAGGCCATAGTGCGGTGTAATTATAGACAGCTAATTAGCTCGTT ++ +CCCFFFFFHHHHHJJJJJJJIJJJAFGHHIHIJGIJHIIIJIIJJJJIJJJJJJJJJJJJJJJJJJHHHHFFDDEEEFEEEDDDDDDDDDDEEDDDDDDD +@DRR015910.557 HWI-ST1182:184:D1KRDACXX:3:1101:2226:2646/1 +AGAAGAACCTCAGGCATGCGTCCATTGGTGGAAAGAATCTGCCGAAAACTGTGCGGGCCAGGCATGATCCTTTCCAGGCGGTGTATTAAAGAGCGCGATG ++ +CCCFFFFFHHHHHJJJJJJJJJJIIJJJFIIJIJJJJJJIJJJJJIJJJJJJJJJHHDDDDDDDDDDDDDDDDDDDDDDDDBBBDEEEEDDDDDDDDDDD +@DRR015910.558 HWI-ST1182:184:D1KRDACXX:3:1101:2338:2552/1 +CTTTACTGGTTTTGAAGGCATCCAGACGAACGATGCCGACTTTATCTCCCGCGACATAAAACACGCCGCCAGGACGGATAAAGAAATTCCCTTCACCTGA ++ +CCCFFFFFHFHHHJJJJJJJJJIJJJJJJJJJJJJJJJIIJJJGJIJJIJJHFDDDDDDDDDDDDDDDDDDDDDD@BDDDDDDDDDDCDDDDDDDDDDDD +@DRR015910.559 HWI-ST1182:184:D1KRDACXX:3:1101:2428:2648/1 +AGGTCATTGCGCACAGACGCAACAGCGCCAGCGACTCCAGAAAGGCCACCAACACCACCGCCATCAATGAATACACGGTGGATTGGGTAATAAAGTGTTC ++ +BCCDDFFFHHHGHJJJJJJJJJJIJJJJJJJJJJJJJJJJIHHHHFFFFEDDDDDDDDDDDDDDDDDDDDDEEDDCDD?BDDDDDDD@CDEEDDDDDDED +@DRR015910.560 HWI-ST1182:184:D1KRDACXX:3:1101:2360:2666/1 +CACGTTCTCTTTATCGAGTGTGCGTTCGGCATATTCACGTGCCACCGTGTTGTGTTTGGGCAGCAGGAGCGCCTGACGGATCCCCGCCACCAGCGCCTCG ++ +CCCFDFFFHHGGGJIJIJHIGHIJIJJIIIGGGIJFHIIIJJJJJIJFHBFHFHHGJIHH>ADEDEDDDBBDDDDCDDDDDDDDDDBDDDDDDBDDDDDB +@DRR015910.561 HWI-ST1182:184:D1KRDACXX:3:1101:2261:2726/1 +GCTCTTAGTTTGCTGAGCCAGTTTAGCATTGCCTTCTACATGACCGATGCCTGAGCCGGTATACCGAACTTTATTGTCCTCAACCAGTCATGTTATAAGC ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJJJJFHIIIJJIIJJJIJGIJJJJJJIJJIIJJDGGIIGDDGGIEC?DEBHIIIA@FHIHGBE;?BB>?C@DD>CC@BBBBCCCCCCCCDCEC:>CC@CB@>B@CB +@DRR015910.566 HWI-ST1182:184:D1KRDACXX:3:1101:3049:2509/1 +TATATATTCCTTTCATTGATGGGTTGTGACGCAGACTTAGTGTTGTTGTACTCTTTGCCCTTTGGATGATTGATGGCAAAGATTGATGTGGTTTGTCCCC ++ +CCCFFFFFHHHHHJJJJJJJJJIGHIHIJJJJJIJJJJJJGIIIIIIIHIJJJJJJJJJJJJJJJJJJHHHHHHHFFFFFEEEEEEEDEDDDDDDDDDDD +@DRR015910.567 HWI-ST1182:184:D1KRDACXX:3:1101:3013:2561/1 +CTATGCGGACATCGCCAAAAAGCAGCCCGTCACACAGCAAACGTTGTTTGAGTTAGGTTCGGTCAGCAAAACATTTACGGGCGTGCTTGGTGGCGACGCT ++ +CCCFFFFFHHHHHIJJJJJJJHGHGIJJJFHIIIIJIJGIJIIDGIHHHFFFBDFFECEEDDBDDDDDDDDDDDDDDEDBBBB?BBBBBBBB +@DRR015910.568 HWI-ST1182:184:D1KRDACXX:3:1101:3029:2617/1 +CGTCTCAACTGGCATCCGCATGTACATGTGTCTGTAACCTGTGGAGGTCTGAATAAGCATGGTCAGTGGAAAAAGCTGAGCTTCCTGAAAGACGCGATGC ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJIIJIJJJJJJJJJIJJJJJFHIJJJJJJJJJJJJGHJJFHJJJJHHHHFFFFFEEEEEEDDDDDDDDDDDDD +@DRR015910.569 HWI-ST1182:184:D1KRDACXX:3:1101:3148:2644/1 +CATGAGTAAAACGTTGGCACAGTAGCGCAATGTCCCGCTGTGCCAACGACAGGTACAATATATATAATAAACACATAAAACGACTCATATTATTTTCTGC ++ +CCCFFFDDHHHHHHIJJJJJJJIJJJJJJJJIJJJJJJJIJIJJJJJJJJJJHEHHHHFFFFFFFFEEEEEEDDDCDDDDDDDDDDDDDEEEEEEEEDDD +@DRR015910.570 HWI-ST1182:184:D1KRDACXX:3:1101:3175:2729/1 +CGATAATACAGGCAATCTCTTGCGGGTATTGCTCAAATGCGGCGCGTACAGAAGCCAGATCATTATAAGTACAGGTTAAGGTATGTTTGGCGAAATCTGC ++ +@;;DDDB?=A+AC?EECFB;A>?B9?:>5@;:@44(+4>>@944::::4+4444@3(40959<>4>@ +@DRR015910.571 HWI-ST1182:184:D1KRDACXX:3:1101:3510:2559/1 +CAAAACAGCGTTGGCACCACGCCGATAATGCGATCCGGCTTCCAGCGACGTTGCGCCATCAGAGGAAAGAAACTGCTGACGGCAAAACTGCTGAGATGTA ++ +CCCFFFFFHHDDFEHJGIGIIJJIJIIJGHIJGIIJJJJJJGFC?HEFDDBDDDBDDDDDDCCDD@BCACDDDDCACDCCDBDDDBDDDDDDDDBCDD>A +@DRR015910.572 HWI-ST1182:184:D1KRDACXX:3:1101:3580:2594/1 +TTATCGAGCTGTTGCGTGCCAATATGCAAAACTGCGGCGCATTACGAATTGACCATGTGATGTCGATGCTGCGTTTGTGGTGGATACCGTATGGCGAGAC ++ +CCCFFFFFHHGHHJJJIJJJJJJJJJJJJJJJJJJJJJJJJJHHGHFFFFDEEEEEDEDEEDEDDDDEDDDDDDDBDDDDCBDBDDDDDDDDDCDDDBBD +@DRR015910.573 HWI-ST1182:184:D1KRDACXX:3:1101:3676:2610/1 +CAGTAATACCATTCGCGCTCTGTTTGCTACCGGCAACTTTGAGGATGTTCGCGTCCTTCGTGATGGTGATACCCTTCTGGTTCAGGTAAAAGAACGTCCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJJJJJJIIJJIIJIGHIIIHHFFDEEDCBDDDD>CDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.574 HWI-ST1182:184:D1KRDACXX:3:1101:3630:2625/1 +ATGCTGTTGAAGGTCACATCCGCCATCGTGCCACCCGCCGTCTCGATCACCTTGCGGATAGTTTCCAGAACGTGGCGGGGTTGCGCCTTTTGGTCATCGG ++ +CCCFFFFFHHHHHHIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJHHHFFDDDDDEEEDEDDDDDDDD>BDD-5>&(0)5&0:(+5((,4435 +@DRR015910.575 HWI-ST1182:184:D1KRDACXX:3:1101:3749:2726/1 +CAGAACAGAGCGGAAGAAGACAATCCGGAAAGTCCGGTTCCTGTTCCGCCATCAGCTGAAAGTCATCTTAACGGCTTTAATACTGACCAGATGCTGAAGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJHGIJJJIIIJJJIJJJJIHHHFFFFFEEEDECDEEDDDEEDDDDDDDDDDEDDDDDDDDDDDDDDDDDD +@DRR015910.576 HWI-ST1182:184:D1KRDACXX:3:1101:3997:2676/1 +TCCATATAGTATCCTTTGGGCTTTTAATGGATATCTTTTAAGTATCTAACAAACATCCTGGGTTATCTCATGAGCAAAGCGAAATTTAGTGCACAGGCTG ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJJJJJJJJJJIJJJJJGIIJJJJJJJJJJJJJJJIJIIJJJJJJJJJJJJIJHHHFFFDEEEEEDDDDDDDDDD +@DRR015910.577 HWI-ST1182:184:D1KRDACXX:3:1101:4118:2619/1 +ACTTTGAGTGAACCGAGGCTGGTCATCATCTGGAAAGCGCGGGTATAAATAAAATCGCCTACCAGCACGCTGGCGGCATTGCCAAATGCGGCGTTGGCGG ++ +CCCFFFFFHHHHHJJJJJJJJJHIJJJJJJJJJJJJIIJJJJH?DFFFEEEEEEEDDDDDDDDDDDDDDDDDDDD@DDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.578 HWI-ST1182:184:D1KRDACXX:3:1101:4323:2507/1 +GCAACAAAAAGCGTGTACGACGCGGTGTTAACGTGGATATTTCGGGTACTCATCCTGCTTTCTCCTCTTTCTGGTTTTCAGCCCCCATCATCTTTTGCTG ++ +CCCFFFFFHHHHHIJIIJJJJJJJJFGHIIJJJIHIIIJJJJJJHHCDFFFEEEEEEDDDDDDDDDDDDDDDDDC@BDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.579 HWI-ST1182:184:D1KRDACXX:3:1101:4268:2653/1 +GGCAAACGCCGCGCGCACGCGCTCTTCCAGGATTTCCTGCGGGATTTCATCACCAATAAACGCCGAGAGGATCTTCGCACTGCGGGTGACAAAATCCAGC ++ +CCCFFFFFHHHHHJJJJJJJJJIHHHHHFFFDFFEEEEDEDDDBDDDCEEEDDDDDDDDDDDDDDDDBDDDCDDDDBDDDDDCDDD@BDDDDDDDDDDDD +@DRR015910.580 HWI-ST1182:184:D1KRDACXX:3:1101:4407:2725/1 +GGTATCCCGTTACGATTCTCTGCGTAACCCACTGACTTCTCTGGGGGATTACCTCGACCCCGAACTCATCTCTCGTTGCCTTGCCGAATCAGGTACTGTA ++ +BCBDFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJIIIJJJJJJJJJJJHHHFFDDBDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDEE +@DRR015910.581 HWI-ST1182:184:D1KRDACXX:3:1101:4644:2524/1 +CTCTTATTTCGCGCCGTCGACTGTTAACGGCGATGGCGCTTTCTCCGTTGTTATGGCAGATGAATACCGCCCACGCGGCGGCTATTGATCCCAATCGTAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJIJJHHHFFDDCEEEDDDDDDDEDDDDDDDCCDDCCCBBDDDDD@BDDDDDBDDDCCDCDCCCCCB8AC +@DRR015910.582 HWI-ST1182:184:D1KRDACXX:3:1101:4719:2653/1 +CCAATAAATCAACGCTGGCCCGGCTGGCGCAAATTTCGATTCCGGCAGTCAGTAATATTTTGCAGGAACTGGAAAGCGAAAAACGGGTGGTGAATATCGA ++ +CCCFFFFFGHHHGJJJJJJJJIGJIIJIGGGIIJJJEHGIIHIHIHDFDEEEEEEDFEFEEDDEDD?ABCDDCCDBDDDDDDDBDBD9>B0?CCDCCCBB +@DRR015910.583 HWI-ST1182:184:D1KRDACXX:3:1101:4702:2678/1 +ATACCTGACAATGGCGGCGGTGTTTATCGCCCAGGCCACTAACAGTCAGATGGATATCGTCCACCAAATCACGCTGTTAATCGTGTTGCTGCTTTCTTCT ++ +CCCFFFFFHHHHHJJJJJJJAGIIJGIJJJHHFFFFDDDEDDDDDDDDDDDDDDDEDDDDDCDDDDDDDDDDDDDBDDDEEDDDDDDDDDDDDDDDDDDD +@DRR015910.584 HWI-ST1182:184:D1KRDACXX:3:1101:4596:2690/1 +AGATACGATCGTCATAAGCGCCTACGGTTGGGTCGATGATGCAGTTCGAGGTCATCACGATGGGGCCAGGGAAACGAGCGAACTCCACTTGCTGATTCTG ++ +CCCFFFFFHHHHHJJJJIIJJIJJJJJGIJJJGGIIJIIJJJJJGHIJIHHGFFFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDCDDEDD +@DRR015910.585 HWI-ST1182:184:D1KRDACXX:3:1101:4921:2506/1 +CTACCGTACAGGTGGGTACATTAAACGACTGCCAAAAGATCCGTGGGGCAATGATTATCAGTATCTCAGCCCGGGTGAAAAAGGACTGTTTGATGTTTAC ++ +BCCFDDDFHHHHDHIJCFHIJJJJJJGJIJGIIIJJJIIIIJJHHIIIJJHHHHHFFFFFFFEFDFEDECDDDDDD@BDDDDDDDDDDDDDDDDDDDEDD +@DRR015910.586 HWI-ST1182:184:D1KRDACXX:3:1101:4817:2554/1 +GGCTTCCACAACAATTTTGTGATCCGGGCCGATCATTTTAAATACGGTGTCGACCGAACCAATCTCTTCTGCATGAGCCAATGGCCCCAGCATTATCAGG ++ +CCCFFFFFHHHHHJJJJJJHIJJJJJJJJJJJJJJJJJJJJJJJJJJHIIIJHHFDDDDDDDDDDDEDDDDDDDDCDDDDDDDDDDDDDDDDDDDEDEED +@DRR015910.587 HWI-ST1182:184:D1KRDACXX:3:1101:4986:2651/1 +AGGCGCGGCAACGGGGTTATCAACTGCTGATTGCCTGCTCAGAAGATCAGCCAGACAACGAAATGCGGTGCATTGAGCACCTTTTACAGCGTCAGGTTGA ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJJIJJJJJJIJJJJIHHHHHFFFFFDEEDDDDDDDDDDDDDDEEDDDDDDDDDDDDDDDDDDDDDDCDDD +@DRR015910.588 HWI-ST1182:184:D1KRDACXX:3:1101:4892:2683/1 +GAATAAATACCGCTGACAGCACCATCGCGATACCCACCAGTGCGCCCTGGATTTGCGACATTGATTTTTCCGTCGCTTCTTTTGGCGGGAGCTTATCCTC ++ +CCCFFFFFHHHHHJJJJJJJIJIJJJIJJJJJJIJJIJIJEGIGIJJHGHHHFFFFDDDDDDDDEDEDDDDDDDDBDDDDDDDCBDDBD59CACDDDDDDACCDDDDDDBBDDDDDD +@DRR015910.590 HWI-ST1182:184:D1KRDACXX:3:1101:5081:2550/1 +CACCAAAACAGGCGGTGTACTGGCCTACACTTTTGGTCCCCGAACCGATCAAACGTGCCGGGAGCTACTGGCACTGCTTACACCCTTCAACATCGGCATG ++ +CCCFFFFFHHHHHJJHIIIIJJJJJJJJJJJJJJJJJJJJJJJJJHHFFDDEDDDBDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.591 HWI-ST1182:184:D1KRDACXX:3:1101:5174:2572/1 +ACTTTAAAAAAGCCACCGAACTGTTTGCCGATGAGCGTTTCGATGGCATTCCCGAAAAAGTCATGGATACCACACCAGAGGATATCGCCGATCCAGAATC ++ +CCCFFFFFHHHHHJJJJJJJJJIIJJJJJJJJJIJJJJJJJJJJJJJJJHHHHFFFDDEDCDEEDCDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCD +@DRR015910.592 HWI-ST1182:184:D1KRDACXX:3:1101:5039:2614/1 +ACTTATGTTGTTTCTTTTGATTATCCATCATCTTATTCCTCAGCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAATCTCGTATGCCGTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJIIJJJJJJIJIIJJJJJJJJJJJJJJJJJJJJJJIJJJJIJHHFFDEEDDDDDDDDCDDDDDDDDDDBD +@DRR015910.593 HWI-ST1182:184:D1KRDACXX:3:1101:5104:2695/1 +GAAGATCGCTGATGAAATTTTGCGCGGTTAACGCCGCGAAACGCCTGTCGAAACGCACGCACAGCACGTAATCAACGCCACACTCTGCAAGGTAACGCAG ++ +CCCFFFFFHHGHHJJJIJJJJJJIJJJJJJJJJJJJIJHFEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDCBDDDDDDDCDDDDDDDCCDDDDDD +@DRR015910.594 HWI-ST1182:184:D1KRDACXX:3:1101:5355:2569/1 +AATCAGTAAAACCCGACTGCTCAGCGAGAATCGTCGAAAAGGACGAGTAGTTCAGGCGGAAACGCTGGAAGCAGCGGGCCATGTGCTATTGCTAACATCA ++ +CCCFFFFEHHHHHJJJJJJJJJJJJJJJJJJJJIIJJJJJJJJJJIHAHFFFFFFFEDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDEDDDDEDDDDDD +@DRR015910.595 HWI-ST1182:184:D1KRDACXX:3:1101:5446:2581/1 +GTCATTTATCCGCGCCGTTTATGGCGTCGGTTACCGCTGGGAAGCCGACGCCTGCCGCATCGTTTAGTTTTAGCGACATTATTTTGTTAGCCGGAGATGG ++ +CBCFFFFFHHHGHJJIJIJJJIFGGHIHIJHIJJJJJJIHHHFFFFDDDDDDDDDDDDDDDDBDDDDDDEDDDDDBBDDDDEEEEDDDDDDDDDDDDDCD +@DRR015910.596 HWI-ST1182:184:D1KRDACXX:3:1101:5453:2724/1 +ACATATTGCTGGCTGCAGGATGCGAGATTCGCCTCGGTGGTCAGGCGGATTTATCTGCTGCGGGTGCCTTCTTCCCGCCAACCTTATTGTACTGCTGTCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJIJJJJJJDGIHHIJJJJJEEFFEFEEEEEDDDDD?BDDDDDDDDDCDDDDDDDDDDDEDEEEEDDDDDDD +@DRR015910.597 HWI-ST1182:184:D1KRDACXX:3:1101:5506:2640/1 +CTTATCTGGCTAACCACTTTGCGTCCATGACCGGTACCAAAACAACGTTCGCGATTACACTGGAATATGCGGCTTCCATCATCGCACTCGTGGCTATCTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJIJJJJGHIJJJJJJIJJIGIJJIHFFFDEEEEEDDDDDEEDDDDD@ACDEDDDDDDDDDDDBDDDDDDDDE +@DRR015910.598 HWI-ST1182:184:D1KRDACXX:3:1101:5756:2574/1 +GTTTTTTTTATGTCTAAGTAAAACTCTATAATCTTATTCCTTCCGCAGAACGGTCAGTGCCGTAAAAATTCCCTTGCGCAACAATACTTGCCGCCGAGTC ++ +BBBFFFFFHHHHHJJJJJGIJJJJJJJJJJJJJJJJJJIJJJJJJJJJIJJJIJHHHHFFFFDDDDDDDDDDDDDCD8?BDDDDDDDDDDDDDDDDDDDD +@DRR015910.599 HWI-ST1182:184:D1KRDACXX:3:1101:5995:2591/1 +GCGTTCTTACTGCACTATTGACCAGATAACCGAGGATCGCGGTCATCGCCAGCGGCCAGAAATGGGCGCTAACCACCGTAAAAGTGAAGCCTGCCAGCAC ++ +@@BDDFFFHHHHGEIJJJIGIJJJJIJJIIJJDHIIIJJEIJBGHJJGIJIHHFFDDDDBDDCDDD@DBBD@ABCBBDBDDDDC:ACDDDBDDDDDDDDD +@DRR015910.600 HWI-ST1182:184:D1KRDACXX:3:1101:5960:2591/1 +GAATACGTGCGCAACAACCGTCTTCCGGAGACTGTCATACGCGTAAAACAGCCAGCGCTGGCGCGATTTAGCCCCGACATAGCCCCACTGTTCGTCCATT ++ +B@BFFFFDHHHGHJJJJJJJHIJJJJJJFGGIIJIJJIJIJJJEHFFFFFEEDEDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEE +@DRR015910.601 HWI-ST1182:184:D1KRDACXX:3:1101:5964:2694/1 +ACGTTATGTGTTGTGGGAAACTCGCTGCACCACCGACACTCTCCGCCGCACCTTTCTGAAACAGGGCCAGCCACTCGGCACCATTCATCGGCGGCATATT ++ +BCCDFFFFHHHHHHJJJJJJJJJJJJJJJJIJJJJJIIJJJJJJJJIHHFFDEEEDDDEDDDDDDDDDDDDDDDDC(8@DDDDDDEEEEDDDDDDDDDDE +@DRR015910.602 HWI-ST1182:184:D1KRDACXX:3:1101:5920:2707/1 +GTTCCGGTGCAGACTCTGGAGGTTCAGAGTTCCATGTGACGTTGTAAGCCACCTTCAGTCCAAAATGTTCATTAATAGCAACATTTAATGCGCTTTCGGA ++ +CCCFFFFDHHHHGJJJJJJGIJCGHJJIJIIIIJIIDGGGIFHIHGGIFIJIJIIJJJIIIJGJJJHHHHHHHFFFFFFFEEEEEFEEDDDDDDDDDDDD +@DRR015910.603 HWI-ST1182:184:D1KRDACXX:3:1101:5838:2737/1 +GCTATTATCAATATCAAATGTACCAGTATAGCCACTAGAATCAGACTCAGACAGACTTTTTTCTTTTTCTACGACCTTTTTATAATAGAATAAAGCCGTC ++ +CCCFFFFFHHHHHJJJJJJJHHIJJJGHIJJIJJJJJIJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJHHFFFFFDEEEEEECCDDDDDDDDDD +@DRR015910.604 HWI-ST1182:184:D1KRDACXX:3:1101:6183:2654/1 +GTTCACGCACGGTCATCCCTTTTGCCGGAGGAAGCTGCTGCGGCAAATAAGCCACTTTGCGGGCAAACGCTTTGCTGCTCCAGCTTTCCAGCGGTTGGGC ++ +@<@DD?DD>FF@<?@7;>;>>AA:;;>?B;7?<@@BBA@ABB@BB@B@3@:@>:9><099BBB +@DRR015910.605 HWI-ST1182:184:D1KRDACXX:3:1101:6141:2701/1 +ATACTCATCATCGTTTATGCAGTTTTTCAGCGATGCCAGCTCCTCCCTGAAGCCATGACGCTCAGGAATATTGTCCACGGTTAACGCTTTCAGTATGTCT ++ +BB@FFFFFHHHHHHIJJJJJJJIJJJJJJIJJJJJJJJJJJJJJJJJJJGIJJJJJJJJJJJJHHHHFFFFFFFEEEEDDBBDDDDDDDDDDDDCDEEEE +@DRR015910.606 HWI-ST1182:184:D1KRDACXX:3:1101:6305:2556/1 +GATGATCACCGATGCTGGTACGCTGGTGCGTACTCGCGTTTCGGAAATCAGCATCGTGGGCCGTAACACTCAGGGCGTGATCCTCATCCGTACTGCGGAA ++ +CCCFFFFFHHHHHJJJIJIJJJJJJJFHIJGJJIJJJJGIJJJJIHHHFFFFFFEDDEDDDDDDDDDDDDDDDDDDDBDDDEDDDDDDDDDDDDDDDDDD +@DRR015910.607 HWI-ST1182:184:D1KRDACXX:3:1101:6376:2583/1 +TATTTGGTGAGCCGAAAAGCGTGCAGGCAACCGCCAGTTTGCTGGCAAGCGGCGTTGACGCCCAGGGCGTGGTGGTGATGGATTACGGTGATTTCAGCGT ++ +CCCFFFFDFHHHGJIIJJGIJFHIGGGIJJJIJIJIJJJJIHGGIIIGHFFFDBDDDDCDDDDDBDDBD5;@8??99AB>ADCDCCDD +@DRR015910.608 HWI-ST1182:184:D1KRDACXX:3:1101:6441:2655/1 +AAATAATCCAGAGCATGACAGTTACGCAATCAGTGAAAAGAGTCACGGCAGAGAAGAAATCCGTCTTCATATTGTTTGCGATGTCCCTGATGAACTTATT ++ +@C@FFFDEHDFFHGJGGGHGEEHHHIGGIIDGIGDGIJGHGI??DFHGIGHAGGGGHIJIGFHAB??DEECDEEE6;CCB=BDDCDDDDCDADCDDDDCD +@DRR015910.609 HWI-ST1182:184:D1KRDACXX:3:1101:6354:2707/1 +ACCTCGCCGGTGGGGTCAACCGAGAAGATGGCAGAATGGTTAGCAGAGATGCGTCCAGATCTCACTTTCCCGCAGCAGGTGGGCGAGCAGGCGGACGTCA ++ +CCCFFFFFHHCFHJJFHIJJJJJJJJJIIJJIJIIIIJJHHHHHFFFFFCEEDDDDDDDDDEDDDDDDDDDDDDDBDDDBDDDDDDDDDDDDDDBBD@BD +@DRR015910.610 HWI-ST1182:184:D1KRDACXX:3:1101:6379:2720/1 +GATCACCGCCAGCACCAGCTTGTGGTATCTGTATGCGTTAATTGTCTATTTCGTGGTATGTAAAATTTTTAGCCGTCTGGCGCTGCTACTATTCGCCTTG ++ +??A>>????A????>AAAAADDA????>A +@DRR015910.611 HWI-ST1182:184:D1KRDACXX:3:1101:6654:2526/1 +GTACCTGAGCAGCATTCATCCGGAAGGTTTTGCCGTAATACTGGATCTCATATACCGGCTGGGACCTGATTAAATCCCGCATGCCTTCCAGCGTGGTACA ++ +B@@FFFFFHHHHHJJJIJIJJJJJJJJIJJJJJJJJJJJJJJJJJJJJIJJJJJJJHIJHHFFBFDEDEEDEDDDCDD?BDBBDDDDCCD>A@@BD8@AC +@DRR015910.612 HWI-ST1182:184:D1KRDACXX:3:1101:6734:2541/1 +CATTACAACGGAGGGGCGAGCCTGAACTTCCGTTACCTGGACCACAAAACGGGAGAAACGGCGACGGAAACGCTGACACAGCGTGAGCTGGTCGCGAGGC ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJJHHHHFFFFFEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.613 HWI-ST1182:184:D1KRDACXX:3:1101:6553:2670/1 +GTCAACAGCAGGCCGTTAAGATCGACGGCATTACCCGCCACAGCCAGCACACCGGGATTTATCTGTACATCTTTACTGAGTGGAATTGGCATTATCAGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJIGIHGEHFFFFEDDDDDDDDDFDDEDEDEEDDDDDCCDDDACDDDDDDDDDDCDEDEEDD +@DRR015910.614 HWI-ST1182:184:D1KRDACXX:3:1101:6797:2525/1 +GTACAATTCATCCGGTACCGGGCTTTGCCATACTCCCGCATACATTGCGTAACCAATCACCGCAAACATAATCCCCAGAACCAGTAGCGTCATTAACCAG ++ +CCCFFFFFHHHHHJJGHIJJJJJJJJJJJJJJJJIJJIJIIIJJJJJJIIJHHHHFFFFFEDDDDDDDDDDDDDD?CDDDDDDDDDDDDBDDDEEDDDDD +@DRR015910.615 HWI-ST1182:184:D1KRDACXX:3:1101:6987:2590/1 +GTTTTATGGCGATCTAAAAGCCATCGTCAAAACCAGCCATCTGGTGAAAATCGATTATCCGAAATTTATCGTTCACGGTAAGAAAGGTTCGTTTATTAAA ++ +CBCFFFFFHHHHHJJJJJJJGIJJJIJJJJJJJJJJJJIJJJJJHHJJIJJJJJJJJJJJJHGFFFFFFEDEDDDCDDBDDDDDDDD>CDDDDDDDDEED +@DRR015910.616 HWI-ST1182:184:D1KRDACXX:3:1101:7165:2520/1 +GTTAAAACGACGATTGCCACCGCGCTGTTTATGATGTTTGGACTTTCATACAGTCTGATGAACTGCTCGTATGGTGCGATGATCCCGGCAATTACCAAAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJIJIHIGIJJIIJJJJJIJJJJJHHHHHHFFFFFFFEEEDDDDDDA>CBDDDDEDDDDDDDDDDDDDDDDD +@DRR015910.617 HWI-ST1182:184:D1KRDACXX:3:1101:7105:2590/1 +CTGCTATAGCGTATGAAACAGATAAAGTATATAAAATAACCGTTCTGCATACAAATGACCACCATGGACACTTTTGGCGTAACAATCATGGTGAGTACGG ++ +CCCFFFFFHHHHHJJIJJJJJGGIIJJFHGIGIIGIJJJIJIHIJIIIIIIIJIIJIGIIDIJIIJJJJJJHEFHHFDFCDDDDDDDDDDD>CCDCDDDD +@DRR015910.618 HWI-ST1182:184:D1KRDACXX:3:1101:7235:2633/1 +TCCTTAAAGATCCAGCCCAGCCGCTACGTGGCGAATGCCGCGAATCGCTAAACCCGCATCAGCGTTGATCATTACACCGCTTAATGCGCGATTATTGCGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJIJJJJJJJJJJIJJHFDDEDDDDDDDDDDDDDDDDDDDDDDDEDEEDCDDDDDDDDEDDDDDDDDDDEDDDD +@DRR015910.619 HWI-ST1182:184:D1KRDACXX:3:1101:7173:2674/1 +TCATATGGGCGTGTATTTGGGCGATGGGCAATTTATCGAGTCGCCACGTACCGGCGAAACCATTCGGATAAGCCGATTAGCCGAACCTTTCTGGCAGGAC ++ +CCCFFFFFGHHHHHIJJJJJIJJJJJJIIJJJJJJJJJJJHHGIJJJJIIHHHFFDDDDDDDDDEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.620 HWI-ST1182:184:D1KRDACXX:3:1101:7171:2715/1 +GCATAAACAGTACCCGATGTCCCGCATCCACCGCTTTCACGCCAAGAGCTATGGCCAGATGAGTTTTTCCGACACCAGGAGGGCCCAGCAGGATCACGTT ++ +CCCFFFFFHHHHHJJJIIJJIJJJIIIJIIJJIJIJJJEIJJJJJJJJIGIJJHHHHFFFFFF@DEEDEDDDDDDBDDDDDDDDDDDDDDDDDDDDDDBB +@DRR015910.621 HWI-ST1182:184:D1KRDACXX:3:1101:7341:2746/1 +TTTCAACGGTTGGCAATGGGGACATCTTTACCACATCTTCTTCGCTGTTAAACAGCGAACAGCCGCTTAAAAGGGTAACGGAAAGCAGTCCTGGCAGCAG ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJIJJJJIJJIJJJJJJJJJJJJJJJJIJHFFFEDDDDDDDDDDDDDACDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.622 HWI-ST1182:184:D1KRDACXX:3:1101:7631:2545/1 +GTGTTTTATCTGTGAACTCAGGCTGCCAGATCATCGTTTCCGATGGAAGCATAATAAGCTTTTTCTGCTTCTGCCGGAGGAGTATGGCCCAGCCTTTCCA ++ +BBBDFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJHHHHHFFDDDDDBDD@CDD@BBDDCDDDDCDDD9ADDDD<@DCD +@DRR015910.635 HWI-ST1182:184:D1KRDACXX:3:1101:8557:2632/1 +GCCGTATTCCTCCCGCCGGCCGTTTTTTTCGACATGTACACATGCCAGTATTTTCCTCCGGCTTTCAGCACCAGGCTTCTCCTCTGTGATTCCGTCGTGA ++ +BCCFDDDEHHHHHJJJJJJIJJHIJJJJJHIIGHHGDFFEFFEEEEEECDFFFEDDDDDDDDDDDDDDDDDDDDDABDDDDDDDDDDDEEEEEDDDDBDD +@DRR015910.636 HWI-ST1182:184:D1KRDACXX:3:1101:8815:2634/1 +ATACTCATCAGATTTTCTCTCCATTTCAGTTTTTCTTGATTCTTGGAGAGACTGGAATAGAGCCAGATCATTTTTTAAAGATTCTTCATTATTTTTTCCA ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJIJJJJJJJJHIJJJJJJJJJJJJJJJIIJJIJJJJJJJJJJJJJJJEHHFFFFFFEEEEEFEEEEEDDDDE +@DRR015910.637 HWI-ST1182:184:D1KRDACXX:3:1101:8779:2658/1 +GCGCTGAGCACAGAGAATTTCCAGTTTATCCGGTAAGTCGGGTAATGTTGTCAGCCTGTTATAATAAACATGTAAAAATTTCAATTTTTCGGGAAGAGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJHIJJIIJJJFHJJFGHGIJJJIJJJJIIJJHHGHHHHFFFFFEEEEEEEECEEDDDDDBDDDDDDDD +@DRR015910.638 HWI-ST1182:184:D1KRDACXX:3:1101:8822:2674/1 +GAATACGACAGGCTGATGCGCGAACTGCGCGAGCTGGAAACCAAACATCCAGAACTGATTACGCCTGATTCGCCTACTCAACGTGTAGGCGCTGCGCCGC ++ +CCCFFFFFHHHHHJJJIGJIIJJJJJJJIJ6@BGEHHHHHFFFFDDCCEDDDCDDDDDDDEDDDDDDDDDDD7@B@CDDDDDDADDDDDCBDDDDDDDDD +@DRR015910.639 HWI-ST1182:184:D1KRDACXX:3:1101:8846:2684/1 +GGACGAAACCTGCAATCTGTCAAGTAAACTCAACAAACTTCGGAATAAAAATCCCGAAGAGTCAGAGAATTACTCGCCTTTAGCTGCTTTGAAAGCTTCA ++ +CCCFFFFFHHHHHFHHIJIJJJJJJJJJJJIJJJJJJIJJJJJIIJJJJJJJJJJJJJJJHHHHHFFF>CEEEEECDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.640 HWI-ST1182:184:D1KRDACXX:3:1101:8869:2723/1 +GCAGGATTTTGCGTACTTCGTCAACGATACGACGTTCTTCACGCACGCTACCTTCGCTATCCGGCAGTAACGGCAGCATGTTGAACGCCAGCTGACGCCC ++ +CCCFFFFFHHHHHIJEIJJJIJJJJJJJJJJJJJJJIJJIJJJJJJJHHHFFFFEDDDDDDDDDDDDDDDDDDDDBDDDDDEDDDDDDDDDDDDDDDDDD +@DRR015910.641 HWI-ST1182:184:D1KRDACXX:3:1101:9190:2512/1 +GGATCCCGAGCGCGATCGCATTATTGAGATTGCCACGCTGGTGACCGATGCCAACCTGAATATTCTGGCAGAAGGGCCGACCATTGCAGTACACCAGTCT ++ +CCCFFFFFHHGHHJJJJJJJJJIJJJJJIJJJJJJJJJJJJGHIJHHFDDDDDDDDDDDDDEEEFFEDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.642 HWI-ST1182:184:D1KRDACXX:3:1101:9147:2520/1 +GTTCAAGTCCACTCAGGCCTACCAAATTTGCACGGCAAATTTGAAGAGGTTTTAACTACATGTTATGGGGCTATAGCTCAGCTGGGAGAGCGCCTGCTTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHIIIJJFHIJJIJJJJJIJHIJJJJHHHFFFFFEEEEEEDDDDDDDDDDDDDDDDDD +@DRR015910.643 HWI-ST1182:184:D1KRDACXX:3:1101:9060:2523/1 +GAATATCTGCGTAACCATCCGCGGATTCGTAAAGATATGACTTTAATGGTACGCCAACTGGCTCCAGGTGATAATGGTTTACCGCTCGAGATCTATGCGT ++ +CCCFFFFFHHHHHJJJIJJJJJJIHJJJIHHIIEGHGIEHGIJJIJJJJGHIJHHFFFEEEDEDDDDD;@CDEDDACCDDDDDDDDDDDDDBDECDDCDD +@DRR015910.644 HWI-ST1182:184:D1KRDACXX:3:1101:9126:2558/1 +CCGTCTCTGCACGCAATACCTCCGGATTCCGTGAACAGGTCGCTGCATGGCTGGAAAAACTCAGTACCTCTGCAGAGCTTCGACAGCAGTCTTTCGCTGT ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJJJJJJHIJJJJJJJJJJJJHHHHFFFFEEDEDEEDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDD +@DRR015910.645 HWI-ST1182:184:D1KRDACXX:3:1101:9050:2567/1 +GTACATGACAGTTCACTGGTTGATCCCAATATCAAAACGCTGGAAGGCGTGAAGGGCGTCATTTTGACCAGCGACCAGGTGCAGGTCGTTTTTGGGCCCT ++ +CCCFFFFFHHHHHJJJJJJIJJJJIJJJJJJJIIJJJJJJJJJJJIJJJIIJJJJJJHHFFFFEEEDEDDDDDDDDDDDACDDDDACD@DDDDDDDDDDD +@DRR015910.646 HWI-ST1182:184:D1KRDACXX:3:1101:9023:2620/1 +GGAATATCCAGCAACCGCTTACAGGTTTCATTCCGCCTCGCCACGCTGGTAAGCTGTTTTTCAATATCCTCTATCAGTGAGTCCAGCTCATTCAGTCGGT ++ +CCCFFFFFHHHHHGJIJJJJJJJJJGHIJEIJJ*CFHHIJJJJJJJJJJAGHHHHHCEFFFFFEEEEEEEEDDDDDDDDDDCDDDDDDDDDEEEDEDDDD +@DRR015910.647 HWI-ST1182:184:D1KRDACXX:3:1101:9243:2685/1 +TTTACTTTCCCATCTCGCAGGAACCGTACACCATGCCAGTGTTACACAACCGCATTTCCAACGACGCGCTAAAAGCCAAAATGTTGGCTGAGAGCGAACC ++ +@@@FFFFFFGHHHIIIIID@HDFGHBCGHI@HEGBFDD?FG?DGHIGIEHDHH<4AEEEHDH=?CBDEDE +@DRR015910.650 HWI-ST1182:184:D1KRDACXX:3:1101:9446:2544/1 +TGATTATACCTCCATTTTCTTCATTGTTTTCGAGGTTCTGTATTCCGGAATAGTGGTAACAATTGCACCGACCAGTGCAAACAGTGTTCCGATGATCGTG ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJHJJJJJHIIAHIJIHIIJIJJJJJJJJIIJJIJJIJJJJIIJJJHHFDEDCEEDDDDDACCFDDDDDDDEDDDD +@DRR015910.651 HWI-ST1182:184:D1KRDACXX:3:1101:9252:2552/1 +ATATAACGCATCACCGGGCGACCCTGTTGATCAACGTCGAACACCGGATGGAAAACATCTTTGCTGACGTTTTTACTCGGCGGCGCGGCAAAGCGCATTG ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJHIJJJJJIJJHGIHHHFFFDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDCDDDDDDDDDDDDDDDDDCDDDDDD +@DRR015910.652 HWI-ST1182:184:D1KRDACXX:3:1101:9370:2584/1 +CTATCGCGATAACGATCAGTACCGTTATTACTCAGCTTCAGTGCAACTCTTCCCGTGGCTGGAAACAACGCTGCGCTACACCGACGTGCGCACCCGGCAG ++ +CCCFFFFFHHHHHJJJJJJHIJJJJJJJJJJJIJJJJJJJJIIJJJJJJJJJJJJIJJHHHFFFFEEDABDBDDB=BDDDDDDDDBDDBDDDDDDDDDDD +@DRR015910.653 HWI-ST1182:184:D1KRDACXX:3:1101:9397:2651/1 +TAGCTTTCCAGCGCTGCGGACGACTGTTTCTGGTGCATAAAAAATTCCGGATCGGCGTTCAGCCCGACAATCAGCTTCAGGCCAGCCTGTTGCGCAGCTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJJFHIIIJJJJJHGHHHHFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCD +@DRR015910.654 HWI-ST1182:184:D1KRDACXX:3:1101:9273:2721/1 +ACGTAGCAGAGTTGCAGCATCACGAATTTCGCGGCGGCGGGTTAGAGCCCCGGCATTACGTGCCGAAGTATCCAGTTCTTCGGGCTTACCAATATGGGCC ++ +@CCFFFFFHHHHHJJJJJJJJJJJJJJJJIIJJJJJHFDDD7B@DDDCDDDDDDDDDDDD?CDDDBDDBCDEDDDDCCCDCDDDDDDDDDDDDDDDDDDD +@DRR015910.655 HWI-ST1182:184:D1KRDACXX:3:1101:9481:2725/1 +GCGTTTGCAGGTGTTACTGATTGGTTTCTCCTTTGGTGCGTTGCTGGAAGGAGCGGCTGGCTTTGGTGCGCCGGTGGCGATTACCGGTGCGCTGCTGGTG ++ +CCCFFFFFHHHFHHIJJJJJJJJJJJJJJJJJJJJJGIIJJJJJJJJJJJJJJJJJHHFFCCDECD=@CDDDBDBBBDBBDDDDDDD9@BD>BDDDDD?C +@DRR015910.656 HWI-ST1182:184:D1KRDACXX:3:1101:9257:2738/1 +GTGCAGGACTGTCTCCCCCGGCCAGCCCCGCCTGACGGAGAACGGCACGGCCTGCCGCCACGTCCCGCAGCTCCCGCGCCGTACTGAACAGCCGCTCTGC ++ +@BCFFFFFHHHHHJJJJJJIJJJJIJJJJJJJGHGIIJJIGHDDFDDB@DDDDDDDBB<<>>5>BACACCCCBB>@>B14@ +@DRR015910.657 HWI-ST1182:184:D1KRDACXX:3:1101:9722:2608/1 +CTACGCTACGTGGCGCGTTTCGATGCCAACGGCAAAGCGCGTGTGGGCGTGGAGGCGGTGCGTGAAGACCATCCGCTGGCATCACTGCTGCCGTGCGATA ++ +CCCFFFFFHHFHHJJJJJJJJJJJJJJIJJJJIJJJJIJJHFDCDDDDDDDDDDDDDDBDDD@DDDDDDDDDDDDBBDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.658 HWI-ST1182:184:D1KRDACXX:3:1101:9616:2701/1 +GAATACCACCATCTGCGATAACCGGAATACCGGTGCCTTCCAGCGCTTCAACTGCGTCAGCAACGGCAGTGATCTGCGGAACACCTACGCCAGTCACGAT ++ +CCCFFFDEHGHGHJJJIJIJJJJIJJIJJJJJJDHIJJGJIIIJJJJIHGHHHHFFEDDDEDCDDDDDBCDDDEEDDDBDDDBDDDDDDDDDDDDDDDDD +@DRR015910.659 HWI-ST1182:184:D1KRDACXX:3:1101:9858:2552/1 +CCCCACCACCGAAAGCAGTAGGTTAAAACGTCCGCCCATCAGCGATCCGCCGCCAATCACCACCGCGAGAATGGCGTCCAGCTCCAGCCATAATCCGGCG ++ +CCCFFFFFHHFHHGIIJJHHIIGGGIJJJGFHIIJJJJFIGGIJJHIIJHHFDDDDDDDDDDDDDDDDDDDDCDDB>>BDDDDDDCDDDDDDDDDCDDDD +@DRR015910.660 HWI-ST1182:184:D1KRDACXX:3:1101:9922:2564/1 +GGCGAAAAGAACCTCGTAAAAAGTATTTGGTGCAAATCGTTGGTTCCTTTGCTGAATTTGAACGCGCCATGCTTCGTGAACGGACAAAGAGTGGACTTGC ++ +@@CFFFFFHHHGHJJJIIJIJJJGHIJJJJCFGIJIJJJJJJJIIJJJJJJJJIJJJJJJIJJHHFDDDDDDDED@CDDDDDDDDDDDDCD:ABDDDDDD +@DRR015910.661 HWI-ST1182:184:D1KRDACXX:3:1101:9820:2635/1 +CCGTTTGAGAGGTACGCTGACGATATTGTAGTACATTGTTCACGAATGAGTGATGCAACAAGGCTAAAGAACAGGTTATCGGAGCGCTTCTCGGAAGTCG ++ +BCCDFFFF?FHHDGHIJJJIJJJJJJJIIJJIJJJJJJJIJJJJJJJIJJGHJIIJIIJJIJJJHGHHHFFFFFDDCEEEDDDDBDDDDDDDDDDDDCDD +@DRR015910.662 HWI-ST1182:184:D1KRDACXX:3:1101:9772:2683/1 +GAGATATGGAAACGTGGAGAATCAACCACAGAGTATACCCGCGCACACCAGCGAACAATCAGACGACTGCGCAGACTCATCGCCAGGAAACAGTATACAG ++ +CCCFFFFFHHHHHJHIJJJJJJIJJJJJJJJJJGGHIJIJJJJJJJJJJJJHHFFDDEDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDEEEED +@DRR015910.663 HWI-ST1182:184:D1KRDACXX:3:1101:9863:2742/1 +CTATGTCCGTGATGACCGTAACGCCGGTTCACAGATGCCCCCGGCGGTCTGGTTCGCGTACAGCCCGGACCGGAAAGGTATCCTGTCTCTTATACACATC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJHJJJJJJIJJJJJJJJHHDDDDDDDDDDDDDBDDDEDDDDDDDDDDDD@BD>CDDDEDDDDDDDDDDDEDDDD +@DRR015910.664 HWI-ST1182:184:D1KRDACXX:3:1101:10194:2543/1 +GAAATATTTTCTGCCGGGCTTCCGGAACAGGATTTCCGCATGCTTCACAGAGATAAACAGGAATACCATGAGCATTTATTTTCTGGCGTATCCGGTTTAT ++ +CCCFFFFFHHHHHJJJGJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJIJJJJIJJHHHHH?D;;?C3(6.6;;>C@;5@CD@55@358002<>@>(,5;5A(3&&&((++(++8(9>>A3>(+4++49(+(44+4+(9(((8(25(++(0593>(4>( +@DRR015910.666 HWI-ST1182:184:D1KRDACXX:3:1101:10077:2607/1 +ATGCACGCAGGATTCGCACATAAACCGTAAACCGCCGCAATCAACACCTGTTTTTTCCAGTTGAGTTCATCTTCGCCAGTTTCATTATTGCTATCATTAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJIJJJHHHHHFFFFEEEEEDDDDEDCDDDDDEDEEEDDEDDDDDCDEEEEEEEEDDDEEDDEEEE +@DRR015910.667 HWI-ST1182:184:D1KRDACXX:3:1101:10247:2652/1 +ATCCCAAACATGCCGAGTCTTTTCCTCCTGAAAATACCGATACCGCCTGGCAAACTGCGAAAGAGAACTAGCCGGTAGCCCGGCAGAAATCATCAGGGAA ++ +CCCFFFFFHHHHHJJJJIJJJJJJJJJJJJJJJJJJJJJJJFGHIJJJIJJHHHHHFFFDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.668 HWI-ST1182:184:D1KRDACXX:3:1101:10108:2710/1 +ACGCTGTAGCACAAATTCAGCGCGATCAGGTTGAAGATTATGCCCGCCGTAAAGGTATGAGCGTTACCGAAGTTGAGCGCTGGCTGGCACCGAATCTGGG ++ +CCCFFFFFHHHHHJJIIJJJJJJJIJJJJJJJJJJIIJJIJJJJIJJJJEFHHHFCDFFFEDD@BDDDDDDDBDDCDDDDDDDDDDDDDDDCBDDDDDDC +@DRR015910.669 HWI-ST1182:184:D1KRDACXX:3:1101:10077:2723/1 +CTTCTGGACATTTTCTCTACAGAACAATCGTTAGCCCGGAAGGTCGAATCTGTGACTCTTATTTTCACGGACGAACCAGATGAAAGCTTCACTGGCGCTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJAFHIJJJJJJJJJGIJIJJJJJHJJJJJJJJJHHHHHHFFFDDDDDBDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.670 HWI-ST1182:184:D1KRDACXX:3:1101:10449:2585/1 +CCTGGTTTTCTGGTGCCATGCCAGCCTGGGCTGGTGCCTGCTGGCACTGACCTTCACCAAATTCAGCAACACAGTCTTCACGGGTGGCGTATTTCGGCGC ++ +CCCFFBDFGHHHFIJJIJJIJJJIJJJJIIJIJJFGGJIGIIIJIIIJJIJJIIIGHIIJJJJJJIIHHHHFFFFCEECEEDDD9=BDD>BDDEEDDDDD +@DRR015910.671 HWI-ST1182:184:D1KRDACXX:3:1101:10294:2649/1 +TCTTTATTCACCTAAACGTACCTCTTTTCGGAATGCATTTAAAGCTGATTTGATAACTTGATGCATGTCATAACTGTCTCTTATACACATCTCCGAGCCC ++ +CCCFFFFFHHHHHJJJJJHIJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIHHHHHHFFFFFFFEEEEEDDDDDD +@DRR015910.672 HWI-ST1182:184:D1KRDACXX:3:1101:10434:2709/1 +TGATTGGGGTGCTGATTGTTGTCGGCAAGGTGCTTGCCGGTGGTGAACCCATCACCCCGCGTCTGTTTATCGGGCGTATGTTGCTCGGTGGTTTTGTCTC ++ +CCCFFFFFHHHHHJIJJIJJIHIIIIJJJJFHHJJIJJJJBHIGIIHHHHHFFFFFEDDDDDBDDDDDDDCDDDD@>BDDEEDDDDDD@DD>BDDBDDDD +@DRR015910.673 HWI-ST1182:184:D1KRDACXX:3:1101:10677:2553/1 +ATTATCAAGATGACGTAAATCAGCCTGGGTGACAGCCTGCTTTTGCACCCTGACGGAAACCGGATCTTCATACTCAGGTACGCGGGAATAATCTGCCTGC ++ +CCCFFFFFHHGHHJJJJJJJJJIJJJJJJHJJJJIJJJIIJJJJJJJJJJJJJJJIJJJJJHHFFDEEEEEEDDDDDC@CDDDDDDDDDDDEDDDDDDDD +@DRR015910.674 HWI-ST1182:184:D1KRDACXX:3:1101:10569:2581/1 +GTTCCTGAAGGCACTTTAGGACAATGGGTTACCGCCGCAAGAAAAGGGCTCAATACACCAAGCTTCCGCACAGTGGCTGAGCTGGAATCTGAAGTTATGC ++ +CCCFFFFFHHHHHJJJJJJJIJJIJJJJGHIJJJJJJJJJIJJJJJJJIJHHHHHHFFFFFEDEEEDDDDDDDCDCBDDBDDDDDDDDDDEDDCCDDDDD +@DRR015910.675 HWI-ST1182:184:D1KRDACXX:3:1101:10723:2612/1 +GAATGGCGCAACCTGATCCTTGAAGAGAATGCGCTCGGCGACCATAGCCGGGTGGAAAGGATCGCCACGGAAAAGCTGCAAATGCAGCATGTTGATCCGT ++ +BCCFDFFFHHHHHJJJJJJJJJJJIJJJJJJIJJJJJIJJIJHHFFFFFDDD>@DDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDEDDDDDDD +@DRR015910.676 HWI-ST1182:184:D1KRDACXX:3:1101:10660:2658/1 +TAGTCATCGTGTGGCGGTGATGTATCTCGGGCAAATTGTTGAAATTGGCCCACGGCGCGCGGTCTTCGAAAACCCGCAGCATCCTTATACGCGTAAATTA ++ +BCCDFFFFHHHHHJIJJGGIJJHGHICHGIJJJJJJGIGHEIJJFIHGIJGHJHHFDDDDDD;;BDDDDDDDDDDDBDBDDDDDDDDDDDDDD@BDDEED +@DRR015910.677 HWI-ST1182:184:D1KRDACXX:3:1101:10970:2588/1 +CAACCAGCCATTGTGCTGTTGCGTTACCTGCTGGATTTCCGCCAGTGGCGCACTATCGCCGTCCATGCTGAACACGCCTTCTGTCACCACCATTTGCTGC ++ +CCCFFFFFHHHHHHJJJJJJJJJJJJJJJJJJJJGJIJJJJJJJJJIJIJJJJHHHHHFFDDDDDFDDDDDDDDDDDDDDDDDEDDDDDDDDDDEEDDDD +@DRR015910.678 HWI-ST1182:184:D1KRDACXX:3:1101:10906:2603/1 +ATTCTTCACATTCAGGGTCTGATAGGTCAGATCCAGTCCACTGCTCCGCCCAACATCCAGCCAAAGCGTGGTGCTGGCCGGGTTTTCGCACACGTCCTGA ++ +CCCFFFFFHHHHHJJIJGHIIIJIJJIJIJIJJJJIJIIJJJJJJJJJJIGJJJJJJJJJJJJJJJHHHDBBCEDCEDDDDD?BDDDDDDDDDDDDDDDD +@DRR015910.679 HWI-ST1182:184:D1KRDACXX:3:1101:10949:2678/1 +GTGCATTTCGTACCATTACAAAAACAATAGAAAACTTTATATAACAAGTACCAGCAGCAACTAAAAATGGTAATAGCGTAAAAAAAGAAAGTGTAGCGAT ++ +B@BFFFFFHHHHHJJJJIJJJJJJIJJJJIJIJJJJJJIIGIIJJJJJHHJIJJJJJJIJJJJJJJJJIJHGIJHEHFBDFDEEDDDDDDDCCCDDDDDD +@DRR015910.680 HWI-ST1182:184:D1KRDACXX:3:1101:10772:2731/1 +CATCAAACAATGAGTGACCCACCGATAACGTGATGGTGAGATTATCGGGCGCAATGTAGCCGCCAAGAATGCCGGAATCGAGTGGTGGCAGGCGCGGATT ++ +CCCFFFFFHHHHHJHHJJJJJJJJJJJJJJHIIIIIDFFEGHIJJJJJJJHHFFDEEEEEDDDDDDDDDDDDDDDBDDDDDDCDDCDDDDDDDDBBDBBD +@DRR015910.681 HWI-ST1182:184:D1KRDACXX:3:1101:11161:2510/1 +CTATATAAATTTGTTGGTAGTTTTAACGATTAAGATTGCAAAAGCAACAGATAGAACGGTGTTTGCTCATCAAGCGAACATAATTAATACAGACTTGTTT ++ +BBCFFFFFHHHHHIJJJHIIHIJJJJJIIJJIJIIJIJJIJJJJJJJJJJIJJJJIJIICGFHIJJIJJHHHHHFDFDDDDDDDEEDEEDDDDDDDDDDD +@DRR015910.682 HWI-ST1182:184:D1KRDACXX:3:1101:11240:2696/1 +TTACTGACACATGTACATGCGGATGCCAGTTGAGACGACGGCCATATGTGTGGATGGCGCAGAAGATACCGGGTTCCAGCCCCCGTTTTCGGGCGGCATA ++ +CCCFFFFFHHHHHJJJJJJJJJIIJJJJJJJJIIIJIJJJJJJIJIIJEHEEHHFFFFDDDDDDDDDDDCDDD5?BDEDDDDDDDBDDDDDDDDDD@BDD +@DRR015910.683 HWI-ST1182:184:D1KRDACXX:3:1101:11357:2621/1 +AAACAAATATCCACCCGTTAAAAACAAAAAAACCAAATAGTGCCAAAACATGAACCATTTTTACTATTTATATTTGCGTTGATTTGTCGTTTACCTGCGA ++ +CCCFFFFFHGHHHIIIIJJJJJJJJJJJJJJJJJJEFHHH=FHIJJJJIJJIJJHHHHHFFFFFFEEEEFEEEDEDCB?BDDDDEDDDDDDDDDDCDDDD +@DRR015910.684 HWI-ST1182:184:D1KRDACXX:3:1101:11417:2658/1 +GTGCAATTCCGTTTGCTGCTCGTGATCCGATGCGTGTGCTGCCGTGCTGTATCGTGGGTGGTGCGCTGACTGGCGCAATCTCAATGGCGATTGGTGCGAA ++ +CB@FFFBEGHHHHJIJIJJJIJGIIJJJJJIIGIGIDHGIIIJJHIIIGFGHIIIJJH=BD9=CDDDBBDCDDDDDBDDCDDDDDDDBDBDDDDABDDDD +@DRR015910.685 HWI-ST1182:184:D1KRDACXX:3:1101:11383:2658/1 +CCATAATGACGATAAACAGCAGACGCGGTGAATCGACCAACGGTTGCAGTAAATCAGAAACCATCATCGGCAGTTCAGCAATGGTAATCAGCCAGGCGGA ++ +CCCFFFFFFHHHHJJJJEIJJJJJJIJJFGIJJJJJJJJJJJJGIHHHHEDEDFFFEEEEEDDDDDDDDDDDDCDCDDDCC+>CCDDEEDDDDDDD<@BD +@DRR015910.686 HWI-ST1182:184:D1KRDACXX:3:1101:11623:2617/1 +CATCTTACGTATCGTGGCGTATTTATCACCGGCTTTCAGTGCAGCCCGGTGATAAAAATAACTGCTACGGGCAAGGCCCAGAACTGAGGTGTACTGGCAA ++ +@C@FFFFFHHHHHIHIJIJIIJJJJJJJJJJIGIIJIJHEHIHJIJJJJEHHGGHFFFFFFEEEEEEDDDDDDDBDBBDDDBCDDDDDD9BD +@DRR015910.691 HWI-ST1182:184:D1KRDACXX:3:1101:11817:2635/1 +GTCTTACTGCTGTGGCCGCCGGAGAACAGGTTGTTCCTGCCTCTGAACTTGCTGCCGCCATGAAGCAGATTAAAGAACTCCAGCGCCTGCTCGGCAAGAA ++ +@CCFDDFFFDHDCCGFHE?A<5:@:A@@C4?95>>ABCCBCB<589< +@DRR015910.692 HWI-ST1182:184:D1KRDACXX:3:1101:11963:2675/1 +CGACTGTTGTTATTATTCTGGTAGGGACATTTACTATAATATCATTCTTTTCCTTAAGTGATGTAATGCTCTTATACAGATATGTAATAATTAATGACTT ++ +?@@FFFEFHHHHHIIIIIIIIFDGBGIIIIGIIIGGFC@FHFG@GHGGGHHGHEEHHEHEGH@EAHHAHFHBDCDCEF +@DRR015910.693 HWI-ST1182:184:D1KRDACXX:3:1101:11775:2683/1 +GAATGTTCTTTACTGGCTTGGCCTGTTCGTTCCGGCTTAAGGAAGGCACCTATGAAGACGTTTCCTCTGCAAAGCCTGACGATTATTGAGGCGCAGCAAA ++ +CCCFFFFFHHHHHJJJJJJGHHIIDEHBBCGBGDHBHIGHCH@GBH@GGHEGGGGIIIGGHHHAHDDDDF@CE@C@ABACD?BBBCD@@@CBDBBD9?CC +@DRR015910.694 HWI-ST1182:184:D1KRDACXX:3:1101:12035:2642/1 +CATATACGGAGCCGGGCCGCAGGTCATCACGGTACGTGAAGCTAAGTCAGGTACACCTGCCAGCAGTTCGCGAGTGAGACGACCAGCGATAAAGCCTTCG ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJJJJJJFHIJIJJHHHHHHFFFFFFACEEEEDDDDDDDDDCDDDDDDD>CCCCB=5=ABBBBB3<<995 +@DRR015910.709 HWI-ST1182:184:D1KRDACXX:3:1101:13187:2674/1 +GGTTTGCTGAAACAGGTTAAACGCACCGCCGACGTTAACCGCAAAAGTCTGCTGCCAGTCCTCTTTACTGAGCTGATCGGTCGCGCCCATGCGCAAAATT ++ +BBBFFFFFHHHHHJJJIIJJJJJJJJJJJJJJJJJJJJJJJHHFFFFCEEEEEDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.710 HWI-ST1182:184:D1KRDACXX:3:1101:13391:2568/1 +GAAAGGTTGCGATCACGGACAGTGCGGAGCCTGTACCGTGCTGGTCAATGGTCGCAGGCTTAATGCCTGCCTGACGCTTGCAGTCATGCATCAGGGGGCC ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJJJJIIJJJJIIIJIJIJJHHHHHHFFDDDDDDDDEDDDDDDDDDDDBDDDDDDDDDDEDDDEDDDDDDDDD +@DRR015910.711 HWI-ST1182:184:D1KRDACXX:3:1101:13471:2662/1 +GACGCTATTGATACAGGAACACCGGCGGGGCGTTTCTTTTTTCATGTGATGGCCAGCCTTGCAGAGATGGAGCGAGAGTTGATCATCGAACGTACCCGGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJD>@7BD8>CDDDDC>A>@CC@CDCDDBBDACB<999>ACC@CDCC>?CB98A?BD<@B +@DRR015910.712 HWI-ST1182:184:D1KRDACXX:3:1101:13341:2700/1 +GCGGAAGATCGCGGCGTGGAGTTGCGATTTGTTGGCGACGAATGTCAGGTTGCGGGCGATCCGCTGATGCTGCGTCGGGCGTTAAGCAACCTGCTTTCTA ++ +@C@FFDFFGGHGHJJJHHIBGGIJIJGGIJFGGGGHGDFDDBDDCEEDD@CDDDDDDD@B?BDBBBDDDDDDDD<BBDD@DDDDDEDEEDDDDDDDDDDDDCBD +@DRR015910.722 HWI-ST1182:184:D1KRDACXX:3:1101:14026:2561/1 +GGTGAAGACCAGGTGTACCCAGTCGCAGTCAGGAAGACGATTCAGCTGTGTCGCTATCCACAGGTCTGTGGCCTTTTTTCCGCAGGACGGGCAGGCACGG ++ +B@BDFFFFHHHHHHIIJJIJJJIJJIJJHIJJJJJIJJJJJJJJJJJJHIJIJJJJIJJJHHHHFFFFDBCDEEECDDDDDDDDDDDDDBDDDDDDDDDD +@DRR015910.723 HWI-ST1182:184:D1KRDACXX:3:1101:14144:2592/1 +CCATCACCAGCGCGCCGCCCGCGCGCAGTACGCCAAAAATGTCGTAAACCGATAAATCAAAATGTAGGGCGGAGAGGGCCAGCACCCTGTCATGCGGGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJHFEFFDDDDDDDDDDDEDDDDDDDDDDDDDEDDDDDDDDDEDDCDDDDDDDDDDDDDDDDDDDDDDEDDDDDDD +@DRR015910.724 HWI-ST1182:184:D1KRDACXX:3:1101:14195:2685/1 +TATCACGACGGAATCACAGAGGAGAAGCCTGGTGCTGAAAGCCGGAGGAAAATACTGGCATGTGTACATGTCGAAAAAAACGGCCGGCGGGAGGAATACG ++ +CCCFFFFFHHHHHJJJJJJHIJJIJJJJJJJIDHIJJJJJJJJJJGHHHHFFF@BACEDEDDCDDFEDEDEDDBD@DDDDDDDDDDDDDDDBDDBBCCCB +@DRR015910.725 HWI-ST1182:184:D1KRDACXX:3:1101:14018:2732/1 +ATGAGCGGCTACGTTTACAACCTCGGTAACGAGCTGGCATCCATGCAGGGCCTGGTTGATGTGGTCCGCCTGTCACCGCAGGGTACTGACACTTTCGCGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJGHIJJIJJJJJJJJJJIJJJIJIHHHFFFFFDEEEFDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDD +@DRR015910.726 HWI-ST1182:184:D1KRDACXX:3:1101:14448:2626/1 +GAAGAAATGGCATGGGCTCGCCACTACCAGCAGATCGTTCGTGAAGAAAAAGAAACGGAACTGGCGGACGACCTGGAAAAAGGTCTGCCTCAGCACCTGT ++ +CCCFFFFFHGHHGIJIJIIJJJFIJJIIJIJIJJGIIGHHIIIFJIEGHIIIJJHFHHFFDEEEDDD@@;;BB@C??CCDD9@:AC +@DRR015910.727 HWI-ST1182:184:D1KRDACXX:3:1101:14349:2657/1 +GCACTAAGTTGTACCACCGAAATCATTCATGATAATTACGCGTTATGCCTGCAATTCTGGCTCAATGGCGTTGATCGTCAGGAATTACTGCGTTTAGTTC ++ +CCCFFFFFHHHHHJIJJJJJJIJJJJJIJJIJJJJJJJJJJJJJJJIJJJJJJJJJJJHJEIGHGHHHFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDE +@DRR015910.728 HWI-ST1182:184:D1KRDACXX:3:1101:14552:2513/1 +GCTTCAGCCTGGACTCCATACCGCGCTGATGCCTGCCGTTCCATTCCTGCTGTAGCGCCATGCACAGGAACTCCCGGTAGTTCAGCTCTTTTTTAGCTGC ++ +CCCFFFFFHHHHHJJJJIJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJIJJJJJJJJHHFFFFEEEEDDDDDDDDBDBDDDEEEDDDDDDDDDDDCDDCD +@DRR015910.729 HWI-ST1182:184:D1KRDACXX:3:1101:14714:2592/1 +CTTCCGGCTCGACCATGGGCACAAACTCTGCCTGTGGTGGCGCGAGATCGTCCGGCGTCCAGGTTTTCCACGGCAGATTATCAGACATAGGTATCCTCGC ++ +CCCFFFFFHHHHHJJJJJJJIJJJJIIJJJJJIIHIJGHJJJJJHHFFFDEDDDDDDDDDDDD:@CDDCEDDDDDDBDDDDDEEDDDDDCDCDDDDEDBD +@DRR015910.730 HWI-ST1182:184:D1KRDACXX:3:1101:14609:2710/1 +GTGTTGGCAGGGCTGGCGCTGACTATCGGTCTGGTGCTATATGCGCTGCGCTCGAATATCGATCTCTTTTATACGCCGGGGGAAATTCTCTACGGCAAGC ++ +C@CFFFFFHHGGHJJJIIIGIIJJGIIJIBFHIJDFGIGGEGHIEGEGFHFFF'3ACBDCBBAABDDDDDDDEDB<@BBDBD<@DDDCEDDEDDDD@BBB +@DRR015910.731 HWI-ST1182:184:D1KRDACXX:3:1101:14594:2735/1 +GCATTTTCCTGTCATTTCTTTCAAATATTCTCTCCCGCTCAACAAGTCCTGCCGAAGATGTTTACACTGTTCTTCTCGTGAACTGAACTTTTTATCCCAG ++ +CC@FFFFFHHHHHGIJJIJJIGIIGIIJJIJJIJJJIIIIIIIGGGHIIIJJJEHIGEGIEGIGIIHHHHEHHFFD;B=ACDDDCDCDDDDDDDCCCCCA +@DRR015910.732 HWI-ST1182:184:D1KRDACXX:3:1101:14655:2736/1 +GTTGTGCTTTGGCGTACTGCGTACGCTTTCGCAGTTAGACTGGCTGATTAATAAGTTAATGGCCCGTCCGATGACCGGCAAACAGCGGACCGTGCATTAC ++ +BBCFDDFFHHHHHJJJJJJJJHIJJJJJJHJIIJJJJIIIJJJJJIGIJGHIJJJDHHHHFGHFFCDDD@?BDDDC@DDDDDBBCBDDBBD@C +@DRR015910.733 HWI-ST1182:184:D1KRDACXX:3:1101:14786:2556/1 +GCTAAAAGGTTATCAGCCTGCGGTTCCGCTACTTTCTGTATCATTCATTCTGCTTCTGGCAGGGGAATTAATCGGTCGCGGCGTATTCTATGGTTTGCAT ++ +CCCFFFFFHFHHHJJJJJJJIJJJIIIIJIJJJJJJJIIIJIIIJJIJJIJJJJJJJJIJJIJHHFFFFEEEEDDDBDDDDDB@DDDEEEEEDCDDBCDE +@DRR015910.734 HWI-ST1182:184:D1KRDACXX:3:1101:14772:2719/1 +CCCCGGAAGTGGTGATGCACACTGTTGCTGATGTGATGACAGGAAACGATGGTGAATACTGTTTCCATGCGCGGACTGGAAAATATGGTGTGTATCTGAA ++ +CCCFFFFFHFHHHIJJJJJJJJJJIIJJJJJJJHIJJIJJJJJIJJJIJJJJFHJJJJJJJHIIJHHHHHHFDDD=BDDDDDDDDEEDDDBBBDEEEEDD +@DRR015910.735 HWI-ST1182:184:D1KRDACXX:3:1101:15397:2503/1 +ATAAATTCTCCGGGATGATGCAGTAAAAATTATTTGCAATAGCGCGATTGCCGGATGCAACGCTTAATACGTTTTATCCGGTCTACAAATCGAGCATTAC ++ +CCCFFFFFHHHHHJIJJJJJJJJHHIJJJJJJJJJJJBDBGHIJJJJJJJJJJJHHFFFFEDDDDDDEEDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.736 HWI-ST1182:184:D1KRDACXX:3:1101:15442:2517/1 +TTCCAATAGCATTAATTTTCTCTGCAATAATTGTTGTAAAAATGTGACGCAAAGAGGTTTTTGGTCATAAGTAATTACCGTCAAGTGCCGATGACTTTCT ++ +CCCFFFFFHGHHHJJJJJJJJJJJJJIJIJJJIIJJIIJJJJJJIHIIIJIJIJJJJIIJJIJIEHGGIHHEHHHHHFFFFDDDDDDDDDBDDDDDDDDD +@DRR015910.737 HWI-ST1182:184:D1KRDACXX:3:1101:15477:2667/1 +GATGATAAGCAGGCGCAGCAGTTAGGAGAGTGGCTGATGGCGGATGATAAAAACCAGCGCGAGAACATGCTGGTGGTGGAAGATATCTGCCAACGATTAC ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJIJFHIJJIJIIIGIIFHIFHEHHHFDFFDCDDDBDDDDDDDDDDDAC@CDDDEDEEDDDDDDDDDDD +@DRR015910.738 HWI-ST1182:184:D1KRDACXX:3:1101:15668:2500/1 +TAACCACGCTCAGCGGTACGACCATAAGTGCCATCATAAACACGGTGAATACCAACGTGATACGCCAGTTCAGTTCTGCGCGAGCACGATCGGTGTCAGT ++ +CCCFFFFFHHHHHJJJGJJJIJJJJJJJGIJJJJJJJJJJJJJJJHIIJJJJIHHHHFFFFFEDDDDDDDDEDFFDFDDDDDDDDDDDDDDDDBDDDDDD +@DRR015910.739 HWI-ST1182:184:D1KRDACXX:3:1101:15619:2590/1 +CACCAGTATTCAGAATAAAGCGGTCAGCGACACGCCTCTGGATGACAGGGAAAAAGGCTTCATTTCCAGCACCACCATCCCCGTCTTTAAATATCTGATT ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJHHHFFFFFEFFEEEEDDDBDDDDDDDDDDDDDDDDDDEEEEEEDED +@DRR015910.740 HWI-ST1182:184:D1KRDACXX:3:1101:15703:2681/1 +TCTACACCCTGACCGTTTACGAGAAGGGCGCGGAAGTGATTCGCATGATCCACACCCCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAA ++ +CCCFFFFFHHHHHJJHJJJJJJIJJJJJJJJJJJJJEHGHHHHFFFDDEEEEEDDDDDDDDDDDDDDDDDEDDDDCDDDDDDDDDDDBDDDDDDDDDDDD +@DRR015910.741 HWI-ST1182:184:D1KRDACXX:3:1101:15564:2736/1 +TCCTTAAGTCGCGAAGAGATTTTCGGTCCGGTGCTGGTGGTCACGCGTTTCACATCAGAAGAACAGGCGCTACAGCTGTCTCTTATACACATCTCCGAGC ++ +CCCFFFFFHHHHHGIJIJGIIJJIIJHIIJJFGHFIJ@FG@GIHHHFABDDEDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDCDEDDDDDDDDDDD +@DRR015910.742 HWI-ST1182:184:D1KRDACXX:3:1101:15965:2592/1 +GTATCAACGTATCATGGAACAGCTCGTCGCCTGATGAGTGGTTCTGCAAGAGGAAATAAGCATGGACTGGCTGGCTAAATATTGGTGGATTCTGGTGATT ++ +@@@FFFFFHHHHHJIJJJJIJJJJJJHIJJJJJHIGGH?FHDGIJJJJJJJJJJJJJJJJJJHHHHHFFFFDDDBCCCDCCDFAC5<@5:ACCAC4<>AD +@DRR015910.743 HWI-ST1182:184:D1KRDACXX:3:1101:15853:2660/1 +GTTCAGGGAAGTACGGCGCGGCAACTGGCGGCAGTTCCTTCCAGCGCCGACCCTTCTCGTACGACTGTCGCTTACGTTGATGGGACGGCAGGCAATATTG ++ +C@@FFFFFHHGFHIJIFIIJJJJJJJJJIJHFBDACDDDDDDDDDDDDDBDDDDDDDDDBBDDDDDDDCDDDDBDBBCDDDDDDCDDDBDDDBABCDDEE +@DRR015910.744 HWI-ST1182:184:D1KRDACXX:3:1101:15816:2706/1 +GGGGATGACGGTCTCCCTCGTTGCCCGGCAACATGGTGTAGCAGCCAGCCAGTTATTTCTCTGGCGTAAGCAATACCAGGAAGGAAGTCTTACTGCTGTG ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJJJJJDHGEIJJJIJGIJJJHHHHHHHFFFFFFEDDDDDDDDDDCDDDDDDDDDDDDDEEEDDDDDDDD +@DRR015910.745 HWI-ST1182:184:D1KRDACXX:3:1101:16012:2581/1 +ACCATAAGCCGCGTAAACACGCCCACTCGCCGCTGGATGCAACGTTAACAACCAGACAAACAGCGCCAGTGAAATCCCCGCCGGAAGCAACAGCCAGATA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJHHHHHHFFDEEDEEEDDDDDDDDDDDDDDDDDDCDDEDDDDDDDDDDDDDDDDDDDDDDDDDDC +@DRR015910.746 HWI-ST1182:184:D1KRDACXX:3:1101:16049:2639/1 +GCCTATGACTTTCTCCGCATCCGGCATAAACAACGAGCTTCAGCTAAACAGCCCAATCATCGCGGCACACAGCACGGCAGCAACGGCAGTTTGCGGTGTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJIHHHHHFFFDDDDDDDDDDDDDDDDDDDDDDDDDDCDEDDDDDDDD +@DRR015910.747 HWI-ST1182:184:D1KRDACXX:3:1101:16101:2671/1 +CCATTGTGGCGATGCTTCTTGCTCCGGCCGAACCATGGCTGATGCCATGTAGCTCAAGTACCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCA ++ +CCCFFFDFHGHHHJJJJJJJJJJJJJJJJJIJGIJIJJJJIJFIGJIH@EEHHHFFFFEFEEEEEEDDDDDDDDEACDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.748 HWI-ST1182:184:D1KRDACXX:3:1101:16056:2689/1 +CCCTTTAGTTGAGTAATGATAGTTAAACATTTCGTTTGGTTTCTTGGAAAGATAAAAGCCGTCATAATTTGGGTAAGGATCTGTTGATATACTTAAAAAA ++ +CCCFFFFFHHHHHGIIJJIJIJJIJJJJJJJJJJHIIJJGIJJJJJJGIJJJJIJJIJJJJJJJJIJJJJJJHAHHDFFFFEEEEEDEEEEEEDEDDDDD +@DRR015910.749 HWI-ST1182:184:D1KRDACXX:3:1101:16199:2740/1 +TCACAGATATGGCATGCTTTTGAACATGAAGAGCATGCCAACACCTTTTCCGCGTTCCTTGACCGCCTTTCCGATACCATCTCTGCACGCAATACCTCCG ++ +CCCFFFFFHHHHHJJJIJJJJJJJIJJIGIJIJIJIJJJJJJIJJJJJJJJJJJGIJGIJJJJHHFFDDEEEDDDBDDDDDDDEDDDDDDDDDDDDDDDD +@DRR015910.750 HWI-ST1182:184:D1KRDACXX:3:1101:16263:2665/1 +GTCCCGCTGTGCCAACGACAGGTACAATATATATAATAAACACATAAAACGACTCATATTATTTTCTGCAATGATAGTTTTACTGTAATTTTCCCTCTTC ++ +C@CFFFFFHHHHHJJJJJJJJJ?GHJJIJIIIJGIIGIJJGJJJIJJJJGIHIIJIJJHHHHHHHHFFFFFFEEEEEEEEDDDDDFEEEEEDEDDDDDDD +@DRR015910.751 HWI-ST1182:184:D1KRDACXX:3:1101:16549:2713/1 +TCTCGAAATATTTCTATATGGCGAGCATCAGCAGCTATTACACCTTTTATCTGATGCAAAAATTCGGATTATCTATCCAGAATGCCCAGCTTCATCTGTT ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHHHFFFFFFEEEEEEEDDDDDDDDDDDDEEDDDD +@DRR015910.752 HWI-ST1182:184:D1KRDACXX:3:1101:16936:2534/1 +ATGTCATATTGGGCGACGGCTTTCTGCCCATCAGAAATAGCCGGGCTTGGATCTTGCGATACTGACCCGGCTTGTTATCAACACTTAATGGGTTTTGATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJJJJJJJJJIJJHHHFFFFEEEEEDDDDDDEDDDDDDDDDDB>@CADDDCDDDCDDDDD9?DDD@DC +@DRR015910.753 HWI-ST1182:184:D1KRDACXX:3:1101:16767:2580/1 +GTCGCGCATGTGAAAGCCGATAGCGGTTTCCAGCGAGTCAAGCGGACTGCGTGACGTGTGACCATACTCACGGGTCTGAACACCGTTAAGGCTGCATGCG ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJGIJJJJJJJJJGIIJIHHHFDDDDDDDDDDDDDDDDDDDDDDDDDDDD>9CDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.754 HWI-ST1182:184:D1KRDACXX:3:1101:16961:2607/1 +CCATTAGCCAGGGAGCGAAAGATGCCGGTATTAGCTATAAAAGCGCCTGGGATGCCATTAACGAGATGAATCAGTTAAGTGAGCATATTCTGGTCGAGCG ++ +CCCFFFFFHHHHHFHJJJJJJJJJJJJJFHIJIJJJJ@GHJJIIIJJJJJHHHHFFFFFFEEDDDDDDDDEDDDEBCEDDDDDDDDDDEEEEDDDDDDDD +@DRR015910.755 HWI-ST1182:184:D1KRDACXX:3:1101:16812:2613/1 +CGGTAATTTCACAAGTTGTCCCATACTTGCAAGATCGCGCATCAGCTCCGGTATACGTCCCGGTGAAGCGCCCTGCAATGTCATCAGCATTCTCATCACC ++ +BCCDDFFFHHGHHJJIJJJJJJJJJJJJJJJJJIJJJIIJIJJJJJJJJJJIJJJJJJJHHHFDCDEEDDDDDDDDDDDDDEEEDDDDDDDDEDEEDDDD +@DRR015910.756 HWI-ST1182:184:D1KRDACXX:3:1101:16800:2650/1 +GTGCAGGATGGTGTGACTGATCTTCAACAAACGTATTACCGCCAGGTAAAGAACCCGAATCCGGTGTTTACACCCCGTAAAGGTGCCGGAACGCTGAAGT ++ +CBCFFFFFHHHFHHIJJJJJJJJJJJJJJJJJJHIIJJJJJJJJJJFHJJJJJJJJJJHHHGFF>AADDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDC +@DRR015910.757 HWI-ST1182:184:D1KRDACXX:3:1101:17020:2582/1 +ACCATCCCGGCCATCAGTTCATGATCGTCCGGGATACAGCCCCAGCCCATCAGCGTTGGGATCACCGGAACGCTGGTCAGTTCAGCAAACTGTTGTAACA ++ +@@?DDDFFGGHHAFGHGFGHHGGIEEFBFCEBG?FGHIFHJIICHIIFBHGGEHGB?A=BBDDACD?B?BB@>>> +@DRR015910.761 HWI-ST1182:184:D1KRDACXX:3:1101:17415:2705/1 +GTTCAGCAAGCGAACTGGCTATTGGTCTGGTAATGCTTATGCGGCAACGGGGAATTGAAGCTGGTAACCGCCCGGTAATGTTTCTGGACACAGAAACAGG ++ +CCCFFFFFHHHHHJJJJJJJIJJIJHIJJJHIJJJJJJJJJJJJJJJJJJJJHFFFFFEEEEEEDDDDDDDDDDDDBDEDDEEDDDDDDDDDDDDDDDCD +@DRR015910.762 HWI-ST1182:184:D1KRDACXX:3:1101:17341:2733/1 +GTTCTGACAGCGGTGGTGAACATGCTGCGGTGTTGTACTCGCTGATCGGCACATGCCGTCTGAACAATGTGGAGCCAGAAAAGTGGCTGCGTTACGTCAT ++ +C@CFFFFFFHHHHFHIFHHHJIIIJIIJJJ@FHIJGIIIIGHGHIGGIIIHHFFEFFDDDDDDDDDDDDCDDCBC?CABDDDCACDDDDB@-?>@BAB8< +@DRR015910.763 HWI-ST1182:184:D1KRDACXX:3:1101:17687:2517/1 +GTGTAGGGAAAAACGGAAAAGCCGTACTGTTGCGCCAGCTGTTTCAGTACCGGGTCAAACTGGTGACAGTAAGGGCAATGTCCCTGCATAAACAGCACGA ++ +@@@DDFFFGHHHFIGJIIIJIJJIIIIJJIJJGIIHDHIJJGIIIIJGGJJJIHBDF>CEEEEDDDDDDDEDCDD@?B?CCDEDDDDDDDDDDDDDDDDB +@DRR015910.764 HWI-ST1182:184:D1KRDACXX:3:1101:17512:2619/1 +CTTCAGGACGTTCTGAACTTTTGATGCCAGGCCGTTAAAACCATTTCGCATGTCGGTGATACCGGCAACCAGCCAGATACGCGAACCGGCAGGGAGAGAT ++ +@CCFFFFFHGDFHIJFGGGIIJJGIJJJIJIIIJJIEIIJIIJJJJIIJIIIJGHIEHEHFHFFFDDDDDDDDDB +@DRR015910.765 HWI-ST1182:184:D1KRDACXX:3:1101:17674:2668/1 +ATACCGTATCCGCCTGTTTAGGTGTGGGCGATTGTAACAGCACGTCAACTGATGTCCAGACGCCCTGATTTGCTGATTTGATCATAGCCTGGTAATCGCC ++ +CCCFFFFFHHHHHJJJJJJJJJFHHJJJJJHIJJHIIJJJIIJJJJJJJJJJJJIJJJHHHFFDDDDDDDEDDDDDDDEDEDDEDDDDDDDDCDDEEDDD +@DRR015910.766 HWI-ST1182:184:D1KRDACXX:3:1101:17844:2644/1 +ACGTTATTGATAATCATGAAGAGGCTCCCATTGGGTGCAGGCGGTCGGCGACGTCATTACGTACAGCTTCGTCATGGAAGATGCCTACGATGGCTGCGCC ++ +@CCFFFFFHHHHHJIJJJJIJJJJJIJJJGIJJJJCGHEIJJJJIJFIDDCDDDDDDEEDDDDDDEDDDCDDDDD@CCDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.767 HWI-ST1182:184:D1KRDACXX:3:1101:17868:2740/1 +GCTATACGCCGCGCGATTACTTAACCCACTGGTTAAGTCAGTGGGTCCGCGACTATGGGATTGATGGTTTTCGGGTCGATACCGCCAAACATGTTGAGTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIGIJJJGJJIJIJJJJJIJHHHFFDDDDDDDDDDDDDDEDDCCABDDDDDDDDDDDDDDDDDDDDDDEEDDDCD +@DRR015910.768 HWI-ST1182:184:D1KRDACXX:3:1101:18004:2544/1 +ACCTGGTGCTTGAGGATTTCCGGTATTTTTAATCAGGCAAGGGATCTGGAACTGGGCGATGGGGGTAATGGTGCGGGGGTGAAGAACTTTAGCGCCGAAG ++ +CCCFFFDDHHHHHJJGIIJJJJJCGHIJJJIJJIJJJJJJJJJGIIIJJJJJIJIIIJBHHHHFD;@DECA:CDDBDDD5@DCDDDDDDDDDDDDDDDDD +@DRR015910.769 HWI-ST1182:184:D1KRDACXX:3:1101:18227:2631/1 +ATCCTGGTGCTGTGCTCACTGTTCTTCCGCCCGCTGGCCTTTGATTATCGCGGAAAAATCGCCGATGCACGCTGGCGTAAAATGTGGGACGCCGGTCTGG ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJJJJJJJJJJJJIGIIJJIJJJJBHFFFEEDDDDDDDDDDDDDDDBBBDDDDEDDEDDDDDDDDDBDDDD +@DRR015910.770 HWI-ST1182:184:D1KRDACXX:3:1101:18068:2747/1 +TCTTTATTACTATCCGCCAGACAGTAATACAGTGGAAGTCTTTCCTATTGGTATCGGCCAGGCTGGGCGAGAAACCCCGCGTAACTGGGTGACTACCGTT ++ +@@@FDFFDFHHDDHEGHHGHEGGIFHEHIIGG?EHBDHFHIEGIGEGGIHCFBGHE:0;F6@EGI:C>?832=@9>@B>@CB+08AC@><5?B +@DRR015910.771 HWI-ST1182:184:D1KRDACXX:3:1101:18334:2559/1 +GACTATGACAACACGCTGACCGTTTACACTACCCGCCCGGACACCTTTATGGGTTGTACCTACCTGGCGGTAGCAGCGGGTCATCCGCTGGCGCAGAAAG ++ +CCCFFFFFHHHHHJJJJJIJJJIJJJIIJJIJJJJJJJJJJJJJJGHHHHHFFCFDDEEDDDDDDDDDDD;BDDDCDDDDCDDDDDDDDDDDDCDDDDDDDDDD +@DRR015910.777 HWI-ST1182:184:D1KRDACXX:3:1101:19010:2541/1 +AAACTCTACTTCCATGGCTGGAGAATAAATAATGGGGCTATACGATAAATATGCGCGCCTTGCTGGCGAGCGACTGCAATTTAGTGACAACGGGTTAACA ++ +CCCFFFFFHHHHHIJJJJJJJHJJJJIJJJJJJIJJJJJIIIJJJJJJJJJJJJIJJJIHHHHFFFFDDDDDDDD@CDDDDDDDDDEDDDDDDD@@BDDD +@DRR015910.778 HWI-ST1182:184:D1KRDACXX:3:1101:19203:2554/1 +GGTTATTAATTCTCCATTTTCACAACTCTGCATTGGCGCTTCCATCCAGCGTCGACAGTACAGGATGACCCATTTAGGCATCCCGTGGTGTTCCAGAGCT ++ +BB@DFFFFGHHHHJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJJHHHHHHFFFFFEEDEEECDDDDDDDDDDDDDDDDDDEDDDDD +@DRR015910.779 HWI-ST1182:184:D1KRDACXX:3:1101:19008:2584/1 +GTGTATTTATTCTCAATCCGTTTCAGCACGCGGCTAATCAGCTGTCTCTTATACACATCTCCGAGCCCACGAGACAGGCAGAAATCTCGTATGCCGTCTT ++ +@BBBDFFFHHHHHJJIJJJJHJJJJJJJJJJJJJJJIJJIGIJJJJJJJJIJJJJJJJHHHHHFFDDDDDDDDDDCCDDDDDDDCCCCBDDDDDDDDDDD +@DRR015910.780 HWI-ST1182:184:D1KRDACXX:3:1101:19352:2546/1 +ACTGCCACGTCTGGCACTCCAGCTCAGCGTGATGAGCTGGAGTGCCAGACGTGGCAGTACTACGGCAGCGGCATTCGTGCCGGGAACGACGACGGTTTGT ++ +@CCFFFFFHHHHHJIJJIJJIJJJJIJJJEHIJIGIJJJJIJDFHIHJIJIJJJJJJJJHHGHHFFDDDDDDDDDCDDDBDDDD>BBDDBDDD>@5?BDA +@DRR015910.781 HWI-ST1182:184:D1KRDACXX:3:1101:19530:2536/1 +CATATGACCGGCGTGCATTCACTACGCGGCCTGAAATCACTCGACATTTATCAGGCACTACGCGGATTACTTGATTGGGGAATGCAGCAACGTCTGGATA ++ +CCCFFFFFHHHDGHIJJJJIIJIJJJJJIJIJJIGHEHHHHHFFFDDEFEEDEEDDDDDDDDDDDDDDDDDDDDC@CDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.782 HWI-ST1182:184:D1KRDACXX:3:1101:19640:2567/1 +CTACTGCTGTTACCACCGCAGAGTGAGCGCCACCGGTTTTCTCCTGCACAATTTTGGCGGCGTCTTCGGTGCGTGAGTTAATCGCTAAATCTGCACCCAT ++ +CCCFFFFFHHHHHIJJJJJIJJJEHIIIJJJIJJJJFHJJIJJJJJJJJJJJJHHHHFFDDDDDDDDDDDDDDBBDDDEDEEDDDDDDDDDDEDDDDDDD +@DRR015910.783 HWI-ST1182:184:D1KRDACXX:3:1101:19709:2643/1 +ATGTTATTGGGCCAGACGAATATACCGAACATGTCAATAATAATGCATACACCAGCTATATGGCCCGCTACAACGTTCAACAGGCGCTGAATATTGCCCG ++ +BCCDFFFFHHHHHJIJJJJJJJJJJJJJJJJJJIJJJJJJIIJJJJJJJJJJJJJJJJJJJJIJHHFFDDDDDDDDDDDEDDBBDDDDDDDDEEEEDDDD +@DRR015910.784 HWI-ST1182:184:D1KRDACXX:3:1101:19893:2519/1 +GTACGCAACGCCACCAGCAGCGTAGTCGGGCTAACCAGCATGATATTGTTTTTCAACGCTTCGGTGATCAGCTCCGGCTGGCGGTCAAGCGCCAGTAAAA ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJJJJJJJJIJJIJJJHHHHHHHFFFFFACCBD?BBD???CDCCDDDC@@BBB><@B955A@@<>B7B4>CDD +@DRR015910.785 HWI-ST1182:184:D1KRDACXX:3:1101:19866:2539/1 +CATTACAATCAATCTCGTTATTCCAGAAACGCAGCACGGTCCAGCCCTGCGACTCAAGCCAGCTAGTGCGCCTGGAATCATAGGCAACTGCCAAATCATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJGIJJJJJJJJJJIJHHHHFFFFFDEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.786 HWI-ST1182:184:D1KRDACXX:3:1101:19782:2551/1 +GTAGCGCAGCGCTGTCAGCGACATGTTCTCTTTTACTGACATGCCCAACACTAAGCCGTCACGTTTACGGTCTTCGGAGATATACACAATGCCGTTTGCC ++ +CCCFFFFFHGHHHJJJJIJJJJJJJIJJJJJJJJIJJJJJJJJJJJJJJJJHHGHHFFFDDDDDDDDDDDDDDDDDDDDDDDEEEEDDDDCDDDDDDDDD +@DRR015910.787 HWI-ST1182:184:D1KRDACXX:3:1101:19914:2610/1 +CCTCTGATATTCCGCTGGTGGTGATTGAGACGTCACGAACCCGTGTTGATGAGCTGCGAGAGCGCGGGGTCCGCGCAGTATTGGGCAATGCGGCGAACGA ++ +CCCFFFFFHHHHHJJJJJCGIGHHHJIJIIJJIJIJJJJJJJJIIIIIHHJJJHHHHFFDBDDDDDDDDBDDDDDBDDBDEEDDDDDDDDDBDDDDDDDB +@DRR015910.788 HWI-ST1182:184:D1KRDACXX:3:1101:19824:2688/1 +GCGATGTGATGGGGCGTGTCGACATCATCACCGGCACGCTCGGTAAAGCGCTGGGCGGGGCTTCTGGTGGTTATACCGCGGCGCGCAAAGAAGTGATTGA ++ +CCCFFFFFGHHHHJJJHIIJJJJJJIJJJJJJJJIJJGHEFEDABBDCCDDDDDDDDDDDDDDDDDDCDDBDDDDDDBDDDDDDDDDDDDDDDACDDDDD +@DRR015910.789 HWI-ST1182:184:D1KRDACXX:3:1101:20069:2598/1 +GTACTGAACAGCACCATATGGCAGCCCGCACCCGCCAGGGCTGAAATTGTTAAGTGCGCCGGGGAACGATGCCGTAGCGACCAGCGCCCTGGCGGGGGCG ++ +CCCFFFFFFHHDHGIJIIIIJIII;FG<:06?@)8D@'BF(.4.=).=@@E3=;)7.54='9;'-8+05(+(4959(()&09&2(005@&28(009&5&) +@DRR015910.790 HWI-ST1182:184:D1KRDACXX:3:1101:20217:2651/1 +CCATCCGCCAGATGGCGAAATACAACCGCCTGCTCTCACAGCGGGTGGCGGCTTATGCTTCCGAAATCAACCGGCTGAAGGCGCTGGTTGCGAAACTGCA ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJJJJJIIJJJJJJJIIJJHBDDDDDCDDDDDDEEDDDDDDDDDDDDDDDDDDDCDDDDDDDCDDDDDDDDDDDD +@DRR015910.791 HWI-ST1182:184:D1KRDACXX:3:1101:20103:2711/1 +CATCTTTGATGCCAGCGAGGTACAACCATCCCTCCTGTGTGGCAACATACGTCAGGTCCGCCACCCAGACCTGATTTGGTGCTGTAGGAGCGAACGTCTG ++ +CCCFFFFFHHHHHJJJJJJJFHIJJJJJJJJJJJJJJJJIIJJIJJJJJJJJJJJJ>DHHHFFDEDCDDDDDDCD@CDDDDDDDDDDDDDDDDDDDADDD +@DRR015910.792 HWI-ST1182:184:D1KRDACXX:3:1101:20251:2526/1 +CTTCTGTTTCTATCAGCTGTCCCTCCTGTTCAGCTACTGACGGGGTGGTGCGTAACGGCAAAAGCACCGCCGGACATCAGCGCTATCTCTGCTCTCACTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJDHIAFIJHJJHHHFFDEEDDDDDDDDDDDDBDDDDDDDDDDDDDEDDDDDDDDDD +@DRR015910.793 HWI-ST1182:184:D1KRDACXX:3:1101:20424:2595/1 +GTGTCCTGGGACAGCTATATTGAGGTTGGTGGTAATCGTTACAGCGTTCCCGAAGCGCTGTGTGGTCAGCCGGTATCGATACGAATATCGCTGGATGACG ++ +@@CFFFFFFHFFHIJJEHGG4ECEGCFHI;EH?DFHIGIIIJJJJGHFGHIG@HGIHFDB=CCACACDCCDBB;?@CBACDDEEDDDDDDECC +@DRR015910.795 HWI-ST1182:184:D1KRDACXX:3:1101:20394:2655/1 +AAATATACTTCATTTCATACTGAAATCCCCGGAAGTATTCAATCAAACAATTACACCATAAAAGGAAGAGGGCTGTCTCTTATACACATCTCCGAGCCCA ++ +CCCFFFFFHHHHHJJJGJJJJJJJJJJJJJJJJIJDHIJIJJJJJIJJJJJJJJJJIJJJJJJJJJJJHHHGFFFEEEEEEEDDDEDDDDDDDDDDDDDD +@DRR015910.796 HWI-ST1182:184:D1KRDACXX:3:1101:20591:2593/1 +GTCACCCTTAAGTACGCCGTTTTCCACATTGCCTTTGGTTTCAAGCGTCGTGGTAAAACGAAAATCGGGGCCGAGTTGAATCAACGCCGCCAGCGCAGTA ++ +CCCFFFFFHHHHHGIJJJJJJJJJJJJJJJJJJJJJJJGIJIJJJIJIJJJIIHHHHHHFFFDDEDDDDDDDDDDD@DCCDDDDDDBDDDDDDDDDDDBD +@DRR015910.797 HWI-ST1182:184:D1KRDACXX:3:1101:20623:2600/1 +ATCTATTTGTTTATTTAACCCTAATTTAGAACCTGCAAGCTCTTTTTCAAGAGATTGAGCAGTGGCAAGGTTCTTTCTTAAGGCTCCTTTTTGGTCGCTA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJIGIIJJJJJJJJJJJJJJJJJJJHIJJJEHHHHHHFFFFDEEEEEDDDDDDDD +@DRR015910.798 HWI-ST1182:184:D1KRDACXX:3:1101:20606:2651/1 +CAACCACTAATAAATGCCCGTTGACATAATTCGATGCCGGACTTGCGAGGAATACGGCTGCGCCCATTAAATCCTGAGTATCGCCCCAACGGTTTGCCGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHHHHFFDDDDDDDDDDDDDEDDDCDDCDDEDDDDDDDDDD?BDBDDDD +@DRR015910.799 HWI-ST1182:184:D1KRDACXX:3:1101:20696:2716/1 +GTCATTAACTGGCAGCATGCGTCAACCCAGTTGGAGAGTAATGCACGGCTCAGCTCGACGCCCTGACGGGCAAAGATTTCACTCTGACGGTACAGTGGCA ++ +@@BFDEDFHHHHGJJIJJJGIIJIJJJIIJGGIJHIGH?DFIGHJIIJJJJIJJJJIGEECDDDDDDDDDDBBBDDCDDDEDDDDDDDDD@BDDEDDDDD +@DRR015910.800 HWI-ST1182:184:D1KRDACXX:3:1101:20521:2741/1 +TCTGAACACCGGTCGTCCGTATAATGCCGACAAGCCGAACAAATACACTTCGCGTTATTTTGATGAAGCTAACGGGGCGCTTTATCCGTTCGGCTATGGT ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJJJJJJJGHHHHHEFFFFEDDDDDDDDEEDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.801 HWI-ST1182:184:D1KRDACXX:3:1101:20804:2532/1 +CAACATTACCATCCAGAACTGAAAGAGAAAATACCATTCCTTGTTGGTATAATTTGTGGAGGACTCAAAAGTCGATATTACACTGATTATTTATCACAGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJJJJJJJJJJIJJJJJJJJFHIJJJJJJIJJJJJJJJJJJJJJHIHHHFFFFFEEEEEEEEDEEEEDEDDDD +@DRR015910.802 HWI-ST1182:184:D1KRDACXX:3:1101:20894:2543/1 +GTACCAGTCAGCAGATTCCGGTACGTCAGTTTGCTCGCCCCAGGTTTGCGGAGACGCAGGAGGCAAGTCGCAGTACCAGTCGTAGAAGCTTAAGCAAGTA ++ +B@BFFFFFHHHHHJJJJIJJJFIJJGIJJIJJIJJIJJJJJJJJCHHIJJJHHFFDDDDDBDDDDDDACDDDD?C@CDCCDD?BD?CCDDDDCCDDDD>@ +@DRR015910.803 HWI-ST1182:184:D1KRDACXX:3:1101:20938:2681/1 +GTGCGCCAATATTCGTTTCGGCTATGCGGAAACGCAGTCTCTTATTTAAGGGTGCAATGATGAATCCATTAATTATCAAACTGGGCGGCGTACTGCTGGA ++ +@BCDDDFFHHHGHIIJJJJJIJJIIJJGJJJJJJIIJHFAHHIIJJIIIEIJEHHHFFFFFFEEDCEEEFDDEEEACDDDDCDDDDDDDD<@DDDDDDDB +@DRR015910.804 HWI-ST1182:184:D1KRDACXX:3:1101:20860:2722/1 +CTAAAAGACATCCAGGAAGAAATGACACCCATCGGTATTCAGGTAATGAGCCTCTCATATGTGGGTAAGCCAGAGTACCCACCAACCGTTATCGACAGCA ++ +CCCFFFFFHHHHHIJJJJJJJJJIJJJJJIJIJJJGHIJIJJJHFHIIJIJIJJJJJJJJJIJJJEHHHHHGEEFF@DEEEDDDDDDDBDDDDDDDDDDD +@DRR015910.805 HWI-ST1182:184:D1KRDACXX:3:1101:21100:2534/1 +GTTTAACAAAGAGAATCCCTCTCCCTTTGTGGAAATACTGAAAAATCTGGATGTGCCGGTGGCGAGAAAACCGTAAGAAACAGGTGGCGTTTGCCACCTG ++ +@B@FFFFFHHHHHJJJJJJJJJJJJJJJIHHJJJJIJIIJJJJIJJJJJJIGIJIJJJJHIJJHHFFDDEEDD@B=BDDDDDDD:ABDDDDDDDDDDDDD +@DRR015910.806 HWI-ST1182:184:D1KRDACXX:3:1101:21014:2637/1 +TGCTACAGCAATTGCAATTTTTTGATGGTTTTCTGAAGTGTTATACAAAAGCGTCAGCTTCAGCGGTTTTTGCGGACCATAACCAGCTGCGCTCAACAAA ++ +CCCFFFFFHHHH3EGIHIJJJJJJIIIJFHJJJJJJJJIIIIJJIJJJJJJJJJJIJJIJJJJJJHHFFDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.807 HWI-ST1182:184:D1KRDACXX:3:1101:21229:2662/1 +CCCCTAAAAATACCGGACCTGATGTTATTCGGTGCGCAACCCGGGCCTGTTATGGGATTTTCCCAAAACGGATTATTTTTGAAGCATTTTGTGCGTTGAT ++ +BCCFFFFFHHHHHJIJJIJJJJJJJJJJJJIJGHIIJJIJJJIIJHFDFEEEEEEEDDDDDEDDDDDDDDDDDDDCDEEDDDDCDDDDDECDDDDDDDDD +@DRR015910.808 HWI-ST1182:184:D1KRDACXX:3:1101:21097:2732/1 +GATAAAATGAGTGTTACAGTACCGGATAAAGATTGGACTCTGAGTTCATTATCTGAAACTTTTGATGATGGAACTCAAACATTACAAGGTGAACTAACAT ++ +CCCFFEDDFHHFHJIJJJJJJJJJJIJJJJJIJJJJJIJJJJJJHIJJJJJJJJJJJJJJJJJJJJJJJIJJJJJEHHHHHFFFFFFEDAEEDDDDDDDD +@DRR015910.809 HWI-ST1182:184:D1KRDACXX:3:1101:21392:2593/1 +NGAAGTTGGGGCGCCGGGGACGCTTTTTTACCCCGGGGACTTCGGGCATAACGGTACTTTCAGTAAGTACGACAGGTACTGTGGAGGCACTCCCGTAAAG ++ +#1=DDBDDDAHHGEHIIIGAFEBHHGFFCCEECBBCBBBBCCC?BCBCCCACBC??BCBDCCCDDCA>@CBBBBB<>@@CCDCCCBBCCCCCCBB?<>1> +@DRR015910.810 HWI-ST1182:184:D1KRDACXX:3:1101:21256:2718/1 +GGCGCAGGTTGATAAAGAGCAGGTAAAAAAAGCCGCCCGGCAGAATATGAAATGGCATGAGCAGTTGATCTCTCATTTCGCGGAGATCTTCTTCCCGTTG ++ +CCCFFFFFFHHHHJJJJJJJJJJCHIJJJJJIJJJJJIJJJHHFFFFFEEEEEEEDDDDDDDDDCCDDDDEDEDDDDDEDDDDDDDCDEDEDDDDDDBDD +@DRR015910.811 HWI-ST1182:184:D1KRDACXX:3:1101:1273:2994/1 +GTGCCTGCCGCAAACGACATATACATAAGTGCCAGCGTTGCCCAGAATGCGGTGACCAGTTGCATCAGTGACCGGTCCGTCTCCCTGACATAATCTGCAG ++ +CCCFFFFFHHHHHJJJJJJJJJJIJIJJJIIJJJJJJIJJIJJJJJJJIJJHHHFFFFFEEEEEEEDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDEDDD +@DRR015910.812 HWI-ST1182:184:D1KRDACXX:3:1101:1586:2838/1 +GTCTGATTCTAGTGGCTATACTGGTACATTTGATATTGATAATAGCCATGACTCATCTTTGGCAATGATAGAAAATCTGGATGCTATTAGTTCAGAAACC ++ +CCCFFFFFHHHHHJJJJJJJJJJJHHJJJJJIHIIIJIIHIJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJIIJJJJJJJHHHHHHFFFFFFFEEE +@DRR015910.813 HWI-ST1182:184:D1KRDACXX:3:1101:1610:2864/1 +CCTTTAAAAATAAAACCAGAATAAATTTGCACCAGTGAGGCACCCGCAGCAATCTTTTCACGCGCAGCGATAACCGAGTCGATGCCGCCAACACCGATGA ++ +CCCFFFFFHHHHHJJJIJJIJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJIJJJJJJJHHFDDDDDDDDDDDDDBDDDDEDDDDDDDDDDDDDDDD +@DRR015910.814 HWI-ST1182:184:D1KRDACXX:3:1101:1697:2982/1 +GGTAACAACCAGGCGATCACCGTTACCAATAACCAGATCCAGAACATTGGCGTTAATCAGATACAGACGGTTGGTGTCAACCAGGTGGAAACGGTGGGCA ++ +@B=DFFFDHHHHHIIGGHJJJJJJJJJJJJJJIIGIIJJJFIIIJIIHIIJJIJHHHHHHFFFFFFEDCD@BDD?8ACDEDDDDD@CD?CCDDDBDDDDD +@DRR015910.815 HWI-ST1182:184:D1KRDACXX:3:1101:1577:2991/1 +AAATAAATATAAGCTGGTGATTTTGAAAAATCTTCCGTTTTTTCCAAACATACATTTTTTGCAATAGCATCAGGGGTGCTAAGAAGCTGATAGTTTACCT ++ +CCCFFFFFHHHHHJJJJHIJJJJJJJJJJIJJJJJJJIJJJJJJJIJJJJJJJJJJJJJJJJJJHHHHHHFFFFFDBBDDDDDDDDDDDDDDDDEEEDDD +@DRR015910.816 HWI-ST1182:184:D1KRDACXX:3:1101:1984:2886/1 +CTTCCACCACGAAGCATCCATCGAAGGTGGTCAGCACCTGAACGTTAACGTGATGAACCGTGAAATGCTGCTCGACGCGATGGAAAACCCGGAAAAATAT ++ +CCCFFFFFHHHGHIJJJJJJJJJJJJICFHCGIJIJJJJJIJIJHIJJJJIJJJIIIJJHHFFFFFEEEEEEEBDDDDDB9@DACDDDDDDDDBDDD?CE +@DRR015910.817 HWI-ST1182:184:D1KRDACXX:3:1101:2245:2787/1 +ATGCGGAGGTGCTGATCGCTATTACGGAGTATCACCGTGCCCTGTTATCCAGGCTTATGGCAGATTAGCTTCCCGGGGAGAAAACTGTTGAAAACAGACG ++ +CCCFFFFFHHGHHJJJJJJJJJJJJIJIJGHIIJJJIGGHIIIJJJJJJIJHIJJHHHHHFFFFEEDEDEDDDD:?@B((4:@B&& +@DRR015910.828 HWI-ST1182:184:D1KRDACXX:3:1101:3193:2971/1 +CATCCGGGTTGGCGGCAATAATGCTCTCCCAGCTCACCGTGGGCCACTCGGTTTCGGAGGTAATCGCATTATGTCCGCCCAGCACGCTGGCGATAAATCC ++ +CCCFFFFFHGFHFJJJJJJJJJGJIIJIIJIIJIJGIJJEIGHHHFFFFDDABDDDDDDD<@B5<28:93 +@DRR015910.842 HWI-ST1182:184:D1KRDACXX:3:1101:3928:2937/1 +TTTGTGTACCAGCCACCCCTCCATATACGGCAATACTGGCAAAACAGCTTGCGTCGGTAATGGTCAGCATATTGCCCTGGCCATTACCAAACGTTCGTCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHFBDDEEEEDDDDDDDDEEDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.843 HWI-ST1182:184:D1KRDACXX:3:1101:4095:2858/1 +AGCCCGATCATTGATGCTGAAGGGTGAACCGGAGTTGATACTTCACTTTCTGTCTGAATACTGATGTACCACTTACCGCAGGACTGGCTGACAGTGACAT ++ +CCCFFFFFHHHHHJIJJJJJJJJJCGIIJJJJHGIIIJJJJJJJJIIJJJJJJJJJJJJJHHHHHHHFFFFFFEEEEDDDDDDDDDDDDDDDDDCCDDDD +@DRR015910.844 HWI-ST1182:184:D1KRDACXX:3:1101:4228:2928/1 +GCCATAAATCATTTCGAGGGTTTCGCCGCGCATAATTTCCGCAGGCGTTCCCTGAGCAATCATTTCACCGCCGCGCAGGGCGACCAGATAATCACAGTAG ++ +CCCFFFFFHHHHHJJIBHIIGIJJJJJJJIIJJJIJJJIJGJIHHFF@BDDDDBBDD +@DRR015910.846 HWI-ST1182:184:D1KRDACXX:3:1101:4176:2977/1 +GTTCTCCACAGGATACTTGTAAAGCGATTGGCATTATCAGCAACAACCCGGAGTTTGCCGATGTGCGTAGCCTGGAAGGGCTTTCCCCGACCAATAAACC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIJJJJJJJIJJJJJJJJJJIJJJJIJJIJJHHFFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.847 HWI-ST1182:184:D1KRDACXX:3:1101:4006:2988/1 +GATCAATATTGTTCTGAACATTAATATGATTTACTGCTTCAGGTATTTTCATAAAACATCCCCCATTATGTGCGTTTTTATCTGCAGTTATTTAGAATAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJJJJJJJJJIJCGIJJJIJJJJJJJJJJJJJJJJJJJJIJJIFEHHHHHHFFFFFFFEEEEEEEDDDD +@DRR015910.848 HWI-ST1182:184:D1KRDACXX:3:1101:4447:2782/1 +CTTTATAAATATCAAAGACAAATTTTGAACAGAACTGGCGCGAAGATTCGTATTTAAAACCGGTGTGGTAAAGTTTGCGTAGCCGGGAGGGAACCTGTTC ++ +CCCFFFFFHHFHHJJGIIIIJJJJJJJIGIIJJJIIJJJJJJJJIIEIJJIHGJJJJJIHGGF=AA?@AC@CCFD@CDBDDDDDDDDBDBDBDDDDDCDD +@DRR015910.849 HWI-ST1182:184:D1KRDACXX:3:1101:4293:2793/1 +AAATGTGTGAGCGCAACATTACTGATGCCACAGCGGCTGATATTGGCATGTAACACTTTTACCCGACTGGCGGAAAACTCATTGGCAAGGATCGCTCCTT ++ +CCCFFEFFHHHHHJJJJJJJJJJIJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJHHHHHHFFFFDDDDDDDDDDBDDCDDDEDDDDDDDDDDBDDDDDD +@DRR015910.850 HWI-ST1182:184:D1KRDACXX:3:1101:4461:2927/1 +ATCTTGAGATGACCGGTCTGGATCCCGAGCGCGATCGCATTATTGAGATTGCCACGCTGGTGACCGATGCCAACCTGAATATTCTGGCAGAAGGGCCGAC ++ +CCCFFFFFHHHHGIIJHIJJJJJJJJJJJJJIJJJIJJJJJJHHHHHHFFFFFFEDDDDDDDCDDDDDDDDDDDDCDDDDDEEEEEDDDDDDDDDDDDDD +@DRR015910.851 HWI-ST1182:184:D1KRDACXX:3:1101:4576:2802/1 +GTATACGGAGAAGCACATCCGTATCATCAGTGTGACGACTGCGGCGGCCATCCATCCAGTCATCGGTTCGTCTGAGAATGACGTGCAACTGCGCACGCGA ++ +CCCFFFFFHHHHHJJJJJJJJFIJJJJJJJHICGIJJJJJJJJJIJDDDDDDDDDDDDDDDDEDDDDDDD?BDDDDCCDDDDDDDDDDDDDDDBDBBDDD +@DRR015910.852 HWI-ST1182:184:D1KRDACXX:3:1101:4688:2953/1 +GGCCTGATTCACGCGGACAATTCCTCCTGCAATTGCTTTATAACTGGTTCTACGTCAGGCAGAACACCGTGCCAGAGAAGAAAGGCATGAGCCGCCTGTG ++ +?@@DDDDDDHDH?GEIHGBFFEH4BBDGGGGEII@GGIG@FHIIEGCEGGHFGIHEHEE>;BDECC@CBAABB@C9?35BB>A +@DRR015910.853 HWI-ST1182:184:D1KRDACXX:3:1101:4690:2979/1 +ATTCTTATCAGAGTTTTGAAAAACAAAAGATTGCGTATAGATTTCAAACAGAAAAACTGGATGAGTATGTAAATAAAGGTTATTTCTTTGATGACTTTTC ++ +CCCFFFFFHHHFHHHIJIIJJJJJJJJJJHIIJIJGHHIIIJIIJJJJJJJJJJJJJJJJIJIHIDHHIHHHHHHHHFFDEFFEEFEEEEDDDEDDDDDD +@DRR015910.854 HWI-ST1182:184:D1KRDACXX:3:1101:4828:2792/1 +TCTTTACCGCATTGAGAAACTCATCCGTGAGCGCCCTGTGGAAAAAATACGGCAGTGGCGATAACGGTACTCCCGGCCGATAGTGAATGACCTGTTTGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJGIJJJJJJJJJDHIIJJJJJJJJJHHFF@CEDDBDDDDDDDDDDDDDDDDDDDDDDDEEEEDDDDDDDDDDDD +@DRR015910.855 HWI-ST1182:184:D1KRDACXX:3:1101:4800:2856/1 +TCCCCAGCCCCTCTTGCGCAAGTTGTACGCGTTCGACCACCAGCGGCACCTGCCACTGTTGGCAGACGTTTTCGCAATGCGTAACCCAGGCATCGGCATT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJHIJJJJJJJJIJJIIIIIJHFFDDDDDDDDDDDDDDDDDDBDDBDDDDDDBDDDDDDDDDDDDDDDDDDBDDDDD +@DRR015910.856 HWI-ST1182:184:D1KRDACXX:3:1101:4977:2993/1 +GGCAATTGACTTGCCTTGCTCCAGGGTTTCCAGTTGCGCCAGCTCCTCACTGTGCTGCTCCACCAGACCAGCAAAACGTAGCAGAATACGTTCACGCTCT ++ +CCCFFFFFHHHHHJIJJJIIJJIJJJFHIJJJJJJGJJJJFIJJJJIDGIJJHIJJJJJJIJJJJHHHHFFFFEECEDDDDDDDDDDDDDCDDDDDDDDD +@DRR015910.857 HWI-ST1182:184:D1KRDACXX:3:1101:5200:2789/1 +GCGTGGCGTTATGCCAGAGCTGCGCTGTTTTCGTGAACACGCGGCGGACAGCCTCACTTCCCAGGCGCTGGCGGGCCTGAATAACGGCACTGGGGGCAAC ++ +CCCFFFFFFHGHHJJJJGHIIIJJJJIIJJJIJGGIJJJJGIHHFBDDDDDDDDDDDDDDDDCCDDDDDDDDDBD>B@?CCDCCDBDDDDDD?BDDBBDD +@DRR015910.858 HWI-ST1182:184:D1KRDACXX:3:1101:5224:2871/1 +GGGATTAGTTGAGGGCATTAGCGCCAACTCCGATCCTATCGTCAACGGCAACAGCGGCGTATTAGCGATCTCTGCGTCTTTAACCGATAAAGGTCTGGCG ++ +CCCFFFFFFHHHHJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJIJJJJIHHHFFFDDDDDDDDEEDDDDDDDEDDBDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.859 HWI-ST1182:184:D1KRDACXX:3:1101:5068:2905/1 +CTGACAGTCGATACCCATCACCCGGATGGTTTTATTTCTCGTACCTGTAACCGCAAAAAATATGATTTTGACGGTAAACCGAATCAGTCATTCAGCGCGG ++ +=?8:ADD2=DBDC@D@8)..=5;A6(;;(;>>>A=:2;35<>A<>-;8>:ADA:::A:4A;>>> +@DRR015910.860 HWI-ST1182:184:D1KRDACXX:3:1101:5082:2906/1 +TATCATCCGCATGGACTTTACCGGGCATCAGTACATACTGGCGCAGCACGTCATACAGCGGCTCCAGCAGTTCAGCAACGGCACCGGTCCAGCGCCCCAG ++ +=??DDBDBFBHHFHFHHIIIIIBFIEGGHIIIEGCG?DGEHFHIIIEDAA@EHFHHFD@>A@BBB:@>CC:@CBBB5>BCCCCB5>CCDDBBDDDDDDDDD<@ +@DRR015910.870 HWI-ST1182:184:D1KRDACXX:3:1101:5528:2920/1 +GATACATATCCCGCCCCCCCGACAGACCTGTGCTATCGGAAAGAAAAAAGGCCATCAGCAAAACTCTGATGGCCTGAATCACCTTTACCACTGTCTCTTA ++ +CCCFFFFFHHHHHJJJJIJJJJJIJIJJIJIIIJIIGHHFFFEEEEEDDDDCDDDDDDDDDDDDDDDDDEDDDDDBDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.871 HWI-ST1182:184:D1KRDACXX:3:1101:5504:2960/1 +GGTCAGATGCGGTTTACGGGGCTGAAGAGGGGTTACCGTCTGGCAGAGCAGGTTATGATGCATGAGCCGCTAGCTCGAATACGGTGGTGCGGCTGAGAGT ++ +BC@FFFFFHHHHHJJJJJJJJJJJJJJIIJJJHIJJJJIJIJJJEFFHFFFFBCEEEEEDDDEDDDDDDDDDDDDCBDDDDDDDCDD +@DRR015910.872 HWI-ST1182:184:D1KRDACXX:3:1101:5603:2991/1 +CCCCAGATCTTGCGACAGATAGATATGGTCAGCAGCATCACGAATTTCCGGGTATTCTTCCGGCCAGAAGGTGGTATGCAGGCGGTTGGTATTGGAAAGC ++ +CCCFFFFFHHHHHJJJJJHIJJJIIJIJFHIJJJJJJJJJJJJJJJJJJJJJ@BHIJJJHHHFFDDDDDDD?CDB>CDDEDDDDD((((3((+((0&5&)& +@DRR015910.874 HWI-ST1182:184:D1KRDACXX:3:1101:5797:2930/1 +CGCCTGGCTGTAGATGTGTCATTTCGAGGAAAAGGGCTTGGCGCGGATTTACTTCATGATGCAGTTCGTCGTTGTTACAGGGTTGCCGAAAATATCGGTG ++ +@CCFDFADDBFFGBFHFHHIIIIIIIEGGDGIGDHCHECHDGHGGIBAAEEHCFFFEDDEEDDECEDD@BD=BC<BBCDDDDDDDDDDDDDDDDBDEDDDD +@DRR015910.878 HWI-ST1182:184:D1KRDACXX:3:1101:5870:2962/1 +TCTTTTAGCAGTGGTGATTTGGAAGCCAGCGGTAAACGCTATCCGATTGATGTGAAAATGATTGCACCATTCAGTGATGAAGTCATGAAAGTCACTGGTC ++ +CCCFFFFFHHHFHJCGGIIJJJIJJIIIJIJJFHIIJJJIJJJIJHIIJHIJHHIIJIJJHHHHHHFFFFFFEEF@EEEEDDDDEEDDDDDDDEDDDDCC +@DRR015910.879 HWI-ST1182:184:D1KRDACXX:3:1101:5893:2967/1 +GTTTGTATCGGCTGCCGCTACTGCCATATGGCTTGCCCGTATGGCGCACCGCAATATAACGAAACGAAAGGCCATATGACCAAATGCGATGGTTGTTATG ++ +@@@DFDEDHHHGFJEEGGIGIDGDGCHGEGIDADG9DE:.>>3::@:AB::4902<<(4<9AA@@ +@DRR015910.880 HWI-ST1182:184:D1KRDACXX:3:1101:6175:2774/1 +CAAATGATTTTTATTCGTTATTAAACAGGAAATATTTATAGCCGTATTTGTTGATGCTATAAGCCAGAGGCTCTTCTATGAGAATATGGGGACCATTCCC ++ +CCCFFFDFHHHHHJJIJGIIJJJJJJJJJJJIIJJJJJJIJJJJHIJJJJJJJIJJJJJJJJIIJJJJJJIJHHHEEHHFFFEFFEEEEEDDDDDDDFED +@DRR015910.881 HWI-ST1182:184:D1KRDACXX:3:1101:6005:2802/1 +CTCCCAGCAGCGTGCGGATTCCGTTGCCAGCGCGTTGATCACCCAGGGCGTGGACGCCAGCCGCATCCGTACTCAGGGCCTGTCTCTTATACACATCTCC ++ +CCCFFFFFHHGHFIGIJIIJJJIGHIIJIJIGGGBHGGIJEHHHHFFFFD??DBDDDDDDDBDDDDDDD?ABDDDDDDCDDDCCDDDDDDDDEDDDDDDD +@DRR015910.882 HWI-ST1182:184:D1KRDACXX:3:1101:6187:2880/1 +AGCCCCACTGTTCGTCCATTTCCGCGCAGACGATGACGTCACTGCCCGGCTGTATGCGCGAGGTTACCGACTGCGGCCTGAGTTTTTTAAGTGACGTAAA ++ +CCCFFFFFHHHHFIHIJJJJJIJJJJJJJJJJJJJJJJJJAGIJJJJHHFFDCCEEDDDDBDD;BDDDDDDDDDDDDDDDAC>CDDDDBCDDDDDDDDDB +@DRR015910.883 HWI-ST1182:184:D1KRDACXX:3:1101:6119:2883/1 +GTCACTGATCACCGTAGAAGGCGATAAAGCTTCTATGGAAGTTCCGGCTCCGTTTGCAGGCGTCGTGAAGGAACTGAAAGTCAACGTTGGCGATAAAGTG ++ +@@ACC:>@>CBCDBB@9?CDDDBDD9?@CCCC:AC@>C +@DRR015910.902 HWI-ST1182:184:D1KRDACXX:3:1101:7412:2897/1 +AGATAAAGTCGATCGCCACCATGCGTGGATTCGGCAAACGCATTGCCAGTGACGTCACGACCGCAATCATCACCATTGCACCACTACCGGAAGTCCAGCC ++ +CCCFFFFFHHHHHJIJJJJJJJJJIHIJHJJJJJIJJJJIIJJJGIJIJHHHHHHFFFDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.903 HWI-ST1182:184:D1KRDACXX:3:1101:7738:2784/1 +AAGGCCGACAGCAGGCTCAGAAGACGCTCCAGTGTGGCCAGAGTGCGTTCACCGAAGACGTGCGCCACAACCGTCCTCCGTATCCTGTCATACGCGTAAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJIIJJJJJJJFHIIEIIHHHHFFDDEDDDDDDDDDDDDDDBDBDDDDDDDDDEDDDDEEDDDDDDDD +@DRR015910.904 HWI-ST1182:184:D1KRDACXX:3:1101:7617:2846/1 +ACACAGGACAGTGCAATTATATTCTTGCCGAAACACAAAATGATGCGGTATGGGCATCTGTAGCCTTAAATAAAACCGGATTTACCAAATGCAGATATAT ++ +CCCFFFFFHHHFHJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJGHIJIIJJJJJHHHHHHHFFFFFFEEEEDDDDDDDCEDDDDDDDDDDDDEEE +@DRR015910.905 HWI-ST1182:184:D1KRDACXX:3:1101:7517:2901/1 +ACGAAGTGTTGTGGCGTTTGTATCACGAAGAAGAGGTGACGGTTTACGATCCGCAGGATGTGGAGTTCAAATGCACCTGCTCGCGTGAACGTTGCGCCGA ++ +CCCFFFDDHHHHHJIJHJJIHIJJJJJJJIJJIIJJ?FHIHJFHJJJJJJJHHHHFDDEEEDDDDCDDEEDDDDDDDDDDDDDDDBDDDDDDDDDDDDDB +@DRR015910.906 HWI-ST1182:184:D1KRDACXX:3:1101:7800:2837/1 +GGGTAAGCTGCGTGAGCAGTACGGGGTCGGACTGCTATGCAGCGAACTGCATATTGCCCCGTCAACGTATTACCACTGTCAGCAACAGCGACATCATCCG ++ +@B@DDDEFHHHHHJJJJJJHIIHIJJFHIJJIJJJJJJJJIIJJJHHFFFFFFEEEEEEDDBDDDDDAADDEDDD@CDDDDDDDCDDDDDDDDDDDDDDD +@DRR015910.907 HWI-ST1182:184:D1KRDACXX:3:1101:7808:2851/1 +GGATAAGCTGCGTGAGCAGTACGGGGTCGGACTGCTATGCAGCGAACTGCATATTGCCCCGTCAACGTATTACCACTGTCAGCAACAGCGACATCATCCG ++ +CCCFFFFFHGHHHJJJIJJIJJJJJJIIJJJJJJJJJJIJJJJJIJHHFFFFFFEEEEEDDDDDDDDBDDDEDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.908 HWI-ST1182:184:D1KRDACXX:3:1101:7946:2930/1 +AGTCTGGTGAGCGGATACGAGCGATGCGATTAGGGGTGTTGAAAAGTGAGTAGGCTACCTGGCAGGCAACCATATTGGTTTCATCTGAACTGGTTACAGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJGIJIIJJJ;BGHFHHHHF@EFFEFEEEEEDDDDDDDDDDDDDDDDDDADDCBDDEEEDDDDDDDDDCDDDDD +@DRR015910.909 HWI-ST1182:184:D1KRDACXX:3:1101:7850:2973/1 +AATGGTTACTGGACGTTGGCTGTGGAAATATCCTCGACCTGAGCCGCGAAAGTGTGAAAAAAAGCCAGTTGTGTCGGAATAAACGACAAAGTGCAGATTA ++ +CCCFFFFFHHHHHJJJJJJJIIHHJJJJIJJJJJJJJJJJJJJJJJJ/BHFFEFEFEEEEEDDDDDDDDDDDDCDBDDDDDDDDDDDDDDC@CDDDCDDD +@DRR015910.910 HWI-ST1182:184:D1KRDACXX:3:1101:8106:2766/1 +GGCAAAACACTGCGCTCTTCTGGCACCAGTAAACCAATTTCTGTGCAGCCAAAAATGACGCCCTGTGCGCCCTGTTCTGCAAGGCGAGCAATCACTTGCG ++ +BCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJGIJJJJJIJJJJJJJJJJJJJJJJJJHHHFFFFDDDDDD@CEDDDDDDBDDDDDDDDDDDDDCD +@DRR015910.911 HWI-ST1182:184:D1KRDACXX:3:1101:8192:2816/1 +CCACTTTTTTGCCCGTCCATATTCAACGGCTTCTTTGAGGAGTTCATTTTCCATCGTTTTCTTGCCGAGCAGGCGCTGGAGTTCTTTAATCTGCTTCATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJJJIEII=FCFEGIJJJIIJJJJHHHHFFFFFFDDDDDDDDD?BDDBD:?CEDDDDDDDDDDDCDEC +@DRR015910.912 HWI-ST1182:184:D1KRDACXX:3:1101:8045:2924/1 +CAGTCCACACCGCGCCGCGTCATGCCACCATAACGATACGGCGTGCCATGCCAGCTTTGTAGCTGGTCGTTCCTGTCTCTTATACACATCTCCGAGCCCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJHHHDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDD +@DRR015910.913 HWI-ST1182:184:D1KRDACXX:3:1101:8269:2779/1 +CCTGAATCCGCTGGATGCACGCTGTGCCGCCTGGGATTTGTGGAAGGAGTGCCTGACACAGCCGGATTTTGATAATACCGCAAATACTCTGATCCCGATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJJJJJJIHIJJJJJJJHHIJHHHHHFFFFDDDDDDDDDDDEDCDDDDDDDDDDDDDDDDEDDDDDDD +@DRR015910.914 HWI-ST1182:184:D1KRDACXX:3:1101:8336:2819/1 +CTACTATCCTTACCCTTTCTCACCCTGACGTAACCATCGAAAATGGTCGCGCCGTCACTACTTCTATTTCGATTGCTGAGTTTTTTGGCAAGCAGCATCA ++ +@BBFFFFFHHHGHJIIJJGIJGIIJIIJJGHHIJGIIJGIJJJIIIBGIIGIGHHFFFFEECCEEACDDEDBCDD>AAAB>ACCDDDDCDCDDDDDDDDD +@DRR015910.915 HWI-ST1182:184:D1KRDACXX:3:1101:8361:2931/1 +TAAATATACCGACTATTAAATGTCCGAATATCACTGCGATAACCCATTTGCTGAAACTGTTGGCGAATATAATCGGCAGATAACATTTCTGCAGGAGTTC ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJJJJIIJJJJJJIJJJJJIJJJJJJJJJIJJJIIJJJJHHFFDEEEEEDBDDDDDDDDDDDEEEDDDDDBDCDD +@DRR015910.916 HWI-ST1182:184:D1KRDACXX:3:1101:8402:2932/1 +ATTTTCAACTATTGATTTTTCTTGCAATGACATGGTTGGGGTTATGTCTGCAGTATTTTTATTCATTACAGGCAGCTCAAATGATTTAGCAACACTTCCA ++ +@@@D?DDDFF?CF>4AF4AIAFH;D@EFC2?=;7?@D@@A>@>;;;A>?;?AA:3( +@DRR015910.917 HWI-ST1182:184:D1KRDACXX:3:1101:8291:2974/1 +TTTATACGTAATGATGTCGCAGCACTGAAACGTGACCGTCTGACCTGGACAGACAGTAATTACATCAGGGATGAAACTATTCGGGCAGCCAACGCTATTC ++ +CCCFFFFFFHHHGIJJGIJJJIIJJJJJJJJJIIIJJIIJIIIJIGIJIJJJJIJIHJIIIJIHHHHHGFFFDEEACEEDEDDDDDDDBBBDDDDD?DDE +@DRR015910.918 HWI-ST1182:184:D1KRDACXX:3:1101:8997:2885/1 +ATATGATCCTCATACCTGTAAGTTCACTGATTTTGAGCTAACCGACAGCAGAGACGCTGAACGGCTGGACCGATTTGCGCAAACGGCAGACGAGATACGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJIJJJJIJJJJJJJJJJJJJJJJJJJJJHHHFFDDCDDDBDD@CDDDDDDBDDDDB@BDDDB?CCDB +@DRR015910.919 HWI-ST1182:184:D1KRDACXX:3:1101:8760:2911/1 +GTCAATAAAAAGAATGAAAGCATATCAGATATTGCATTTGCACATATAATAAAAAGGGTAAAAAATTCATCATGTACTCACCCAAAAGCAGCATTGGTTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFHIJJJJJJJJJJJJHHEHHHHFFFFDDDEDDDDDDDDDCDD +@DRR015910.920 HWI-ST1182:184:D1KRDACXX:3:1101:8968:2952/1 +TTCCAGCCATTCTTTGCCTGTCAGAGTCGGGTTCGTGATTTGGGACGTCGCGAATACAGTAAACATATGTTACGTCTTCGCAGGGAAGGGCATATTAACG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJHHIJJ:?;?)?*BFI@GG;BFFA@ABECC@(>CDCCCCDDCDD@@BC:2 +@DRR015910.921 HWI-ST1182:184:D1KRDACXX:3:1101:9221:2876/1 +CTTTATCTGATGGGATCTCCAGCAGCGCGTAACGGATGGTATCACCACGGATAATTTCCACCGCCAGATAGGTGTAATCATCCTTCAGGAACTGCACTAA ++ +CCCFFFFFHHHHHJJJJJJJBHIJJJJJJIIJJJJIJJJFHIGIIJIIJJHHHFFFFFFFEEDDDDDDDDDD@CDADDEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.922 HWI-ST1182:184:D1KRDACXX:3:1101:9161:2943/1 +GTTGCAGACGCAACAGGACACCATCCGCCAGATGGCGAAATACAACCGCCTGCTCTCACAGCGGGTGGCGGCTTATGCTTCCGAAATCAACCGGCTGAAG ++ +CC@FFFFFHHHHHJJJJJJJJJIJJJIJIJJJJJJJJJJJGHIJJJJHHFFDEEEEDDDDDDDDD@BDDDDDDDDCDDEEDDDDDDDDDDDDDDDDDDDD +@DRR015910.923 HWI-ST1182:184:D1KRDACXX:3:1101:9041:2992/1 +TAATGGACGATGCCGATCTTGAACTGGCAGTCAAAGCCATCGTTGATTCACGCGTCATTAATAGTGGGCAAGAGTGTAACTGTGCAGAACGTATTTATGT ++ +?18BD8;??F==AFFIFEEEI@GF>?FA;8BACFIE>C;D;5=B@;BA@@@>>@@B?;1(5(,,;@ADAA:>@BAA?: +@DRR015910.924 HWI-ST1182:184:D1KRDACXX:3:1101:9312:2799/1 +ATATTTATCATAACCAAACTCTTTGCTGTTAATTCCAGAACCATTTGAGAAATTAGAGTACACAGAACTGCCGCTCACAGCAGCCATAACGCCAATGCTT ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJJJJIJJIJJJJJJJJJJJJJJJJJJJJGHIJJJJJJJJJIJIJHHFFFFFEEEDEDDDDDDDDDDDDDE +@DRR015910.925 HWI-ST1182:184:D1KRDACXX:3:1101:9321:2847/1 +GCCCAGTACGGTGACCAGGAGTTTACCGGCGCAGAGCAGGCGGTTGCGGATATCAACGCTAAAGGCGGCATTAAAGGCAACAAACTGCAAATCGTAAAAT ++ +C@CFFFFFHFHHHGIJIIJEHBDDDDDDDDD>BDDDDDBCCDC +@DRR015910.928 HWI-ST1182:184:D1KRDACXX:3:1101:9780:2913/1 +AATAACTACACATTGAGAATCCCTAAGATGGGTCTGGATAAGATCGCGAATAAAACGACAGAATCTCAGGCTGATTTTAAACTGGTTGCCAGTGGGTGCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJHIJJJJJJJJJJJJJJJJJJJJJJIJHHFFFFFEEEEEEDDDDCDDFDDDDDDDDDDDDDDDDDDDDD +@DRR015910.929 HWI-ST1182:184:D1KRDACXX:3:1101:10141:2777/1 +GCGTTACAACAGCCACCGGACAAAACGAGAAGAAAACCTTGTGATGAGTGGCAACGAGTTTATGGAAAGGTTCTCCTGGCATGTGGCGGATAAGGGGTTC ++ +CCCDFFFFHHHHHIIIJIJJJJJJJJIHGIJGIJJJJIJJIFGHIIJJGGJIIHHHFFBBCEEEECDDDDCCDDDCDDDDDDDCDDDDD@DDDDCDD5@A +@DRR015910.930 HWI-ST1182:184:D1KRDACXX:3:1101:10014:2851/1 +TTATTACCCCGTCGCGAGGGATGCTCACCGCGTATTGACGAGCCGGATCGCCGAGTTACCGGCGCAAGGCCAGCATAAGCAGCGAGATGTGCGGCAGAGG ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJJIJJJGIIJHHHHFFDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.931 HWI-ST1182:184:D1KRDACXX:3:1101:10137:2930/1 +GCTCATAAGACGCCCCAGCGTCGCCATAGTGCGTTCACCGAATACGTGCGCAACAACCGTCTTCCGGAGACTGTCATACGCGTAAAACAGCCAGCGCTGG ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJIFIIIIIIJJJJJJJJJGEHHFDDDDDDDDD@BDDDDDDDDDDDDDDCEDDDDD@DDDDDDCDDDDDDDDDD +@DRR015910.932 HWI-ST1182:184:D1KRDACXX:3:1101:10382:2793/1 +AGGTCCGGGGCTGTTCAGCAGAACAGCGTCTGGCGGCAAGAAAAGCCAGAGCCGCGCCACTGATGCAGTCACTGTATGACTGGATACAGCAACAGATGAA ++ +@CCDDEDFDFHHHIJJJJIJJJJJJJJJIIJJJJJJJHFFFFEEEEDDDBDDDDDDDDDDDDCDDDDDDDDDDDC@DDDDDDDDDEDDDDDDDDDCCDDD +@DRR015910.933 HWI-ST1182:184:D1KRDACXX:3:1101:10343:2835/1 +GAACTCGACAGAACGGCCTCAGTAGTCTCGTCAGGCTCCGGTTTATCCCCGCTGGCGCGGGGAACACCTGTTTTCGCAAATCTATGGACTATTGCTATTC ++ +CCCFFFFFHHHHHJJIJJJJJIHIJJJIJFGIIJJJJIJFGFHGFGAFHI;B8=;?BD&5AC><<>BDCCACC@CCDCCCD>CCDDD3 +@DRR015910.934 HWI-ST1182:184:D1KRDACXX:3:1101:10252:2883/1 +GTACAGGCTCACCGGTCGCGGTGACAGGATTTGCACCCAGGGCTTTCACCTGCTCTGCCAGGGCTGCATTGTCCTGTCCCAGCTTTTCAATACGACGCTG ++ +CCCFFFFFHHHHHJJHIHIJJ@GIIJIJIJJJGIJJJJJJJJJIJJGHHHHHFFFFFEEDEDDDDDDDDEDDEDDCDDDDDDDDDDDDCDEEDDDDDDDD +@DRR015910.935 HWI-ST1182:184:D1KRDACXX:3:1101:10288:2890/1 +TGGCAGAACACATCCGGTACATGGCTGAAACCATTGCCCACCACCAGGTTGATATTGATTTGGAGGACTAAAATCTATGGCGCTTTTTCAACGAGCAATA ++ +CCCFFFFFHHGHHJJJJGHIJJJJJJJJJIJJJIJGJJIIJJJJJJIJCHHJJJJJIIJJJJJGHHFFEFFEEEEEEEEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.936 HWI-ST1182:184:D1KRDACXX:3:1101:10350:2895/1 +GACCCGTTCTCCGGGCATCTGTTCATCTTCCGCGGACGCCGGGGTGACCAGATAAAAGTGTTGTGGGCTGACAGTGACGGACTGTGCCTCTTCACCAAAC ++ +CCCFFFFFHHHHHIJJJJJJJIJJJJJJJJJJJJJJJJHHFDDD=BDDDDDDDDDDDDCCDEDDDDDDDDDDDDDCCDDDDDDDDDDDDDDDDEDDDDDD +@DRR015910.937 HWI-ST1182:184:D1KRDACXX:3:1101:10270:2929/1 +GTATGGCCCAGCCTTTCCAGCAATCGTCGATTGTTATACCAGTCCACCCACGTGAGTGTGGCCAGTTCCACTTCTGCACGGTTTTTCCAGCTCTTACGGT ++ +B@BFFFFFHHHHHJJJJIJJJJJIIJHHIJJJJJJIGIGGIGHIIIJJJIJICHHIHIIJHHHHFBDFFFFEEECCEDDDD?BDDDCDDDDDDDDDDDDC +@DRR015910.938 HWI-ST1182:184:D1KRDACXX:3:1101:10307:2948/1 +GGGTGAGCGAACGCAAACGCAGCACATGCAACTTGAAGTATGACGAGTATATTTACAGCATGTTCCAGCCGATCAGCATATTCCACCACCACACGCCGAG ++ +@BCDDFFFHHHHHJJJJJJJJJJJJJJJJIJJJJJJJJGHJJJJIJJEHHHHHHHHFFFFFEEEEEEEDDDDDDDCDDDDDEEEEDDDDDDDDDDDDDDD +@DRR015910.939 HWI-ST1182:184:D1KRDACXX:3:1101:10610:2771/1 +GAATACCCCCACAATTTATTCAGCTACAACACCAGAGAATAATCCGCCTCAGTTGGTTGCCAGCCTCGTCCCTGATGAACAGCGCATCAGCTTCTGGCCG ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJJJJJJJIJJJJJIJJIJIJJJJJIJHIJJJJJJJJHHHHFFFDDDEDDDDEDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.940 HWI-ST1182:184:D1KRDACXX:3:1101:10738:2924/1 +GATCACAATTGCCCGCTCCCGGCAGGTGAGATCGGTGAAATCTGTATTAAAGGCGTACCAGGGAAAACCATCTTCAAAGAGTATTTTCTCAACCCGAAAG ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJ?GFGDHIGIFHGIJIJJJGGIJIJIIIJHEDFFEEDDDDDDDBDDDDDDEDDDDD:>CDEEEDDDDDDDDDDDD +@DRR015910.941 HWI-ST1182:184:D1KRDACXX:3:1101:10568:2944/1 +GCTGCGCTCCTGACGCAATCGCGCCAGCGTTTTCTCCAGTCGCGCTTCATCAATTGGCTTCAGCAGATAATCAAAGGCATGTTCTTCAAAGGCTTTAATA ++ +CCCFFFFFHHHHHIIIJJIJGIJIJIGJJFGIJIIIIJIIHIJHFCDDDEECCDEDCCDDDCCDDDCDDDDDDDDACBDDDCEDEDDEDD@CDDDDDDDD +@DRR015910.942 HWI-ST1182:184:D1KRDACXX:3:1101:10532:2983/1 +ACCGGGTGGAAGGTGAGAGGTTAATGTCTTTCATTTGTGTACCTGATTGCGAACCAATTTAGCATTTGTTGGCTAGATGGTTTCGCAATGAACTGTTAAT ++ +CCCFFFDDHFHHHCGGHGHIFGIIJJFIIJJJJJJJIIIGIJIJJJJJJJJIGJJJHHHHHHFFFFFFFEEDDEDACDDDCDDDDDDDDDDDDDDDDDEE +@DRR015910.943 HWI-ST1182:184:D1KRDACXX:3:1101:10874:2848/1 +CCGTTATTCTGCCGGATTCGTATAACACCCGGTAACCACCGTAAGCATCGGCCTGAAGCACACCGCTGTAACCGGCCAGGTGATTTTGTGGATGGATACC ++ +CCCFFFFFGHHHHJJGIJIJIJIIJIJJIJIJGHJJIIJJJJIJJGIIJIHHHFFFFEEEEEDDDDDDDCDCDDDBBDDD@CCDEEDDDDDCDDDDDEDD +@DRR015910.944 HWI-ST1182:184:D1KRDACXX:3:1101:11148:2792/1 +GGTTAAGGCCGTCGCCGCATTGGTGCGCGCGAGTTTCAGATAACGCGCCCTATCGCCGCGAGGTTTGGTTTGAACATTAATCTTGCGTCCCGCCAGTTCT ++ +==?DDBA?F?:F?:;?@8999<87050)05@A:>B>AA@5)055095DDDCDDDDDD +@DRR015910.947 HWI-ST1182:184:D1KRDACXX:3:1101:11172:2896/1 +TTGTAGCACTTGATATAGACATCCATTTTTTCGTCGAAAACCGCTTGTTCATCGACCACCGGTTGCGCAGGTGTTTCAGGTTTAGCTTCTGCTTTTGCAA ++ +?@@DDFFFHHHHHJIJJJIJIJJJJIJJJJJJJIIJIJJJJJJJIJJIIJJJJFIGHFFFDD?BDDDDDDD8@:?FCH@GFCGIHIIE;C@1;@ACCA::@>:::9?@>?@391?AC:::99<9@C +@DRR015910.953 HWI-ST1182:184:D1KRDACXX:3:1101:11502:2961/1 +GATAAACAGGAACCAGTGGCGAAAGTGTGCTATGCACAAATGGTGAAACAGTTCCTGAGTCGTGACCCGTTCGAATGCGTGCTGTGTGGCGGCCGGATGG ++ +CCCFFFFFHHHHHJJJGIJJJJJIIGIHIJJJIJJJJJJIIIIFHIIJJJJHIJJJJJJHIJIHHHHFF=AEDDDDDDDDDDDDCDCDDDDDDDDD99?BB +@DRR015910.956 HWI-ST1182:184:D1KRDACXX:3:1101:12367:2914/1 +GCTCAAACATATCTACCAGAGATTGATAACGGTCAGGGTTGATCTCCGTCGGAACGTCCGCGGGATAACGGTTAAGCCAAACCTTCTTCAATTCTTCACC ++ +CCCFFFFFHHHHHJJJJJJIJIJJJJIIJJJJIIJJJJIIGJIJJIJIIIJJJIJJJHHFFDDDDDDDDDD?BDDCDDDDDDDDDDDDDEDEEDEEDDDD +@DRR015910.957 HWI-ST1182:184:D1KRDACXX:3:1101:12332:2971/1 +ATATGAGATTCAGTATTACGGCAAAACCTTCCGGATGAACGCTGCTCAGGTACTGCATGATAAATATATGATCTGGTGCGGTGAGCAGTTATGGTCTGCA ++ +CCCFFFFFHHHHHHIJJJJIJJJJJJJIJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJHHHHHHHFFFFFFFECEEDDDDDDDDDDDDEDDDDDDDD +@DRR015910.958 HWI-ST1182:184:D1KRDACXX:3:1101:12604:2892/1 +CCAGCTTCACGGATAGATTTCGGAATACCCAGTTCAGCTTTCAGCGTTTCCAGCCATGCCAGCAGTTTCTCGATCTTAGCAGCAGTACGGTCGCCCGGTG ++ +CCCFFFFFHHHHHJIJJJJJJJJIJJJJJJJJJJIJJJJJJJJJJJHIJIJJJJJJJJJJJJJJHHHHHHFFFFEBEEEEEDDDDDDDDDDDDDDDDDBB +@DRR015910.959 HWI-ST1182:184:D1KRDACXX:3:1101:12688:2901/1 +CTTGCTACCTCGAAAGCCTCCATCAAGGAGCAGTTGCCGGTACTCAAACGGGGTCATCTGTGGATTATGAGCTTGCTGTATCTGGCAACCTTCGGCTCCT ++ +CCCFFFFFHHHHHJJJFJJJJJIJJJJJGIJIIJIJJJJJHJIIIIJJIJIJJHHFHHHFEFFEFEEEECECDDDBDDDDEEEEDDDDDDDDDDDDDDDD +@DRR015910.960 HWI-ST1182:184:D1KRDACXX:3:1101:12547:2972/1 +GCACTTTTCAGCAACGCTGCAGCGGTCGTGACGTCCTGATCGCTCCACAGCTTCCGTCCGGCGAGTTTCACCAGAAAATCGGCCTGAGCCAGCAGCCAGG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJFHIIJIIJJJJJJJJJJJJJJIHHHHHFFFFFEDDDDDDD>BDDEDDDD@?CDDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.961 HWI-ST1182:184:D1KRDACXX:3:1101:12726:2987/1 +GACCAGCTGTGGGTGGCTGATTTTACTTACGTCAGCACATGGCAGGGCTTCGTCTATGTGGCGTTCATCATTGATGTGTTTGCCGGATACATCGTGGGGT ++ +CCCFFFFFHHHHHFHIJJJJJJJJJJJJJJJHIJJJJJJJIJIJJJJIIIJJGIIGHHHHHFFDDDDEEDDEDDEACCDDDDDDDDDDDDDEDDDDDDD< +@DRR015910.962 HWI-ST1182:184:D1KRDACXX:3:1101:12766:2830/1 +GTATCATCGAAATGACATTAACGACGCATACTCTTTGACAACATCATCTGCCACTTCTGCTCGCGGTTAAGTTCCGTGAGCGGAACGGCAGGAATACGCG ++ +CBCFFFFFHHHHHJJJIJJJJHGIIJJIJJJJIIJJIIIIIJIJJJJJJIHIJJJJJJIJJIGHFDDDDDDDEED@DBBDDDDDDDDDDDDD?A:AC@@@ +@DRR015910.963 HWI-ST1182:184:D1KRDACXX:3:1101:13000:2833/1 +ACCGAAGGTGAAGAACTGCGCACCGTGGCAACCGACGGCCACCGTCTGGCGGTCTGTTCAATGCCAATTGGTCAATCTTTGCCAAGCCATTCGGTGATCG ++ +CCCFFFFFFHHHHJJJJJJJJJJJJJJIIJHGHHIJJJHHFFFFDDEDDDDDBDDDDDDEEEDDDDDDDDDDDDDCCCDDDDDDDDDDDDDEEDDDDDED +@DRR015910.964 HWI-ST1182:184:D1KRDACXX:3:1101:12954:2902/1 +CACCAGTGGCGCTCTCCGCCAACGATCCGGCTAATGTGTGGGGAAATCTTCTGCCCTGGCCTGCACATCCAGCAACGCTGGTTCCAACGCGTCGGGCGGG ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJJJJJJJJIIHHIJJIJHGHHHHFFFFFEEDEDDDDDDDDDD@CDDDDDDDDDCDDDEDDDDDDDDDDDDDD +@DRR015910.965 HWI-ST1182:184:D1KRDACXX:3:1101:12919:2952/1 +GTTTTCAGGCCGACTTTCGCCATCATCGACAGGGCTTTTTCCCGACGCTGTTCTTTGCTTAAGCTGGTGTTGATCAGCAGCGGCTCTTCAAGAATTTGCC ++ +CB@FFFFFHHHHFJJJIJJJJJIFJAHGIIJJJJHIJIJJIJIIJJJHGFFFFEDEDEEEDDDDDDDCDDDDCDDCCDDDDDDCDDDDD@CCC?@CDDDD +@DRR015910.966 HWI-ST1182:184:D1KRDACXX:3:1101:13166:2847/1 +GTCATAAACTCAGTTGCCATATCCACCGGAATGGTCAGTTTCGCATCCAGAGATTTAACCGAACGATCTACTTCCTGCGCCAGCGTTTGCGGCGCTTCTT ++ +CCCFFFFFHHHHHIIJJJJJJJJJJJJJJHJJJJHIJJJJJJJJJJJJIJJJJJJJJJJJJJHHFFFDEEEEEDDDDDDDDDDBDBDDDDBDDDDDDDDD +@DRR015910.967 HWI-ST1182:184:D1KRDACXX:3:1101:13176:2890/1 +AGACCATTCCGGTTTAAAGCTGTTAGGGCTGATTAACGTTTTCACGTCACCATCCTCCAACCAGGCAAGTTTAATGTTGGTAGAACCCTGTCTCTTATAC ++ +CCBFFFFFHHHHHIJJJIHIJJIGIJJJIJIIJIJIHHIJIJFGIIIJGIIIJJHHGIGIJIIHHHHFFFFFFEECCCCDBDDDDDBDDCCDDDDCDCDC +@DRR015910.968 HWI-ST1182:184:D1KRDACXX:3:1101:13339:2752/1 +CTACAAAGCAAATGGCGATGGCCATGGTTTATCTGTAACTTACACTATTGACGGTTTCTCATTTACTGGTGCTTACGCAAACTCTGACCGTACTGATTTC ++ +CCCFFFFFHHHHHJIJJIJIIJJJJJJGHJJJIJIIJJIJJJJJJJJJJJJJJJAHIJJJIJJJJJJHHFHHFFFFFDDDDDDDDCCDDDDDDDDDDDED +@DRR015910.969 HWI-ST1182:184:D1KRDACXX:3:1101:13326:2796/1 +CTTCAGAATCTTCTTCCAGCTCGTCCCACATTGCACTAATGGCATCGCGGGTTAGCGGTGCCATGGTGCGCCAGAAAGGCGTGGTTGCATGGGCCTCCAC ++ +CCCFFFFFHHHHHJJJJJJJJIIGIJJJJIJJJJJJIJIJJJJIJJJJJJJEHHFFFDCDDDDDDDDDDBDDDDDCDDDDDDDDBDDDDEDDDDDDDDDD +@DRR015910.970 HWI-ST1182:184:D1KRDACXX:3:1101:13301:2825/1 +AATTATTGAAAGCGATATTCACAAAGACTGGAATCTTAGTATGGTAGCCAGTTGTTTATGTCTTAGCCCAAGTCTGTTAAAGAAAAAGTTGAAAAGCGAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIIJJJJJJIJJIJGIIIJHIGIIIIHIJHIJJJJJJJJJJIJIHIJHHHCHFHGFDFEFEEDEDDDDDDDDDDD +@DRR015910.971 HWI-ST1182:184:D1KRDACXX:3:1101:13719:2782/1 +ATCTATGACACCATGCAGTTTATCAAGCCTGATGTCAGCACCATCTGTATGGGCCAGGCGGCCTCGATGGGCGCTTTCTTGCTGACCGCAGGGGCAAAAG ++ +CCCFFFFFHGHHAHIIJJIIIIIJIJJJJJIJIJJJJJIIIJJJJJJIIJJJJJJJJJJIJHFFFDDEEBD?BDD=BDDDDDDDDDDDDDBBDDDDDDCD +@DRR015910.972 HWI-ST1182:184:D1KRDACXX:3:1101:13723:2836/1 +AATTTATACGAGGCTTGCTTCGCGGCAATGCCCATTTGTTCCAGCATCAGCCTGCTCCTTAACGGGTAATCATGTCATCACGGTGAACGGCAACCGGGCC ++ +BCCFFFFFHHHHGJIJJJJJIJIJJJJJJJJJJJIJJIIJIJJJJIJJHHHHHFFFFFEEEEEDDD?BDDEDDDE@DEDDDDDBDDDDDDDDDDDDDDDD +@DRR015910.973 HWI-ST1182:184:D1KRDACXX:3:1101:13719:2903/1 +GCCTGATTTTGAGCAGGACGAACATACCGGCGCAATAATCAAACAGGATTTGCCGCAGATCCCAACGATTATCGATCTCTATGGTACTTACGAGTACAAC ++ +@CCFFFFFGHHHHJJJJHGIJJJJJIGGJGIDGIIIIIGAAGIGHHGBDDFEFEDDDDDDDDDDDDDDDBBDD@BAAACDECDC4@CDCDDDBD?BCCDD +@DRR015910.974 HWI-ST1182:184:D1KRDACXX:3:1101:13639:2913/1 +TGCCGATACTGTACAAATTTCTCGCGCCAGGGAAGCCCGACGCGAACTGGAAGAGATTTTCCAGCGTGAACTGCAACAAGAACGACGCCAGCTGGACGGC ++ +@@@DFFAAFHDHGIJJGGIJEFHIGAGGIIIIGIBGIIJJGBHFCDDDDDDDDDDDDCCCEC@CCBCDCC@BBDCCDDDDDDBBDDDA?ADDDD +@DRR015910.975 HWI-ST1182:184:D1KRDACXX:3:1101:13726:2948/1 +GCGTAAACCGTCAGTTCGTGGCAGAACGACCTGACCAGCTGTGGGTGGCTGATTTTACTTACGTCAGCACATGGCAGGGCTTCGTCTATGTGGCGTTCAT ++ +CCCFFFFFHHHHHJIJJJGIJJJJJJIIJJJJJJJIGIIJJJGIJAHIHGHHFFFFFFFEEEDEBDDDDBDDDDDCDDDDDDDDDDDDEEDDDDBBBBDE +@DRR015910.976 HWI-ST1182:184:D1KRDACXX:3:1101:13540:2988/1 +GTGAAAAAAATGGGCGGCACGCCGATCCTCGGTATCGTGCTTGGCGTGACACTGGTTTCTCCACAGCTGATGAACGCTTATCTGCTCGGGCAGCAGCTGC ++ +C@@FFFFFHHHHHJDIIIIGIJJIIGHDDFFDCDDDDCDDDDCDDDDDBDDDDDDCDDDDDDDDDDDDDDDDEDDBDDDDDDCEDDD?BDDDDDDDDDDD +@DRR015910.977 HWI-ST1182:184:D1KRDACXX:3:1101:13514:2995/1 +AAACAGTTCCTGAGTCGTGACCCGTTCGAATGCGTGCTGTGTGGCGGCCGGATGGTATACCGCCGGGCCATTGCGGGGCTGAATGTGGAGGGCTGAAGAA ++ +CCCFFFFFHHHHHJHIJJJJJJJJJJJJJJJJJIJJJJJGIHIJIJJHHDDBBDD@DDDDDDDDDDDBDDCDCDD>BDDDD?CCD@CDCDDDBBBADDDD +@DRR015910.978 HWI-ST1182:184:D1KRDACXX:3:1101:13862:2759/1 +GGTTCGAGTTCGTAGTCGCTCTGAACTTGCGTTTCTGCTTACAGCGTAGCCTTAGCTCCTTACGAAGACGTGCCAGTCGGTCACGACCAACGATGATGCC ++ +BBBDFFFFHHHHHJIHJJJJJJIIJJJJIJJJJJGJIIJJIJJJJIIJJJJJJJJJJHHHHHFFFFDDEDDDDDDCDCDDDDDDDDDDDDDDDDDDEDDD +@DRR015910.979 HWI-ST1182:184:D1KRDACXX:3:1101:13798:2790/1 +CTGTTGAACTGATGGGTAAAATTGGCACATCACCTACTGATATTCAGAATCTTTGTAAACGTCTCAGGGCAAAGTCATCGCAGGTCAGTATCGTTTATGA ++ +CCCFFFFFHGHDHIJJDGHIIIJGGIIGIIIIJJJIIJJEIIII>GIIIIJJIJJIJJIJFGIIIIIIJIJJIJGCEHHHHFFD>CEECDFEDCBDDDDC +@DRR015910.980 HWI-ST1182:184:D1KRDACXX:3:1101:13897:2821/1 +AAATTGTTGCGGTAATGGGTAATGCCAGCGTTGCCAGCCGTGATTTAAAAATTGAGCAATCTCCGGAACTGAGCGCCAAAGTGGTAGAAAAACTGAATCA ++ +CCCFFFFFHHHHHIJJJIJIIJJJJJJJJJJJJJIJJJJJIGIJIJIIJJJJJJIJJHHHHHHFFFDDDDDDDDDBDDDDD@CDACDDDDDDBDDDDDDD +@DRR015910.981 HWI-ST1182:184:D1KRDACXX:3:1101:13766:2840/1 +CCTCCTGAGGAGGTGGCTTTTCAGAATGCCCCCTATAAGGGCTGAGGGATCCCTGAGGTAGCCTGAGTTTAACGGACACTCCTTCCCAGGAGCGGTTATT ++ +@@@DDDDA::<;D:A;EBFFFIHHFIEFFCEFI@DEECFBFFFFE<=F@);==7=@7@)7;?CAEB@?BBDCABB@B>?5?BBBBABB>08?@B@05<@@ +@DRR015910.982 HWI-ST1182:184:D1KRDACXX:3:1101:13824:2911/1 +GGGCAAGCGGCGGCAATGGCTGCGGCCTCGCTACGCCAGCAAGGGTTCACCGGTGAGCTGCATCTGTTTTCCGATGAGCAACATCTTCCTTATGAACGCC ++ +CCCFFFFFGHHGGJJIJJJJIIIIJHHFFFDDDDDBDDDDDDDDD8ABDDDDD7@BDDDDCCCDDD@CDDCDDDDBDDCCDDDDDDDEDDDDDDDECB>D +@DRR015910.983 HWI-ST1182:184:D1KRDACXX:3:1101:13900:2931/1 +GGCCCATATTGGTAAGCCCGAAGAACTGGATACTTCGGCACGTAATGCCGGGGCTCTAACCCGCCGCCGCGAAATTCGTGATGCTGCAACTCTGCTACGT ++ +@@CFFFFFHHHHHJJJJJJJJJJJJJJJIJJJJJJJJJIIJJFHIJJJJJJJFDDDEDDDBBDDDDDDDDDDDDDCCDCDDDDDDDDDDDDDDDDDDDDD +@DRR015910.984 HWI-ST1182:184:D1KRDACXX:3:1101:14226:2779/1 +GACATATGACAAATCCCGCTATTCCGGTAGCGGTAGCCTAATCAGAATGGCGTTGCTGGTAACGGCAAGGTCATAAGCTCTGATGACAACGTACTCTCCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJHJJJJJGHIJJJIIIIIJJJJIJJJHHHHHFFFFFEDDDDDDD@CDDEDDDDDDDDEDEDDDDDDDDDDDDDD +@DRR015910.985 HWI-ST1182:184:D1KRDACXX:3:1101:14127:2843/1 +GTGCAGCAACTTCTGTTTTGCGCTGACTGGCATCTTCGCTCATATACCATGTTCCCTGCCCTACGGCTGGCAGTGAGACATCGCCACTAAATTGAATCAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJJJJJJJJJHHHFFDDDDDDDCDDDDDDDDDDDD9CDDEDDDDDCD +@DRR015910.986 HWI-ST1182:184:D1KRDACXX:3:1101:14012:2864/1 +CTATCAGCGCAATTTGGCGCTTTATACCTGCTGGATACGGGAATATTTTCCCTGCGAAATCTGTATTACGCGCCCGAAAGGCGGATTTTTACTGTGGATA ++ +CCCFFFFFHHHHHJJJJIJJJJJJJJJIJIJJJJJJJJJJJJJJJJJJJGIJJJJHHHFFFFEEFEFFEDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDE +@DRR015910.987 HWI-ST1182:184:D1KRDACXX:3:1101:14064:2865/1 +GATGAAAATAACAAGATACAGAATCGGTATTGCATACATTATTTTCTGTAACCCCATCATCTTCTCCATCAGAGAACTAATAGCAGGGCTAAACATTGCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJHJJJJJJJJJJJJJJJJJJJIJIIJJJJJJJJJJJJJJJJJJIIJHJHCHHHHHHFFFFFDDEDDDDDDDDDD +@DRR015910.988 HWI-ST1182:184:D1KRDACXX:3:1101:14104:2970/1 +GTCATACAGTGACTGCATCAGTGGCGCGGCTCTGGCTTTTCTTGCCGCCAGACGCTGTTCTGCTGAACAGCCCCGGACCTCTGCCTCGATGGCATACAGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJGIJJJJJJJJJJJJJIJIJHHDF>BCDDDDEDDDDDDDDABBDDDDDDDDDDDDDDDDDDDDDDDDDDDE +@DRR015910.989 HWI-ST1182:184:D1KRDACXX:3:1101:14498:2799/1 +GTCCTTGTCGGATACCTCCCTGGACTGGCCATGCGCCGCATAGCCGACTTACACGCCGGTGAAGCTAAAACTGATGCTCGTGACGCTGCCATCATTGCCG ++ +B@CDFFFFHHHHHJJJJJJJJIJJJIJJJJIJJFIIJGJJJJJJJGIHGFFFFFFDDDDBDDDDDDDDDDDDDDD@CCDB@DDDDDDDDDDDDDDECDDB +@DRR015910.990 HWI-ST1182:184:D1KRDACXX:3:1101:14379:2925/1 +ATGTGACCGTGACCGGCAGGCATATCAATAACACCCGTATATATCAGCGTATTATCCAGGGTCGTTCGGTTATAAATTTCAGCACCGTTTTTCTTCACTA ++ +@@CDFFFFHHHHHJJJJJJJJJJJJJIJIIJEFGIJIHHGHGGGGIIIGEHHHGHHFFFFFCEDBDDDDDDDDDEDCDDDEDDDDDDBDDDDDDDDEDDC +@DRR015910.991 HWI-ST1182:184:D1KRDACXX:3:1101:14264:2967/1 +GCAAAGGCGAGAGTAAATCCCCCACTTTCACGGCGAAGTCACTCTTCACTTCGGCGATCATTTTTATCGCGCCGCCAGCATCGCAGAGCATAAGTACATG ++ +CCCFFEFFHHHHHFHIJJJJJJJJIJJJIJIHIIIIJJEGHHHGHHFFFFFFDDDDDDDDDEEEDDDDBDDBDDD@DDDDDDDDBDDDDDDDCD@DDDED +@DRR015910.992 HWI-ST1182:184:D1KRDACXX:3:1101:14425:2974/1 +ATATAACGTCGATATTCAAATTAAGTAAATGTCAACCGACGGGGACTCTCCCCGTCATAAACGTTGACGCCCCACTCCTCTCTGTCGCTCAAGAGGTTAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJHHHJJJIIIJJIHIJJJJIGIHHHHHFFFDDDDEDDDDBDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDCBDD +@DRR015910.993 HWI-ST1182:184:D1KRDACXX:3:1101:14581:2870/1 +CAGGAGGGATGGTTGGACCTCGCTGGCATCAAAGATGTTTATACGTGCGAAATTGTCGGCTACGCCATGGGAGAGCGCATGACAAAAGAGCTGACAGGTA ++ +@@@DDDADFHHHDGE?DFGIIGIIIEHIIIIIIIIIIIIIIIIIGFGIIIIIHFHHFEECCCC?BBBBCABCBBBABBBBBCCCCCBCBCCCCCCCCBCC +@DRR015910.994 HWI-ST1182:184:D1KRDACXX:3:1101:14752:2761/1 +AGCATGATGTGCGCACATGGCCGTAATGGTCTGCGACTGTTCGCCAAAAGGCAATTCAATTAATTCTCCGCACTCCAACTCTTTTGCCACCGCAAAGCGC ++ +CCCFFFFFHHHHHJJJJJJJJJJHIJJJJGHIJJJJIJJJJIJJJJJJJJHHHHFFFFFFEEEEEEEEDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.995 HWI-ST1182:184:D1KRDACXX:3:1101:14922:2941/1 +ATACAGAAGTGACATCCATTCCAATAAAATCTTTATTTATACCTCTTATCCGAATTTCACTACCATAAAGATTATTAATTATTACTCTATATTTAACATT ++ +CCCFFFFFHFHHHJJJJJJJJJJJJJJJJIIJJJIJJJIGIJJJJJJJIJJJJJJJJJJJJJJIJJJJJJJJJJJHIJJJJJHHHHHHHFFFFFFFFEEE +@DRR015910.996 HWI-ST1182:184:D1KRDACXX:3:1101:14931:2959/1 +CTGATCCTGCACGCTGACCATGAACAGAACGCCTCTACCTCCACCGTGCGTACCGCTGGCTCTTCGGGTGCGAACCCGTTTGCCTGTATCGCAGCAGGTA ++ +@CCFFFFFHHHHHJJJIJIIJJJJJJIJEHEHIIJGIJJIJJJJJIJIJIHIIIHHFFDDEEEDDD>B?BDDDDDBDDDDDBCDDDCDEEBDDDDDDD<@ +@DRR015910.997 HWI-ST1182:184:D1KRDACXX:3:1101:14825:2963/1 +GCTTAAGACGTGGTGTTCTGATTTGCCATCCTTCCCCGCTGGCTGGCTTTTTCAGCATTCCGGCTTCGTGAAGGGCTCTTGCTACGGCATCCTTGTTAAA ++ +CCCFFFFFHHHHHHIIJIJJJJJJJJJJJJJJJJJJJIJIJJIJJJIGIJJJJJIJJJHHHHHFFDEDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDD +@DRR015910.998 HWI-ST1182:184:D1KRDACXX:3:1101:14896:2993/1 +ATCATGACGCGATTAAAAAAACCGGAAACATAGTGATGATATCATTATTACCACTCGGGGTAAAATACGGCACCTTGGTTGGCCCCAATGTTTCTGAGGT ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJJJGHIJJJJJJJJJJHHHHHHHFFFFDDD@DDDDEDDDDDDDDDACDDDDDDDDDDDDDDEEDDDEDDD +@DRR015910.999 HWI-ST1182:184:D1KRDACXX:3:1101:15223:2789/1 +TTGGAGAGATCCGCATATTTCACCGCACCAATACCAACCGCGTTAGCCAGTTTTTCCAGCTCGTCGGCTGGCATATCCGGGTTCTTTTCTGCCACCAGAC ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJIJIJJJJJHJJJJJIHEHHHFFFFFFEEDDDDDDDDDDCDDCCDDDD>BDDDDDDDCDDDDDDDDD +@DRR015910.1000 HWI-ST1182:184:D1KRDACXX:3:1101:15012:2865/1 +ACGCAATGTATCGCCTACCCGCACGCCAGCGTCAGCCAGTTGTTTTACGCTGGTGGCTTCAATGGTCTGCGCGCCTTTCATCCATGAGAGAGTGAATTTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIIJJHJJJJJJJHIIIJJJHHHHFFDEEDEDDDDDEDDCDDDDDDDDDBBDDDEEDDDDDDDDDD>CDDEEDD diff --git a/tests/data/ecoli_r2.1K.fastq b/tests/data/ecoli_r2.1K.fastq new file mode 100644 index 00000000..307ca3db --- /dev/null +++ b/tests/data/ecoli_r2.1K.fastq @@ -0,0 +1,4000 @@ +@DRR015910.1 HWI-ST1182:184:D1KRDACXX:3:1101:2133:1984/2 +CATAACGCCTGCTCCAGTGCATCCAGCACGAATGTCGTTTCCATGGACGATGAGACCCGCCACCCCACGATGTATCCGGCAAACACATCAATGATGAACG ++ +CCCFFFFFHHHHHJJJJHJJJJJJJJJJJJJJJJGIJIJJJIIJJJJJJJGHIJJJJJHHFFDEDDDDDDDDDEFFDDDDDDDDDDDDDDDDDDDDEDCD +@DRR015910.2 HWI-ST1182:184:D1KRDACXX:3:1101:2480:1979/2 +GGAACCCAGGTTCGGCGCATAGCCACCTTCGTCACCAACAGCAGTGTTCATGCCTTTCGCTTTCAGAACTTTTGCCAGGTGATGGAAAACTTCAGAACCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJJJJIJJJJEIIJCEDHFHHHHHHFFFFDDDDDDDDDDDDDDDDDDDDCDDDCDDDDDDDDDDDDDDDD +@DRR015910.3 HWI-ST1182:184:D1KRDACXX:3:1101:2715:1998/2 +CGGGAACACATGTCCCAGCGCGATATAAGAGGGGCGTGCTGCCAGCGCGACGTCGATTTCCATATCGTCATGTGTCGAAACGCCCAGCCGCAGGCCTGCC ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJIJJJJJJJJIEHHFFFFEEDDDDDBBDDDDDDDDEEEDDDDDDDDDEDEDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.4 HWI-ST1182:184:D1KRDACXX:3:1101:4247:1972/2 +GAAGGGCAGGTGCGTGCGCGTTTGACCTTTGATGGCGATCATCTGGCGACCATCGTCAATATGGAGAACAACCGTCAGTTCGGCTTCTTCCGTCTTGATC ++ +CCCFFFFFHHFFFIFHIGIJHIJJJJIJJJIIIJJJIIJJIIJJIJHHFFBDDDDDDDDEEDEDDDDDDDDDDDBDDDCDDDDDDDCCDDDDCBDDCCDC +@DRR015910.5 HWI-ST1182:184:D1KRDACXX:3:1101:4660:1993/2 +GGATGGGGAGTAAGCTTAGTCAGCCGTTGTCTCCGGGTGTCGCGTGCGCAGTTGCACGTCATTCTCAGACGAACCGATGACTGGAAAGATGGTCGCCGCA ++ +BCBFFFFFHHFHHJJJJJJIJJJJJJIIJIIJJJJJJ?FFHGIJIHHFFDADEDDDDDDDDDEEEDDDDDDDDDDDDDDDDDDDCDDDDDDDCDDDDDDD +@DRR015910.6 HWI-ST1182:184:D1KRDACXX:3:1101:5948:1979/2 +CCTTTGTCCGGCACCAGTTACGGTATTGCCGGGTTGCTGATGCTGGCAGTCAGCAACCGGCTGTACCGGGCGGAAGACAGAGCGGAACGTCTGGCGCTGG ++ +CCCFFFFFHHHGFIJGIGGIJJJEGGIJJJJIJ??BGGGFGIIGIJIEGGDGHGHHHHFDDDDDDDDDDDDDDDDDDDDDDDCDDBBDDABCDDDDBDDD +@DRR015910.7 HWI-ST1182:184:D1KRDACXX:3:1101:7172:1974/2 +GAGGTGTACTGGCAATAGCGGACACCACCATTTGTTCTTTTTCTAAGCAGTCATCTGATAATATTTTATCCTGAAGGCTGCCGGGGAGATATTCCCCAGA ++ +BCCFDDDFHHHHHIJJJJJJJJJJJJJJIIJJJJIJGIJJJJIJJJJJJJJHJJIJJJJJJJIJJJHHHHHHHFFFFFEEDEDDDDBDDDDDEEEDDDDD +@DRR015910.8 HWI-ST1182:184:D1KRDACXX:3:1101:7048:1989/2 +GTCATTACTGCCCGTAATATGCCTTCGCGCCATGCTTACGCAGATAGTGTTTATCCAGCAGCGTTTGCTGCATATCCGGTAACTGCGGCGCTAACTGACG ++ +@@CFFFFFHHHHHJFHIJJJJIJIJJIJJJJIJJJIIIJJJJJJJJJFHICFGIIJJJJHHHFDFDDEDDDDCDDDEBDBDDDEDDDDDDDDBDDDDCDD +@DRR015910.9 HWI-ST1182:184:D1KRDACXX:3:1101:7445:1986/2 +GATTGAGCCCCAGAAAAGCGGTCACTTCCTTAGCTTTTGTGAACTCTTTACTGGCCATGAAGGACAGTATCAGGCTGGCTGAAACAGTGCCAATACCCGG ++ +CCCFFFDFHHHHHJJJIJJJJIIJJJJIJJJEIIIJJJIHGIJIJJJJJIHHIJIJJJJJJJJJJHHHHHGFDFFFEDDEDDDDDDDDDDDDDDDDDDDD +@DRR015910.10 HWI-ST1182:184:D1KRDACXX:3:1101:7336:1995/2 +GGATATCAATGGCGACCACTTCATGATCTTCATTTTCCTGCAACGAAACTAAATCAGTTTTTATTTTTTGCTGCTTAAACCAGTCGAGCATTGATACCGT ++ +CCCFFFFFHHHHGJJJJIJJJJJJJJIIJJIIIIJJJJJJJJJJJIJIJJIIJIGIHIJJJJJJHHHHFDEEEEEDDDDDDDDDDDDDDDDDDDEEDCDD +@DRR015910.11 HWI-ST1182:184:D1KRDACXX:3:1101:7522:2000/2 +ATTTAATATTAAATCTTTGACTCTCTTGATTGTATTGTTACCATTGATAGTTAATGCTAATAATATTGACTCTCATTTATTAGAACAAAATGACATAGCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJHJJJIIJJJJJJJJJJJJIJJIJIIJJJJJJGGIEFCHH>DFHGIICHIGFHEGAFHHHJJCHCFEACDFFD +@DRR015910.12 HWI-ST1182:184:D1KRDACXX:3:1101:7983:1988/2 +CCCATAAAGGTGGCAGGATCGGCACCCAGCGCCGCGCCAAGACGCGACATTTCAGCCAGCCCACGGGTGATCAGCGCCGTACGCGCATTCGCACCAAAAC ++ +CCCFFFFFHHDHGJIJJJJIJJJJJJJJJIJJJJIJIAHGFFFFDDDDDDCDEEDDDDDDDDDDDDD8@DDEDDDDDDDBDDDDDDDDDDEDDDDDDDDD +@DRR015910.13 HWI-ST1182:184:D1KRDACXX:3:1101:8406:1980/2 +GGAGGAGTTACCCCATGCCGCACGGGCAGCACTGGATGCCTTGTCAGAGTCAAAGTCGACGATGTTCTGTGTGATGGTGATATAGGCACCGGTATGACGG ++ +@FHGGEHCDHH>=C?BDB>BB?ADDC;>C?@;>CCC@C@@>CCCCBBBB5>@CCCB< +@DRR015910.14 HWI-ST1182:184:D1KRDACXX:3:1101:9103:1980/2 +GATACACATTGTGTGTAGCACGGGTGAGCGCAACATACAGCGCGTTGGTAAAAAATTTATAGATTTCCGCTGAACGATCCTGCCTGTCCCGCGGACGGGA ++ +CCCFFFFFHHHHHIJJJIJJJJJJFHIIIJJJJJJJJFJJJJJJJHHFBECEEDDDDDDEEDDEEDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.15 HWI-ST1182:184:D1KRDACXX:3:1101:9337:1978/2 +ATTTCAGTCAGACGGTCGCCGATGATATCCAGACCAACAAAAATCAGCCCTTTTTCTTTCAGCGTCGGCCCGATCTGACGGGCGATTTTCCAGTCACTTT ++ +CCCFFFFEFHHHHJJHIJJJJJJJIJIJJJIJIJJJJIJJJJJJIJJJIJEHHHHHHFFFFFFDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDD +@DRR015910.16 HWI-ST1182:184:D1KRDACXX:3:1101:9932:1996/2 +TGCCTGCCTCACCGCCCGGCCCGGAAGGCGAACCACAGCCAGGAAACACACCCGTATCTTCCCGCCGCAGGGCAGCGTTGCTGTTCCACCGCCGACGGCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIIJJJJJJHHGFFFFEEDDDDDDDDBDDDBDDDEEEDDDDDDDDDDDDBDDDBDDDDDDDDDDDDDDDDBDDDBB +@DRR015910.17 HWI-ST1182:184:D1KRDACXX:3:1101:10379:1983/2 +CTACTTAACCAGGCCGTGCCGGCACGTTAACCGGGCTGCATCCGATGCAAGTGTGTCGCTGTCGCCGGCCTCCTCACCCGGTCACGTTTCGTCGTTCCTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJIHHHFFFEEEEEEEDDDDDDDDBDDDDBBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.18 HWI-ST1182:184:D1KRDACXX:3:1101:11440:1995/2 +CCATTATGCACCTGCTCTACTTCCGCTTCTTCCACAAACTGATGCGTGATGCAGGCATGGTGAACTCTGACGAACCAGCGAAACAGTTGCTGTGTCAGGG ++ +CCCFFFFFHHHHGJJJIJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIIIJHIJJJJJJJJDHJJJJHHHHHFFFDDDDDDDDDDDDCDDDDDDDDDDDDD +@DRR015910.19 HWI-ST1182:184:D1KRDACXX:3:1101:12166:1997/2 +GAGTCACCGGAGTGCACGCCCGCCTGCTCAATGTGCTCCATGATGCCGCCAATCAGCACCATTTCGCCGTCGCAGATGGCATCCACGTCAACTTCTACCG ++ +BCCDFFFFHHHHHIJJJIJJJJJJJJJJJJJJJIJJIJIIJJJAHIIJJJGHHHFFFFFDEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.20 HWI-ST1182:184:D1KRDACXX:3:1101:12538:1975/2 +CTTCTCAACCCGGTACGCACCAGAAAATCATTGATATGGCCATGAATGGCGTTGGATGCCGGGCAACTGCCCGCATTATGGGCGTTGGCCTCAACACGAT ++ +CCCFFFFFHHHHGIJJJJJJJJJJJJIIJJJJJJJJIIJJJIJJJJJJJJFHHHHHHHFFFDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.21 HWI-ST1182:184:D1KRDACXX:3:1101:15615:1997/2 +GGCTTAAGATGCCGCTTTTACCGTTTAATTGCTGCAACTGACTGGTAATAGTTAACAGGTCACTTAATACCGCTGGGCGACGATAGTTAATATTGATATT ++ +CCCFFFFFHHHHHJJJJJJJJIJHIJJJJJJIJJJJJJJJJJJJIIJJJJFHIIJJJJJHIJJJJJIJJJJHHFFDDDDBDDDDDDDEECDEEECCDDDE +@DRR015910.22 HWI-ST1182:184:D1KRDACXX:3:1101:15595:1997/2 +GGCGATGATCAGGAAGTGGGTGAGCACCGCGAAATCACCGCAGAAGAGACAGCGGAACTGCTGAAAAACTCCCATTCAGTGATCATTACTCCGGGGTACG ++ +@CCFDFFFHHHFHHIJHIJIGHGIIJJJJJJJJJJJIJJIIIIHGHHHHFCDFDDDDDDDDDDDDDDDDDDDDDDDEEDDCCEEEDEEDDDDDBDD>BDD +@DRR015910.23 HWI-ST1182:184:D1KRDACXX:3:1101:19259:1979/2 +ATCGATGACCGCCCGATTAGCCCAACCGCCGTAGTTTTTCACCAGCCCATATGGCATTTCGTAATGGGATAACGTTACCAGCGGCTTGATCCCCGCCTGC ++ +?@?D?DDEHFFFFGIDHIICHIIEEHGDGAFCAC9?@CD?CDCCBDDDBDDC809@BB-+(+>?B.9<9<8 +@DRR015910.24 HWI-ST1182:184:D1KRDACXX:3:1101:19733:1998/2 +GCGGAAAAACGCGATCCACTCGTGACCACTTCACGCGGCACAGGCGAGTTAATCCTGCAGGCGCTGGAGAGCGGTGCGACAAACATTATTATCGGCATTG ++ +CCCFFFFFHGHHHJJJJIJIJJIJIJJIJIJIIJIJJIGEEFFFDDDDBBCDECDDDDDDDDDDDDDDDDDDDDC +@DRR015910.37 HWI-ST1182:184:D1KRDACXX:3:1101:2197:2169/2 +GTTTTATCTGGGATATGGGCCGAATAGCAATGTCTGTCGCACAACAACCACAATGTCACAAATAAAAAATGAGAATAACCCTGTCTCTTATACACATCTG ++ +CBCFFFFFHHHHHIIJJJJJJJJIIJJJJJJIJIJJJJIIJIJJIIJIIJFHIIJJJJHHHHHHFFFFDEDDDACCCDDDDDDDDDDDDDDDCEDDDDDD +@DRR015910.38 HWI-ST1182:184:D1KRDACXX:3:1101:2275:2061/2 +GTTTATAACGATGAAAATTTAGAAAGGGCATTGTGATCTACAATTGGAAGAAACACCTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGTG ++ +CBCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJJIIIJJJIHJIJJJJIIJHIJJJJJJJJJJJJJJJJJJJJJHHHHHFFFDDEDDDDDDDDDDBDDDAD +@DRR015910.39 HWI-ST1182:184:D1KRDACXX:3:1101:2416:2139/2 +TATTTCTATTCCGGAACTGGAAACCTGGGTCGAAACCTGGGCGTTCTCAGAAACGATTCATTCCCGTTCCTATACTCATATCATTCGTAATATCGTTAAC ++ +C@CFFFFFHFHHDGIIJJJGIJJJJJIJICHEHJJJGIJJJJJHJIJIJIHGIHHHFFFFFFCEEDDDCDDDDDCDDCDDFCEECDDCDDDDCDBCBD?> +@DRR015910.40 HWI-ST1182:184:D1KRDACXX:3:1101:2470:2140/2 +ATCCACTCGTCAGAGGTGTCCACCATTTTTTCCAAATCGGCGTTTGTCCGCACTTGTTCGGGCAGATAGCTGCCAGTACCAATAATCTTCGTATACATGT ++ +CCCFFFFFHHHHHJJJFHIIJJJJJIJJJJIJGIJDGGIIGGIIIGIIJIHEFFFDEEEDDDDDDDDDDDDDDDDD:ACDDDDDCDDDDEDDCCDDEEC: +@DRR015910.41 HWI-ST1182:184:D1KRDACXX:3:1101:2291:2190/2 +ATGTTCAGCCAGCCTGCCGGCCAGTTACTGGCAGGTGCGCGCATGGATGTGTATGTCATCCGTGACGGGGAGGGCAACTGATGGCCAGTATCAATACCAT ++ +BCCFFFFFHHGHHJJJJJJJJJJAHIIJJJJJJJ@9BDGAEAABEH?CD@;;ACCBCDEEEDBB@DDDDD9@DDCB58::@::A +@DRR015910.44 HWI-ST1182:184:D1KRDACXX:3:1101:2612:2126/2 +CTGTTAGATGGCGAGCCGTTGGCGTTAAGTGGTGACAAGTGGCGGATTTCACCATGGTTATTAGTAACCGATGATACGGCAACCATCACCGCGTTTTTGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJIFHIDHIJJJJFHIIJHDFFECDEEEDDDCCDDDEECEEDDDDDDDEEDDDDDDDDDDDDDDDDD9BDDDDD +@DRR015910.45 HWI-ST1182:184:D1KRDACXX:3:1101:2553:2150/2 +CTGTCTGAGGGGGCATGCTGTACCCGGTCGTAATAACCGCTCCTGGATACACCAGGTACCCGACACATCGCTTCAACAGGGAATTGTTGTCGCCATTGTT ++ +CCCFFFFFFDHHGIGHGGGGIJJJJGIGIIGFHIIJGFHIJHHFFFDEDECEEBBBCDDDDDDDDDDDDDDBABDDCDBDD@BDDDDDDCC@BBBD@CDD +@DRR015910.46 HWI-ST1182:184:D1KRDACXX:3:1101:2867:2060/2 +AGTTAGGATCGCCATTGCCGAAGGTGAGATCTTTCCGCTTCGCCAGCAGATCGTTCAGGTTGTTGATCGGACTATCTTTGTTGACGATCAACACGCTCCA ++ +CC@FFFFFHHHHHJJIJJJJJJIIEEHIIJJJJJJJJJJIIJIJIJIJJJHGIHHHHFFFFFDDEECEDDDDDDDDDFDDDDBDDDDDDDDCCDBDDDDD +@DRR015910.47 HWI-ST1182:184:D1KRDACXX:3:1101:3174:2053/2 +CTATAACTTCCTGCCACGGGCATGCCGTCCACGCAGGGCCAGAACAAAAGGTAAGGTTGAGCGGATGGTGAAATACCTCAAGGAGAACTTCTTCGTCCGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIJJJJJJJJJIJJJJJJJHHE?CEFFDFEEEEDDDDDD:@CDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.48 HWI-ST1182:184:D1KRDACXX:3:1101:3154:2221/2 +GAACAAATAAATGCGTATCGCCGGAGCCTGAAATAAATCCTGCTTTTTAAAGAACATCACCCGTTGAGTTTCGGGAGCCGCGGTTTTGACGTTTCGCGGG ++ +=+=AA>;?ABA7?97ABBBABAAA4>>A)>BBAB=B=>7=AA>AA@@>63;(;;;;;;,/=='5;&)50&)02998)(+8;;9;3& +@DRR015910.49 HWI-ST1182:184:D1KRDACXX:3:1101:3258:2016/2 +TCTTAACACATCTTCTTTCCCTGAGGAAGAAAATAAAAAATCAAGACATTTCTGATTAAAAGACGTTGCAAAGCTTTCTTTTTCAGACACTGATGCTGGT ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJJIJIIJJJJJJIIJJJJJJJJGIJJIIJJJJJJJJJJJJHHHHHFFFFFFEEEEEEDDDDDDDDDDDDDDC +@DRR015910.50 HWI-ST1182:184:D1KRDACXX:3:1101:3399:2159/2 +TGCTTCGAGCATCTCACGGACAATTTTAGTGATACTGGCAGGAGCCAGTTGCGCCAGACGGGAAAGATCGATACGCGAGACTGGACCAAGCTGATCAATC ++ +CCCFFFFFHHGHHJJJJJJJJJJJJJJJJHGIIJJJJJJJJJGGGHIGHIGIGDEHHGHFFDDDB@CCCDDDDDDDDDDBBCDDDDDDDBDDDDDDEDDD +@DRR015910.51 HWI-ST1182:184:D1KRDACXX:3:1101:3485:2195/2 +GCCCAGACCCCAGCTCTTCTCAACGCGGATGCCGATAGATTCAGCAATCGCTTTTGCAGAGTCGAAGTTGTCCAGATCCGCCATGTCGGTTTCCGGGCGA ++ +=@?DDDBDF=DFFFB:54>4A?@?88024+420)9-+4<59955 +@DRR015910.52 HWI-ST1182:184:D1KRDACXX:3:1101:3461:2218/2 +ACCTTCCGCAATCGCGGTTTTACCGACACCAGATTCCCCCACCAGCAGCGGGTTGTTTTTACGGCGACGGCAGAGAACCTGAATAGCACGCTCCAGCTCC ++ +C@@DDFFDHDHGHGGEGEFGGIEHGIIDGIGIFIGC<@FGHGGECEE@@D=@8?B=?CABBA<7BB8@@;;9BBAAC>A?BCCCDCCD:>B>>B<:A@CD +@DRR015910.53 HWI-ST1182:184:D1KRDACXX:3:1101:3685:2087/2 +GCGTTTCTTACCTGACTTACTTTCCAGAATACATTTTGAGGGCAATGCCTCAGCCAAAACATTAATTGAAGCGCTTTGCTGGATTGAAGTTAATTTAAAA ++ +CCCFFFFFHGHHHJJJJJJJJJJJJJJJJJJJJJJJJIIIJJIJJJJJJJHIJJJIJJJJJJJIJJJJJJJJHHFFFFEEEEEDDDDDDDDD@DEEDDCC +@DRR015910.54 HWI-ST1182:184:D1KRDACXX:3:1101:3719:2138/2 +GGATCTGACTATCAACAATGGCGAGTTCCTCACGCTGCTTGGCCCTTCTGGCTGCGGTAAAACAACCGTTCTTCGCCTGATTGCAGGTCTGGAAACTGTT ++ +CCCFFFFFHHHHHJJJJJJJJIJJIHIJJJIJJJJJIIJJJJJJJJJJJJFHHIJJHHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDBDDDD:ADDDDDD +@DRR015910.55 HWI-ST1182:184:D1KRDACXX:3:1101:3998:2013/2 +CGGCACGCTACCTGGGTCGTTATCTGAAGAAGCCACCAATAGCGGCTTCCCGGCTGGCACATTACAACGGAGGGGCGAGCCTGAGCTTCCGTTACCTGGA ++ +??:A=@0A?DFF?FB:2ABB>;B?559<5@B>><>?33((4++-(4??A:>@+ +@DRR015910.56 HWI-ST1182:184:D1KRDACXX:3:1101:3863:2140/2 +CCACCCAGTGTTCCGCGCGGTGATGGTGCATCTGTACCGACAAGCCTTCGCCCGGTTTCACGGTGATGCGTTTCACCTGGTAGCGGTCGCCCGCGTCGAT ++ +CCCFFFFFHHHHHJJJJJJJDHIJJJDHGIJJJJIIJJJJJJJJIIHHHHFFFDDBBDDFDDDBDDDDDDDDDDEDDDDDDDDDDDBDDDDDDDD>DDDD +@DRR015910.57 HWI-ST1182:184:D1KRDACXX:3:1101:3823:2165/2 +TTCTTTTTTATCAGACCGCTTCTGCGTTCTGATTTAATCTGTATCAGGCTGAAAATCTTCTCTCAATCCGCCAAAACATCTTCGGCGTTGTAAGGTTAAG ++ +CCCFFFFFHHHHHIIJJJJJJJJJJJIJJJJJJJJJIJIJJIIJJJJJJJFHIJJJJJJJJHHHHHHFFFDDDDDDDDDDDDEDDDDDDDDDCDDCCDDD +@DRR015910.58 HWI-ST1182:184:D1KRDACXX:3:1101:3830:2204/2 +GAGATCTTTAAGGGGTAGGGTTGAGATCAGCACCAGACTGTTATCCTGACCATTCAGGTAATACATCGACCACGGTACATTTTCTGCGCCCCACAATGTA ++ +CCCFFFFFHHHHHJJ:EHIJFGHIJIJIIGEHJJIIGIIJJJGJIIJJJJGGJJIJJJCGHGGIJJJIJHHFFFDCDDCFEFEEDDCBDDDDBBDDDDDE +@DRR015910.59 HWI-ST1182:184:D1KRDACXX:3:1101:3854:2226/2 +GCCGTTAGCAAACATCGAACGGTGCAGACCTGGATCGCGCAGCAGATCTTTTTTGACGATATTAGCCGTTACTACCAGGTGCCCTACGTGTTCGGCAATA ++ +CCCFFFFFHGHHHJJJJJJJJJFHJJJJJJJJJJJJJIIIIIIJGHIGIIEHHFBDDDDDDDFEEDDDDDDDDEDDDDDACDDDDDDDBDDDDDDDDDDC +@DRR015910.60 HWI-ST1182:184:D1KRDACXX:3:1101:4027:2007/2 +GTGGTCGGCATCGTGGTTGACGGCGTCTCAGACGTGCTTTCATTGACGGCGGAGCAAATTCGTCCGGCACCGGAATTTGCCGTGACGCTTTCAACAGAAT ++ +BBCFDEFFHHHGHHIJIIIIIJIIIIIJJFIJJJFHIIJIJGHHHGHFFD>B8B@BDDDDDDDDDDBBBDD>B;@BDDDDDBBBBBDDDDDDACDDDDDD +@DRR015910.61 HWI-ST1182:184:D1KRDACXX:3:1101:4000:2037/2 +AGTAAGGGTGAGCTGAGAGCGTTCAATGAATAGATGTAATTTACTGATTAATAAATAATTGGCTATTTTAATTAACCTCTTAACGGCGTTTACTGTTCCA ++ +@B?DFFFFFHHHFIJJJEIIIHIJJIJJIJGIIJJJIIIJJJIIIJJJJIIIIJJJJIJIIJIJIJJJJJIFIJIJIEHHHHHFFFDDDDDBDDDEDDDC +@DRR015910.62 HWI-ST1182:184:D1KRDACXX:3:1101:4090:2091/2 +ATCTCGACCCGCATGCGTTAGCGCGTGAAAAAACAGAAGCAGTAAGAAGTATGCTGCTGGATAGCGTCGAACCGCTTCCTCTTGTTGATGTGGCTGTCTC ++ +CCCFFFFFHHHHGJJJJIJJJJJJJFHGIJJJJJJGHHHHHFDFFFFEEC@CEEEDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDBACC +@DRR015910.63 HWI-ST1182:184:D1KRDACXX:3:1101:4304:2093/2 +ACTTCCATGTTTATCTCAAACCCGATCGGCTGGTGGATCCGGAAGCCTTTGGCGTACATGGTATTGCCGATGAATTTTTGCTCGATAAGCCCACGTTTGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJ?FHDHHIIJIJIGHCHIGHCE=BFDEEE;@CDCDDDDDDDDEEDDD>CDDDDCDDDDDDA'56;.((.,',,,(,,(,:(+833(((((5++(&)+8;(&&&&))0((+8=3;(( +@DRR015910.72 HWI-ST1182:184:D1KRDACXX:3:1101:4755:2135/2 +GATGCACTGTGGCACGTCTCATGGCGGTTATGGGACTTGCCGGTGTTCTCCGGGGTAAAAAGGTCCGTACGACCATCAGCCGGAAAGCTGTTGCCGCAGG ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJFHGIJJJIJJJIIJII;FEGGGFCEFFD9?CDDDBDACDDBDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDD +@DRR015910.73 HWI-ST1182:184:D1KRDACXX:3:1101:5085:2004/2 +GGTGAAATCCACCAGCGGTGTGTCGCCGAGCTTCATGCCTGCCAGCCAGCCGCTGCCGTAGGTCAGCCATTCCACGGCGGGCAGGCTGTCCGGTATACAG ++ +BC@FFFFFHHHHHJJJJJGHIIIJJJJHGIJJJJJJJJJJIJIJJJJJHHHFFDDDDDBDDD@CDDDDBDDEEEDDDDDDDDDDDDDDBDDBD>@BDEDD +@DRR015910.74 HWI-ST1182:184:D1KRDACXX:3:1101:5024:2127/2 +GTAAAACCCGACTGCTCAGCGAGAATCGTCGAAAAGGACGAGTAGTTCAGGCGGAAACGCTGGAAGCAGCGGGCCATGTGCTATTGCTAACATCATTACC ++ +CCCFFFFFHHHHHJJJJJJJJ6GHIJJJJJJJJJJJIHIIHIEHHFHHHHDEFDDDDDDDDDDDDDBDDDDDDDDBDDCCCDDE>CDDEDDDDDDDEDDD +@DRR015910.75 HWI-ST1182:184:D1KRDACXX:3:1101:5182:2152/2 +GCTTCAATTCGGGCGTTTGACGTTAAGTAATGAATAAGCCGCAACTGGCGGAATCACAGAAGACCGCTTTGCTTACCGAGGCGGAGTCTGTCATCCGGCC ++ +C@CFFFFFHGHHHJJGIIIGIIGIIIJFIIHIJJ@GIIJJIJJAGGHIFHACDBCACDDDDDDDDDDDDDDCDDCCCBDDDDDB>@8CDDCC:@CC@BDD +@DRR015910.76 HWI-ST1182:184:D1KRDACXX:3:1101:5220:2156/2 +TTCAGATAACCGCCCACAGCCCCGCATCTGCGGACGCAGCAAATATTGAGCAAGCGTTCAAAGCCCTATGTACAGAACTCAATGCACAAGGCAGTATTAA ++ +CCCFFFFFHHHHHJJGIJHJJJJIJIJIIIJJJIJIHFFFFEECCEEEDDCCDDDDDDDDEDDDDDDDDDEEEEEDDDDDDDDDDDDDDDDDDDDDDEED +@DRR015910.77 HWI-ST1182:184:D1KRDACXX:3:1101:5045:2237/2 +TCCATTATCTGGAAACTCCGCCAACGCGCGATGAACTGGTCAAACTCATTGCCGATATGGGGATTTCCGTACGCGCGCTGCTGCGTAAAAACGTCGAACC ++ +CCCFFFFFHHHHGIJJJJJIJJJJJIJJJJJJJJJJJJJGIJJIIJJJJJHHHHEFDDEEDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.78 HWI-ST1182:184:D1KRDACXX:3:1101:5344:2019/2 +GACAAACCTTCCCCAAAAGATAAATATGTTGCATATGCTATTAACATTCCTGACTATGAGCTGGCAGCCGATGTATATAATCTGTCTCTTATACACATCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIIJJHIIJJJJJIJJJJIJJJJJIJJJJJJJJJJIIJJJJJJJJHHHHFFFFFFFFEEEEEEEDDDDEDDDDD +@DRR015910.79 HWI-ST1182:184:D1KRDACXX:3:1101:5371:2042/2 +CGGTCATGTTGCAGTTAAAGCGTGGCAGGCGCTGGGCGAGATCACCGGGCGCGAACATACCCATCTGGCGCTGCACAAAGAGGACGAGAAGATTCGCTTT ++ +CCCDFFFFHHHHHJJJJJJJJJIIJJIIJDHG>HIJIIFIGGHEHHAHFD>BBDDDBCDDDDDDDDCDDDDDDDDCCDDDCDDDDDDDBDDCDCCDDDDD +@DRR015910.80 HWI-ST1182:184:D1KRDACXX:3:1101:5572:2007/2 +AATTTATTCTGTGCGGTTTAAACACCACGGCACAAAATGACAAATTCAACGCAAAAAAAACCGGGCAATTGCCCGGTGCTGGAAGGGATCTCATTATTCG ++ +CCCFFFFFHHHHHJJJGIIJJJJJJDIJJJIJJJJJJJJJJJJJJJJJJJHIJJHHHFDDDDDDDDBDDDDDDDDD@DDDDDBDDDDBCBDDCDEEE(>A +@DRR015910.81 HWI-ST1182:184:D1KRDACXX:3:1101:5652:2030/2 +GTTATTGATTGATAAAAGTAAATTTAATCGTTCAGGGGAAGCCCGCATCGGGCATCTGGATGAGGTAACGCACATTATTTCTGATGAGCGCCAGGTTGCA ++ +CBBFFFFFHHHHHJJJJJHHIJJJJJJJJJJJJJJJJIJJJIJJJJJJJJHIIJJHHHHHHFFFFCEEEDDDDDDDDEFEFEDEEDEDDDDDDDDCCDDD +@DRR015910.82 HWI-ST1182:184:D1KRDACXX:3:1101:5518:2046/2 +GTTCAACACCGTGCGTGAAGCTGTTGCTGCTACTGGCGCTACCGCTTCTGTTATCTACGTACCAGCACCGTTCTGCAAAGACTCCATTCTGGAAGCCATC ++ +B@@FFFFFHHHHHIJGIIIJJJJGHEGGIGGIHG3?B@BEHIG@EHIGCGDE;A=CEED;?BCC@=ADBDDDCDCCDDDACCDDDDDEDEEDDDDDDDDD +@DRR015910.83 HWI-ST1182:184:D1KRDACXX:3:1101:5542:2062/2 +TCAATAGACAGCGTGAATATCGATGGTTGCGCCACAGGCATGAGCATATTTTGTCAAAGTTTTCATGCTGGCCCCTAAAGGGTTACTTTCCAGGCGACTG ++ +CCCFFFFFHHHHHIIJJJJJJJIIJJIJJJJJJJJJJJGIJGIJJJJJJIHGHGHHIIJDHHHHHHHHFFFFEDDDDDDDDDADDDDDEDCEDDDDDDDD +@DRR015910.84 HWI-ST1182:184:D1KRDACXX:3:1101:5749:2111/2 +CTTGCGGACGACCCATCATGATCTTATAGCGCACCTGACCTGGACGAGTGAGGTATGGCATCGAGGCGGTGCTGATGTCATATTCCTGCACCTGGCCGTT ++ +CCCFFFFFHHGHHJJJJJJJJJJJJJJJJIJIJJJIJJJJJJJHFHFF?CCCE>CDDDDDDDDDDDDDDBDDDDDDDDDEEEEEEEDDDDDDDDDDDDBD +@DRR015910.85 HWI-ST1182:184:D1KRDACXX:3:1101:5572:2127/2 +TTACTGAGGCGGAACCAGCGGGGAGCCGGCTTTTCTGTTCTGGCTGGCACGCCTGCTGCCGGTTGTGCAGGCTTCGCGGCCATACCCTGTGGATTCCAGA ++ +CCCFFFFFHHHHGJJJJJJJJJJHHFFDDDDDDDDDDDDDEDDDDDDBCDBBDDDDDDDDDDBDDDDDEDDBDDDDDDDDB>CDDDDCCCCD@ACCDCDC +@DRR015910.86 HWI-ST1182:184:D1KRDACXX:3:1101:5742:2199/2 +CCATTATACGACAAACCGGCGGCTCGGCGTTAGGGCTGATCTCGACTAAGTCTACTCCGGCTTCTTCTGCTTTCTCCAGAGCTTCTCTCAGACTCACAAT ++ +@CCFFFFFHHHHHJJJIJIGJJJJJJICE>CDDDDCBDBDCDDDCBDDDCDCDDDEDDDDBBDDDDDDDDDCDDDCCCDDBDDDDDDCC>CACCDCDDDD +@DRR015910.87 HWI-ST1182:184:D1KRDACXX:3:1101:5942:2026/2 +TATATCCTCATCAAATGATTGCGAAGATGATAATCTCTCATTTAAATTAACAAATTCTTCACTATTTAATCTTTGCTGCAGAGCATTGCTTGCATTTATT ++ +CCCFFFFFHHHHGJJJJJJJJJJJJJIJJJJIJJJJJJJJJJJJJJJJJJHJJJJJJJJJJJJJJJJJIJJJJJJJJJJHHHHFFFFFFEEEDEEEDEFD +@DRR015910.88 HWI-ST1182:184:D1KRDACXX:3:1101:5986:2036/2 +TGCCTCCACAGTACCTGTCGTACTTACTGAAAGTACCGTTATGCCCGAAGTCCCCGGGGTAAAAAAGCGTCCCCGGCGCCCCAACTTCCCTTATGAGTTC ++ +@CCFFFFFHHHHFIIJJIJJHIIJJJJJJJJJJFHIJJIJIJJJJJJIIJJHIIJJJHF9AEEEEDDDDBDDDDDDDDDDDDDDDDDDDDDDCCDDDCDD +@DRR015910.89 HWI-ST1182:184:D1KRDACXX:3:1101:5964:2042/2 +GGTGGACCACGGGTTCGCCCAGCCGCTGGAGTTCCTGCTCGGTGGGCTGGATAAGGTGCCAGTTCTGCCTGTGTTCATCAACGGTGTCGCCACGCCGCTG ++ +BC@DDDFFHHHHHEBGIEGIIJIGGHBHIGIBFGIIJIEGIJ@EHHEBDF@CCECECCCDDDCCDEDCDDDCDCDDEEEDDDDD@B9CDBBDDDDDDDBD +@DRR015910.90 HWI-ST1182:184:D1KRDACXX:3:1101:5762:2054/2 +GTGAGCGACCATTACGCATAGTGCCCCAGTCAACCTGCATCTGTCGTCCGGGTTCAGTTTCGAACCGAACGGCAGGCTCCTGCTCCTGAGGAACCGAGAG ++ +@@@?DDDFHFDFHIGAFGHIJEFFGHIGGDHIJIGEIDEGGAHGGEHGGGGE5?ABDBD@ECAEEDDB?BBDDB<@9<<@D95 +@DRR015910.91 HWI-ST1182:184:D1KRDACXX:3:1101:5915:2189/2 +GTATTAGGCGCAGCTATTTAGGTCAGGCTACCTACTCGAACGTTATAGTGTAGTTTTGGGTCGTGACGCAGACTTGATGATTGATGGCAAAGATTGATGT ++ +@?@FFFFFHHHGHIJIJJJIJJCFCHJGGIJJJJIGGIGHHIGGEIDHC@ +@DRR015910.92 HWI-ST1182:184:D1KRDACXX:3:1101:6160:2090/2 +CATACGAACTGCCCGTTGACGGACTTCGGGGGAAAAACGTGTATTTTTAGTCATTCTGTTTACCTCTTTCTCAGGGCGTTTAGTCTCCAGGATTTCCGGG ++ +BCCFFFFFHHHHHJJIJJIJJJIJJJJJJJJJBHHHFEF?A>ACDEEDBDDCDDEEEEEDDCDDDDDDDDDDEDDDDDBDDDDDDEDDDDDDDDDDEDDD +@DRR015910.93 HWI-ST1182:184:D1KRDACXX:3:1101:6007:2130/2 +CCTTAATGCACTGGAAAATCATCAGTTTGCTATTTGGTTACAGCCACAGGTCGAGATGACCAGCGGTAAACTGGTCAGTGCGGAAGTGTTACTGCGTATC ++ +CCCFFFFFGHHHHIJJJJJJJJJJJIJJJJJJJJJJJJJJJIJJJJJGIJIHIIJGIJJJJJJJJHHHFFFFFFEEEECEDDDDBDCCEEDDDDDDDDDD +@DRR015910.94 HWI-ST1182:184:D1KRDACXX:3:1101:6090:2149/2 +TTACAACGGAGGGGCGAGCCTGAGCTTCCGTTACCTGGACCACAAAACGGGAGAAACGGCGACGGAAACGCTGACACAGCGTGAGCTGGTCGCGAGGCTG ++ +CCCFFFFFHHHHGJJJIIJJIJIJJJJJJJIGHHHGFFFFEDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDBDDDDDDDDD?BDDCDDDDDDDDDDDBDD +@DRR015910.95 HWI-ST1182:184:D1KRDACXX:3:1101:6044:2156/2 +GCCTGTATGTGCCCGTTTCGATGGCGGTACAGCAGGTTTTCGCTCAAGCAACAGCGCATTCTGGCGCATGATCCGGTAAACACGTTTGGCATTGATCGCA ++ +@@@FFFDFHHHGHJJHIJJJGGIIGHI@GIJJIIGJDGIJGIIJJJJJIJGHEFGFFDDDDEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCCDDDDD +@DRR015910.96 HWI-ST1182:184:D1KRDACXX:3:1101:6087:2235/2 +GTCGAGGATATTTCCACAGCCAACGTCCAGTAACCATTCGCCAGTAAAACAGCACGGCCCGCACAGCCCAGTCGGCAAACATTCCCATCCAGACACCAAC ++ +C@CFFFFFGHHHHIJIJJJGJJIGIHIJJJGGIIJJJJJGHJGJHHJJIEGIJIFIJIHFFDDDDDDDDDDDDDDDDDDDDDDDEDDDDD>C>@BDDDDD +@DRR015910.97 HWI-ST1182:184:D1KRDACXX:3:1101:6304:2048/2 +GCACCACGTTGCCACCTGCAATCAGTACCATCACGCCTGCTTTCGCCGCTTCCTGAGAGATCTGTTTCGCTTGCCCGGCGTAATCGGCATTCAGCACACA ++ +CCCFFFFFFHHHHJJJJJJJJJJJIIHJJJJJIJJJJJJJJJJJJJJJJJFHIJJJJHHHGHFFFFFFDDDDDDDDDDDDBDDDEDDDDDDDEDDDDDDD +@DRR015910.98 HWI-ST1182:184:D1KRDACXX:3:1101:6392:2173/2 +ATCAGGGCCATTGTGGCCAGTGGCAGAATGACGGTGTACTTCAGACACCAGAACAGTCCTCGCAGAACCCGGGCGACAACATACCGGGCGGCATGGCACG ++ +CCCFFFFFHHHHHIIJJJJJGHJJJJJJJIJJJJDGFHIJJIJIJJJJJJIGHIJJHIJJJJHHFFFEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.99 HWI-ST1182:184:D1KRDACXX:3:1101:6608:2016/2 +CTTCAACGCTGCGGTCGCGGTACGGGCTGTTTTTACCCGGTTGCGTCAGGGTGCCGCGGTATTCGCGGATCTGTTCCGGCGTCAGTTCATCAACGTACGC ++ +CCCFFFFFHHHHHJHJJJJJFHJJJJJJIFHIJJIHHHHFEDDEDDDDDDB9?BDDDDD18)((6@)9)).2.)((2((1@>1(-3-(0...))9.)93(7;-''-'5((((((3;;<5:50(000&&&&+(+((((262(+8((+8/:A:@C> +@DRR015910.105 HWI-ST1182:184:D1KRDACXX:3:1101:7007:2073/2 +GCCTGAGAACTGAAGACTGGAGCTGACCTGTTCATCAGAAATCATCTCCCGGCTCAACATCCTCCCCGCGTTCCCGGTGCACATTGATGTTCACCTCTTC ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJJJJJJIJIJJJIJJIGIJJJJJJIIJJIJJJJJIJJJJJHHFDDDDDDDDDDDDDCDDDCEDEDEEDDDDDDD +@DRR015910.106 HWI-ST1182:184:D1KRDACXX:3:1101:7209:2197/2 +GTAGGCGGCGGGACAATTCGCGACATGGCGCTGGATCACGGCCCGGTATTTTGGGAGAAAGATCCCACCGATCTGGTCGTTGCCATGGTAACCAGCATGC ++ +:=1?+2))0)0;'5=A;>>=@'=',;5(5'0::-((+2:8-117:507883:?5-(278?38(++38())95993(88-)0(0(+((3+((+389;3(8( +@DRR015910.107 HWI-ST1182:184:D1KRDACXX:3:1101:7240:2239/2 +ATTCAGGAACTCCTCAGGGGGGAATAATTTCTCCTGTACTGGCTAACATTGCTCTGGATGGACTGGAGGCGCTTCTTGCGTCGGAGTTTAAAAAGAGAAC ++ +CCCFFFFFHHHHHJJJJJJJJDDDDDDEEEDEDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@B?CCCDDDDDDDDDD +@DRR015910.108 HWI-ST1182:184:D1KRDACXX:3:1101:7358:2079/2 +TTTTTGCTCCATGTGTGGGCCGAAATTCTGCTCGATGAAAATCAGCCAGGAAGTGCGTGATTACGCCGCCACGCAAACTATTGAAATGGGAATGGCGGAT ++ +@@@=DDDFFHFHHFEEHGIJIIJGGGIDIGIDHHGDDGHIGIJEGGGBCFCGE==;BHHHFFFFFDA?BDDDBB>>BBCDD>ACDDCDDBDCBCAABB>> +@DRR015910.109 HWI-ST1182:184:D1KRDACXX:3:1101:7342:2218/2 +AAACGATCCAGTTTGATTGAGATCGGTGCCGTCTTTCAGCACCCGCACGCCGCCCTGTAATAATGCAGCAGAGTAGTAGGGATCCCAGATAGCCCAGGCG ++ +@CCFFFFFHHHFHHIHIIIEFHAFGHEEGGGIGFGIEAHHBFIIEHGGGHCEFDDDDDDEEECCDDDDDB?AB:CCDCDCDDC@CD@>AACDCCDBDDD@ +@DRR015910.110 HWI-ST1182:184:D1KRDACXX:3:1101:7589:2070/2 +TCAGTGATCTATTGGATGAGATTATCCATTTTTGTGAGTTTCAGCAAAGCGCGTCGCACTGGCAGCGCGTACTTCACTGACGGCGAAAAGCCGGTTTCAG ++ +BCCFDFFFHHHHHJJIJJIJIJJJJJJJJJJJJJHGIIIIJIJJJJJJIJHIJGIIJHHHFFFFDDDDDDDDDEDDDDDDDDDDDDDDDDDDDD@BDDED +@DRR015910.111 HWI-ST1182:184:D1KRDACXX:3:1101:7689:2127/2 +CCACCTTGTAGCTTGAAAACTGGTTAGAATAACTACGATTAGATTTGGCACAGCGTATGCAGCCTGATTCCTGCCCGTGACAGAGCATTCGGCTCATAAA ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJIIJJJJJJJJJIJIJIGIJJGJJJGHIJJJJJJJJJJJJJJJHHHHHHFFFDDDDDDDDDDDDDEDDDDDDDDD +@DRR015910.112 HWI-ST1182:184:D1KRDACXX:3:1101:7614:2211/2 +CAGTAGATCATGCTGACTACGTGTGGTTTGTAGCGCCAGATACAACAAAAAGGTAAACCATGGATGATGAATATTCTCCACTTCCCACAGTCGGTAAAAT ++ +BCCFFFFFHHHHHJJIJJJJJGHFHIGHIIFIJJIJJJJJJJJJJJJJJJGHI@FHIJJJJHHHHHFFFFFFFEEEEEEEDDDDDDDDDDDCDDDDDDDE +@DRR015910.113 HWI-ST1182:184:D1KRDACXX:3:1101:7979:2009/2 +TGATTGAGGAGCAGCGCAACGCGACGGGCATCGTTCCGGGGAGTCGCCATCTGGTCCTCGAACGGTGCCGTGATGAAATTGGTGACTGGCGTATTATTTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIJHHHFFFFDDDDD?CBDDDDDCDDCDDDDDDDDDDBDDDDBDBDDDDDDDDDDDDDDDDDD@DDDEEEEE +@DRR015910.114 HWI-ST1182:184:D1KRDACXX:3:1101:7830:2108/2 +ATATGACCCACCTCAACCGAATGCGCGAACGTTTTACTGATGTTCACACCCTACGCGTCACTGGCGGCCCGGCGCACTCCGATGTCTGGATGCAAATGCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJJJFHJJJJJJJIIJJJJJJHHBDFFFDDDDDDDDDDDDDDDDDBBBDDDDDDBDDACDAC>@CDDDDACCD +@DRR015910.115 HWI-ST1182:184:D1KRDACXX:3:1101:8226:2077/2 +ACTCTGGGAAGTGTTTTTATCGTGGCGGGAACCACAATTGGCGCAGGCATGCTGGCAATGCCGCTGGCTGCGGCCGGTGTTGGTTTTTGCGTTACGTTAA ++ +CCCFFFFFHFHDFFHIJJIJHIHIJJIIJ:FFHDDDHEH?E==B<9?>;>5>::@?CCCCCC;705>??B5>5>&0)<8?+8AB()+))8-28BCC:B@BDA@AC@D>@@@ +@DRR015910.117 HWI-ST1182:184:D1KRDACXX:3:1101:8211:2198/2 +CAGGTGAACAGGCCGAACGGTTTAACGCCATTACCCGGGCCTATTATATGAAAGCGGCAGCGACACAGTTTCCGCTGCCGGAGGGAATGAATCTGCCCCT ++ +BCCFDFFFHHHHHJJJJJJJHJJJJJJJJJJJJJJJJJJJJJHHHHHHHFFEFFFDDDDDDDDDDDDDDDEEDDDDDDDDDDDDD>>@9>CCCDDDCDACDDD +@DRR015910.141 HWI-ST1182:184:D1KRDACXX:3:1101:10793:2095/2 +GTGGCAGATGTTCGCAGTATTTTCCCGTTAACACGCGGGCAAGCAAGCCGGGACCTGCGATGCCGCGCTCTATCGGACGGGACGGAGCCGGCGCTTCAAT ++ +@@@FFFFFHHGHHJJIIHIJJJJJJJJIIGJJJJJIJJJJHHHFFFFDDD?DBDDDDDDDDDDDDDDDDDDDDDDDBDDDD9>BDBDDDDDDDDDDDDDDDDDECDDDDD +@DRR015910.143 HWI-ST1182:184:D1KRDACXX:3:1101:10841:2196/2 +GTCAGTTCCATCTGGCAGACCATTTTGACCTGCGGGTAGAGCGCCGGGTTCCCGGCATGTGTCTGGCGGGGGAAGGCTGCATCGTTCTCTGGTGTATCCT ++ +CCCFFDFFHHHHHJJIJJJJJJIJJJJJJJJIJJJJ@FFHIBHGIIJHC8>BDCD +@DRR015910.144 HWI-ST1182:184:D1KRDACXX:3:1101:10923:2200/2 +GCGCTGATATTTTCAATCAGCATCTTCCTTTCCTGGTCCCCATTAGCATCTTCCAGCGACACCAACCACCGGCCAATATTCTCTGCAGCGACAAGGTTGT ++ +C@CFFFFFHHHHHIJIJJJJJJJJJJJIJJJJJJJJGIIJJIJJHJIJJJHHIIIJJJJJJJJJJHGHFFFDDDDDDDDFEFDDDCDDDDDBDDDDCDDD +@DRR015910.145 HWI-ST1182:184:D1KRDACXX:3:1101:10852:2206/2 +ATGTTGAGCGCGCTGTTTGGCGTGAAGCCCGCCTGGTTCAGCGATCCGACCACCGCCCGCACGATGCTGATTATCGTCAATACCTGGCTGGGTTATCCGT ++ +1?;44=,=C)008@E?9:*1C?D:?1DA:4+>::<<<<5>:A:A:28329?<88>4>0< +@DRR015910.146 HWI-ST1182:184:D1KRDACXX:3:1101:11239:2008/2 +CATGCGTACCGGGTCAGTCGTGCGCCCGATTTCAGATTCCACGCTGGAAAGCACCTGCGCGGCGGCTTCGGCAGCATCTTCGTCCGCGGTGTTTTCAGCC ++ +CC@FFFDDFHHGHEHIJGGIIIIJJJJJIJJJJIJGIJHIJJJIHHHFFFBDCEDEDDDDDDBDDBBDDDDDDDDDDDDDEDDDDDDDD5>5?CCDCDDD +@DRR015910.147 HWI-ST1182:184:D1KRDACXX:3:1101:11171:2098/2 +ACTCAGCTTTACCGGATGCGTGATGCGCAGTTGTGGCGTCACATCGAATTTCACCCTGAATGCAACGCGATTTACGCGGCACTGGACTGATTAACGGACG ++ +@@CFFFFFHHHHHJJIFIIJGIJIJJJJJIJIIGGIJJIJJIJJJJGJIHAAHHHFFFFDEEEEEEDDDDDDDDEDDDDDDDDDDCDDDDDDDDDDDDDD +@DRR015910.148 HWI-ST1182:184:D1KRDACXX:3:1101:11110:2103/2 +CATAAGTGCTTCCCGCAAGACCTATGCCGATGCCCCAGTTGATTTTGCCGTTGGTACAGTTGATGCGCTCGATGACATGGTCAGATATCAAAATATCACT ++ +88?DB;D:DFF?FIF:8E?;<9AFF9C*?):66D;08?BFF4BDFE9))54@@6(=7AE?CE?BDD89/,;?:@BB:@B?:55?BAADA::AB>@B4>AA +@DRR015910.149 HWI-ST1182:184:D1KRDACXX:3:1101:11076:2103/2 +GTAATAGAGAGAGGTAGCGCCGGGGATCAAGGTCGCGCAGGCCGCCAGTTTTTCCGCCAGCACTTTGGCGGCTAAATCCTGGGCTGTCGCTTCATCTGGT ++ +C@CFFFFFHGHHHJFHIJJJJJJJJGIJIIJJFHIJJHFFDDDDDDDDCDACDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEDDDC +@DRR015910.150 HWI-ST1182:184:D1KRDACXX:3:1101:11215:2111/2 +GCGCCCACTCTGGCGTACGAGTTCAAGAACCTGCCCTTTAATTTTTTCCCGCTCTTCTTGTGTAAAAACTTTTGCCACAAGCCCTCCTGAAAATTACCTC ++ +CCCFFFFFHHHGHGGFHIGBGHIEHG@FCHEEGIIEHIGH?DHIIIICGE@ABABFDFFB;@>BEECDDDDDDDDDDDDBBDDDCDDDDDDDDDCDDCCC +@DRR015910.151 HWI-ST1182:184:D1KRDACXX:3:1101:11103:2121/2 +GTTATTTTCTTGCCAATCATTACATAAAATAAACAGGGTCGTTATTATGAAATTAATCCACGGTGCTTATGAAAAAGCGGCTCCAATAATCAAAATTGGT ++ +CCCFFFFFHHHHHJJIJHIJJJHJIJJJIIJIJJJJJICDHGGEGGGGHIHIJIIIIJJJ>GIHHJJJHHHHHHHFFFDDDDDDDDDDDEDDDDDCCCD: +@DRR015910.152 HWI-ST1182:184:D1KRDACXX:3:1101:11001:2227/2 +AGTTCACCTTTCAGCCTGAGAGTTCCGGCCGGCAGAACCAGCTCACAGCACAGACTGTCGGGCATCTGTTCAGGTATCTGCACTGGTGCCGGGATTTTAT ++ +CC@FFFFFHHHHHJJJJIIJHIIJJJJJJJJIJJJJJJJJJJJJJIJJJJEFHHFFFFFDDDDDDDDDDDDDDD@ACDEEDDDDDDACDDDDD>BDDDDD +@DRR015910.153 HWI-ST1182:184:D1KRDACXX:3:1101:11448:2148/2 +GGGTAATTTTGTACTGATTGTTCTTGTCGCCGGTGCGCTGGGATTCGACGTTGTCGTAGCCGATTTCCATCACGGTGCTCATGATTGGCGTCCACTTGTA ++ +@BCDDEFFHHHFHGIJHJIIIJJJIJJIJJJJJDHIIJJJJJGHJFIGIJHHHEFFDEDDDDDDDDDEEECCDDDCDDDDCDDDDDDDEEEEDDDDCCDDDDDDDDDDDDDDDDDDDCDDDDDD +@DRR015910.157 HWI-ST1182:184:D1KRDACXX:3:1101:11851:2206/2 +GATGTAGTCACGCTTTATCGTTTTCACGAAGCTCTCTGCTATTCCGTTACTCTCCGGACTCCGCACCGCCGTGTTCTTCGGTTCAAGTCCCAACATCCGG ++ +;==7)<BBAB*?A**9>AA;7)7>)5:/6=>AA=@@/9=::,858;??:8&+9(3(+8::=??=<=??5& +@DRR015910.158 HWI-ST1182:184:D1KRDACXX:3:1101:11837:2215/2 +GCTCCATGCCCTCTTCGTTGAAAGCATGAATGCGAATATTTTTCTGATATTTAAAAGTTTGCAATAACCAGCGCAGACGATCCGGCACGGTCGGCTGCTG ++ +@<@FFFFFHBHFHIIIHIIIGCHIIIGGIIEBHDEHIGGIIIIGGBFHI@BF?FFHI@=FFHECGHIIICHBHHFFDEB@DDD?BBDDB<28<05@3>;A@@CCCA59B;B<>B09@@8A9?:<>C:AC>:@85<>> +@DRR015910.160 HWI-ST1182:184:D1KRDACXX:3:1101:11802:2226/2 +GGTGATCATCTGACCCAGGCAGTTATCGACTGGAAAGCAAGTTGCGAACGCCGTTTTGTGTTCAGGCCGAATGAAGCGGTAACGCCAGCAGACAGACAAG ++ +BCBFFFFFHHHHHJJJIJJJJJJJJJJJIJJJJJJJJJJJIIJJJJJJJJIHH=DFFFEEEEEEDDDDDBDDDDDDDDDDBDDDDDDDDDDDDDDDDDDD +@DRR015910.161 HWI-ST1182:184:D1KRDACXX:3:1101:12031:2021/2 +GTATCCTGGTAGTCGACAGCTATAGCGCTGGCAAAGAACAAGGCCAGCTTAGGATGTTGATCCAGCGCAGCCTCAAGGCGTTCACTACTACATACCCCAA ++ +CCCFFFFFHHHHHIJJJJJJJIJJJJJJJJJJJJJIJJJJJJJJJJJIJJHHIJIIHJJHHHHHHFFDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDD +@DRR015910.162 HWI-ST1182:184:D1KRDACXX:3:1101:12221:2137/2 +GCACGGTCGGGGCCGGTAAGTCGGAAGTTATCCGTCGTCTGGCCAACTACGCCCGTCAGCGTGGAGATATGGTGGTGATTTATGACCGTTCAGGGGAATT ++ +CCCFFFDFHHHHHJJJDHIIIIJJIJIIJJJIJJIIHEEFFFDEEDDDDDDDDDDDDDDDD@BDBDCDDEDDCCD9@ACEEDEDDDDDDDDDDDDDDDDD +@DRR015910.163 HWI-ST1182:184:D1KRDACXX:3:1101:12124:2178/2 +ATCGTAATGAACTACGAAGCGATCGAGATGGAAGTGAAAGGCAAGAGCAAATGTTACGAGAGGAACCATTTTATCGTTTGATGATAGAGTAGAGAAGATG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJIJIFIJJJJDGIIJJJJJJJJIJJIGIJIJIJIJHGFFFFEDEEEEEEDDDDDDDCDDEFEDDDCCDDDDDDCDD +@DRR015910.164 HWI-ST1182:184:D1KRDACXX:3:1101:12047:2197/2 +GCGGAATACGATAACGCTCGGCATGTTTTTGCAGCATTCGTAGATCGAATTGCACCACGTTCCAGCCGATGATCACATCGGGATCGTGGTTTGCAAACCA ++ +CCCFFFFFHHHHHJJIJJJJJIGJJJJJJJIJJJJJIJJJHIGGIIIJJJEGIGEFHHFFFFEEEEDDDDDDEDEDDDDDDDDDDDCDDDDDDDEDDDDD +@DRR015910.165 HWI-ST1182:184:D1KRDACXX:3:1101:12380:2023/2 +GCACATGGCCCGCTGCTTCCAGCGTTTCCGCCTGAACTACTCGTCCTTTTCGACGATTCTCGCTGAGCAGTCGGGTTTTACTGATTAATGCTTTTTCGGG ++ +CCCFFFFFHHHHHJJJJJJJJIIJIIJIJIJJGIJJJIJJIJJHHIIJJJGGHHFFDDEEEDDDDDDDDDCCDDD2?BDCCDDDDDECDDDDEDDDCBDD +@DRR015910.166 HWI-ST1182:184:D1KRDACXX:3:1101:12485:2078/2 +ACCCACTGTGTATCTCCAGGACGCAAGTCACAAAATCTGCGCATAATAATATCAAAACGACGTCGAATTGATAGTCGTTCTCATTACTATTTGCATACTG ++ +@BCFFFFFHHHGHJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJIHHIJJJJIHHFFDDDDDDDDEEDCDDDDDDDEEEEDDEEEEEDEEDDCD +@DRR015910.167 HWI-ST1182:184:D1KRDACXX:3:1101:12290:2084/2 +ATCCGGTAAACACGTTTGGCATTGATCGCAGGCATACCATCAAGTTCTGCCTGTCTGCGAAGCAGCGCCCATACCCGACGATAACCATACGTGGGCAGCT ++ +CCCFFFFFHHHHHJGHJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJFHIIJJJJJJHHFFFEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.168 HWI-ST1182:184:D1KRDACXX:3:1101:12442:2087/2 +CCAGCCGAGTATCCACCACGGCCCCTGAAGGCTGTTTGTCGCCAGGTACACATGCGGACTCAGGCGAACATCTTCCGGCAGCACCTGCCAGAGCGCGCTT ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJJJJJJJJIJJJJIJJCHHHEHHHHFFDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.169 HWI-ST1182:184:D1KRDACXX:3:1101:12253:2197/2 +GAAAACAACGGATCCGTGACGGTAAACGTTAGCGCACTTATCTGTACCACTGTCAGCCACGTCAAAGCCAATACGCTTTCTTCCACTGGGTTCGAAATTT ++ +CCCFFFFFHHHHHJJJJJJJFIGGIIIJJJJJJJJJJJJJJIJIIIJIIIHIHHHHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDA@DDDDDDDD +@DRR015910.170 HWI-ST1182:184:D1KRDACXX:3:1101:12693:2070/2 +ATCAAATTACGAGCGATGGATAAGCCAAGCCCGGTGCCACCTTCGCGGCCGCTGACCATCGGGTAAAACAGCGTATCCTGCAAATGAGGCGGAATGCCCG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJJIHIJJJJIJJJIJJHFDBBDDDDDDDDDDD?BCDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.171 HWI-ST1182:184:D1KRDACXX:3:1101:12626:2097/2 +CATCAGAAATGCGCAACGTAAGCTGGTACTGATACTGACCTGTCTTAAACGCTGCCACAGCGTTATGTTTTTCATTTCAGCTCTTCCAGTTTTTTTATCG ++ +@CCFFFFFHHHHHIJJJJIJJJJJJJHIIJ>GGIJJJIJJJJHHHIGIJJIIJJIJJJJJHGHFFFFEEEEDDDEEEDDDDDDDDDDCDDDEDDDDBDCD +@DRR015910.172 HWI-ST1182:184:D1KRDACXX:3:1101:12715:2148/2 +TGTTCCAGTACTTCTACTGACATCGCATATTGGCGCTTATTGATTATTTTCGCTGCAAAGTAGCCAACAACCCCTACGGGAATAGAAATCGCAATACCTG ++ +@CCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJJJJJJJIIJJJJIJJJHJJJJJHHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.173 HWI-ST1182:184:D1KRDACXX:3:1101:12607:2154/2 +CACGAGCTGATACCGATATTCTGATGGGTCAGCGGATGCGTTCGTTGCAAAATCAGGTTGTCGATATCGCGCCGGAGCAATATCAGAAACTGCGGCAGGA ++ +@@@FDFDDBFHDHGIHFIGCEHHIGGIEHIIIIIGIIIGIIIIGIGEECEE@@>@DCE@CDCDDD@BCBBBDDBBDDBDCDDC@CCCDA9@CCBBBBDDB +@DRR015910.174 HWI-ST1182:184:D1KRDACXX:3:1101:12621:2163/2 +GTTGTATATATTTTTCCGCATTATAGACCGGAATAATTACAGATACTTTACAATTCTTCATCGATCAACATTCATATTTTAATTGTAGAGAGACATACAT ++ +B@@FDFFFHHHHHJJIJJJJJJIJJIHIJJJJJIIJJJIJIJJJJJJJJJGHIJJJJJIJJJIIIJHGHHHHFFFFFFFEEEEEEEEDEDDDDDCDDDDE +@DRR015910.175 HWI-ST1182:184:D1KRDACXX:3:1101:12990:2208/2 +CTGTGAAATAGTATGGTTTTCAGTTATGGAAACGCCGGGAGCGGGGAAAACTTGCTTTTTCCCGTTTCCGGGGTTGGACAACTGAGCAACGCGAAGGCGT ++ +BCCDDFFFHHHFHIIJIJJJJJJJJJJJJJJJJJJJJJIJJGJJJDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDD +@DRR015910.176 HWI-ST1182:184:D1KRDACXX:3:1101:13192:2070/2 +GACCAAGACAGGCAACCGCTTTCAGACGCGGCGATTCAAGATATGCCAGACGCACGGCAACGTTAGCGCCGAAACGGAAACCAAAGGCCGCGACGCGAGT ++ +CCCFFFFFHHHHHIIJJJJJJJJJJJJJJJJJJHFFFFFFEEEEEEEDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.177 HWI-ST1182:184:D1KRDACXX:3:1101:13208:2231/2 +AAGTACACCACTAATCGGGATGCTCATATAGATATATCCCATTTGCCAGCCTAAAGCGGGCGAGGTCTGACCTGAATCGAATGTATCCATCGTTAATAGC ++ +BCCDFFFFHHHHFHHHIJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJFIJJJJJJJJHDDDD@CDDDDDDDDDDDDDDDDDEDEDDDDDDDDDEECC +@DRR015910.178 HWI-ST1182:184:D1KRDACXX:3:1101:13151:2245/2 +ACGCGCGGGTACGCAGAATTTTATCGCTGATAAACATACTGAAAACGGAACCCAACAACTGTGGGTAGTTGAGGTGGGTTTCTGATTTCATTTGTGGCAG ++ +CCCFFFFFHDHHHJIIJJJJJJJJJJJJJJJJJJJJGIJHHHHHHFFFDDCDDDDDDDDDDCDDD;CDCEDDDD?ADD9@DDDDDEDEDEEEEEEDDDDD +@DRR015910.179 HWI-ST1182:184:D1KRDACXX:3:1101:13461:2133/2 +TTCGCATATTGCATGATGTTTTCCTCCGTTGTTCACATATTCCGCGACACCGGGCGGTGCCGTGCCTCCATAAAAGCCGGGCGATAAGGCGGGGATGCAG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJJJJJJIIJJFHGIJIJIJJIJJJJJHHFDDBDDDDBDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDBBDDDD +@DRR015910.180 HWI-ST1182:184:D1KRDACXX:3:1101:13329:2164/2 +CCTTGGTGCAACAGCAATCGGTACTGGTCTGAACACGCCGAAAGAGTACTCTCCGCTGGCAGTGAAAAAACTGGCTGAAGTTACTGGCTTCCCATGCGTA ++ +CCCFFFFFHHHHHJJJJIJJJFHIJJJHIJJJJGIJIJJJBHIIHICGHIGHIJHHHFFDDDEDDEDDDDDDDDDDDDDDDDEDDDDDDDDDD@CCCBBB +@DRR015910.181 HWI-ST1182:184:D1KRDACXX:3:1101:13272:2178/2 +GAGCGGTTTCCCGCATCAGGCCGCGACCCAGGTTATTGCTGAACTGGAGCCGTTCGACCGCGAACTGTTTGGCGGCATTGTGGGTTGGTGTGACAGCGAA ++ +CCCFFFFFHGHHHJJJJIHIJJJJJIJJJJJJGIIGHHHHHFFFFFEEEECDBDDDDDDDDDBDDDDDDDDDDDDDBDDDCDDD9?BD<@ABACDDDBDD +@DRR015910.197 HWI-ST1182:184:D1KRDACXX:3:1101:14579:2041/2 +TGGTGATACCGCCCGCTTTGTTCCCCGGCGATGGGTTTTCATAGATCGGCTGATCATGGGCAATAAAGTCTGTCTCTTATACACATCTGACGCTGCCGAC ++ +BCCDDFFFHHHHHJJJJJJJHIIIJJJJJJGHIJJCHHHGHFHFFFFFDDBBBDDEDDDDDDDDDDD:@CDDDDDDDDDDCDEDDDDDDDDDDDDDDDDD +@DRR015910.198 HWI-ST1182:184:D1KRDACXX:3:1101:14747:2069/2 +ACTCTGGGTGTTGCCCTGGCCGTTTGCTTCGGCTTCGTGCTCTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATCGGGTAGATCTCCGGGGTC ++ +:=??D?BD2@A7=)8@7A@@DDFDDD<8,3>A:';3,&8>81F<@@F@A@EH933;@@?<=??9?CBCBBB9AC>CCCCCB9<9)9::>CC>AC??ACCABB +@DRR015910.205 HWI-ST1182:184:D1KRDACXX:3:1101:15004:2047/2 +ATATTGTGCTAAGCCCCGGACAAGCTCATGAAAGCCAGTTCGCGCAACGACTTCTGGACGGGATTGGCGTTCAGCGTCAGAACGGCAGCATGAAACGCCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHHF@CDEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDCDDDD +@DRR015910.206 HWI-ST1182:184:D1KRDACXX:3:1101:15492:2037/2 +CCACCAGCGGTAAAACAGCTGCCGACGAAGTGCTGATCAAGGTGACCGGACCCGCGCAGGTGATTGGCGGGCGCTCCTATTGTGTCTTCAGCTCCGATGA ++ +CCCFFFFFHHHHHJJJJJJJJCHIJJJIJJHIJJJJJIJJJJ@FHIJJHHBDDDDDDBDD<@@C@CD@>A?CCD>>CCCCC@CDDBDDDDDDDDDDDDCDDDDDDDBDDDDDDDDDDDB@DDD +@DRR015910.208 HWI-ST1182:184:D1KRDACXX:3:1101:15253:2194/2 +GTGCAGGAAGCGGAAAAACGTCGGTGCTGGTGGCCCGTGCAGGCTGGTTGCTGGCGCGTGGTGAAGCGTCCCCTGAGCAAATTTTATTGCTGGCGTTTGG ++ +BBCFFFFFHGGHHJJIIJJJIJJJDHIIIJDHIIIJI@EGCGFFCDFBDA6;>C?@BB8BDDBDDDDDD@DDDDDCDDAC@CD9?@ACDEDDCDEDDDDD +@DRR015910.212 HWI-ST1182:184:D1KRDACXX:3:1101:15664:2196/2 +CCAAAGAGCAGCTTATTGCCGCACGAGAACATTTCGCGATTTATAAAGATTAAGTAAACACGCAAACACAACAATAACGGAGCCGTGATGGCTGGAAACA ++ +CCCFFFFFHGHHHJJJJJJJJJJJJIJJJIJJJJJJJJIJJJGIJJJJIJGHIGHHHHHFFFDDDDDDDDDDDDDDDDDDDDDDDBBBCDDDDDDDDDDD +@DRR015910.213 HWI-ST1182:184:D1KRDACXX:3:1101:15793:2080/2 +AAATTAAATTTAACGAACTGCATCTACACAGTCCTCCGTGCCAAACGGGCAACACACGGAAGGGGGATGTGTTTCGATTGGTAACCTGTAAGAAACAACT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIIJIJJJJHIIIJJJJJJJIFHIJJJJHHHFFFDDD@DDCDDDDDDDEDDDCDDDDDDDDEDDDDDDDDD +@DRR015910.214 HWI-ST1182:184:D1KRDACXX:3:1101:16161:2007/2 +GATAAAGATTCTGAATTGGCAGCGACTTTACAGAAAATGATAAATCCGTCTGGTGGGGATGGTAACTGTTCAGGGTGTGCGCTTCATGCTTGTATGGCTA ++ +@@@FFFFFHGHGHIIIIJIGEG?HAGIJJJJIHGIJIBGHBHIIGHIJ6DFFH8CGHJCEHFBDFFFDCCEEEED5=;@ABBDDDDEDDDEDBCCDDDCD +@DRR015910.215 HWI-ST1182:184:D1KRDACXX:3:1101:16078:2027/2 +CCTACACATCAAGGCTCAATGTTCAGTGTCAAGCTATAGTAAAGGTTCACGGGGTCTTTCCGTCTTGCCGCGGGTACACTGCATCTTCACAGCGAGTTCA ++ +CCCFFFFFHFHFHJJJJJIJIHIJJI@FFHIJJIJIIIJGGGHHIDHFHJHGIJDGHIJJJJHIIJJJJHHDDD@BDDDDDDDDDDDEEDDDDDDD>@CD +@DRR015910.216 HWI-ST1182:184:D1KRDACXX:3:1101:16117:2153/2 +TAAAGAGCCCGTATTTACGCTTGCTGAACTGGTCAACGACATCACGCCGGAAAACCTCCACGAGAATATCGACTGGGGAGAGCCGAAAGATAAGGAAGTC ++ +@@@BDAEFHHG:DBBHIHGIIJJIIIGGGEHGBFHEGFGFBHHHAEDHGGHFDFEDCC=;??BDBDCDEEDBBDDDBB?9CCCCDCC?(> +@DRR015910.217 HWI-ST1182:184:D1KRDACXX:3:1101:16202:2205/2 +GCTGTACCGTTTTGAACTCATGGGTACGCAAAGCGATATCGAAAACGTTCGTAAAGGAGTAACCGAATTTTGGCAACGACAACCGCAGAATGCCTGACGC ++ +@@@FDDBDHFHHFIIGJIIGCHGIACEHEHGGHGHDGGHGGFEE;@AHHFGBE;BDECBDDDDDDDDDCDBBBDDDD@BDDDBDDDCCDCCC@@ +@DRR015910.218 HWI-ST1182:184:D1KRDACXX:3:1101:16188:2241/2 +AGTTAACGTTGAGCTTGTAAAAGATAAAGAACGTAACATAATTGAGCTGGCTCCAGCATGGAAGGGTTTTTTTTTGTCCGAAATCAAAATATAAAATTCA ++ +B@?DFFFFHHHGHIJJIFGIJIJJJJIIGHJIIBGHIIBHIIGEHIJJJJIIJJJJJIJJJHIIJJ@EEHFDDDDDDDDDBDBDDDDDDDDEEEEDEDCD +@DRR015910.219 HWI-ST1182:184:D1KRDACXX:3:1101:16174:2248/2 +GTCTTATATAAGATGTTCAGATCTCTTTGTGTGTTTAACTAACTGATAATACTAGGATATGATGAGGGAAGTGATAGTGCGGAATAATAACGAATGAACA ++ +?4:*??B>F>@F>F?BE@FF=6;;=@AEE>7=@A=D>CCCBDB>;@B?::5>A +@DRR015910.220 HWI-ST1182:184:D1KRDACXX:3:1101:16273:2007/2 +CTTTCTGCCATTCCGACAACGGGATGCTGGCATAGACGCTGATACCGTGTTCTTCCAGCACCTGCGGGCTTTCGATGCCGCGATTAAACAACGAGCGCAG ++ +CCCFFFFFHHHHHJJJIJJIJJJIIJIJIJIJIJJJIJJIIIGIJJJGIGDGIJHHHHHFFFFFEDDDDDDDDDDEEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.221 HWI-ST1182:184:D1KRDACXX:3:1101:16326:2014/2 +GTCTTAATACTAGTTTTTAGACTAGTCATTGGAGTACAGATGATTGATGTCTTAGGGCCGGAGAAACGCAGACGGCGTACCACACAGGAAAAGATCGCAA ++ +?1:BDADADDFFH9C@BBGGE@CDGABH@BHEEC*?@BE>CD@AABBBAA?A?AC@AABBBD +@DRR015910.222 HWI-ST1182:184:D1KRDACXX:3:1101:16394:2062/2 +CTCCAGCTCTTTCAGACGCTGACGTTCAGCGGTGGTGAGCCCTCCATCACCGCCCCCGGTATCCCGCTCATGCTGGCGAACCCAGACACGCAGAGTCTCC ++ +C@CFFFFFHHHHHJJIJJJJIIJIIJJJJFIJDGH@FDHGIJJJJIIIJJEHIHFFDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD>CDDD +@DRR015910.223 HWI-ST1182:184:D1KRDACXX:3:1101:16418:2107/2 +GTCAAATCACCGCCACTCCATTCCGGGGCAGCGGGAGCGTGTTTCATCCTGAAAATGAAGCTGTTCCCGGTGATAATGGTAAACCGGCTCGTCTGGATAA ++ +@@?DD>DDACCFF6@@BBFHIG4CGGGG6DHIEGI@ABH?DBBCCDDA>@ACCCCCCCCCCCCCCC>@@B05?:BAACC@AC@:C>-9@3<)218(4:44 +@DRR015910.224 HWI-ST1182:184:D1KRDACXX:3:1101:16357:2133/2 +ATATAATGCGCGATAAGCGCAAAGGTCGGGAAAAGTGGAATCAGCCCGGCGATATAATAATTTTTCGTTTTTGCTAAAACACCAATCAACAGCACTACCA ++ +<@@BDADDHFHFDEEBG@GGEGBEE:BFGG@BHEH)8=CFGGHE@GCEBD>8:=@>ACD>CDDACDDAC?BDDDDDDDDDDDBABCCCDDDDDCBC>A?C +@DRR015910.225 HWI-ST1182:184:D1KRDACXX:3:1101:16268:2172/2 +GCTTACTCCCCATCCCCGGGCAATAAGGGCGCGTGCGCTATCCACTTTTTTGCCCGTCCATATTCAACGGCTTCTTTGAGGAGTTCATTTTCCATCGTTT ++ +@@@FDFFFHHHHHJJIJJJJJIGHGGHGIGIIJAHGGEHHFFFBDCEDDD??CDDBBDDDEDDEDEDDDDDDDDCDDC@@CDDCC>@>?ACCCCCCCEE@CDC@C +@DRR015910.228 HWI-ST1182:184:D1KRDACXX:3:1101:16804:2152/2 +CTACCAGATGCCGGGAATTGCCGAAACAGTCAATTTCGATCACATCCGTAATCATTACTTCCGCAGCCATAAGACCATCAACCCTACGGGGATTATTTCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJGHJJJJJJJJJJGIJJJJJHIEHIHHHHHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEE +@DRR015910.229 HWI-ST1182:184:D1KRDACXX:3:1101:16927:2214/2 +CTGGAAGTCATAATATCGAGGTTGCCCGCATAGGCAGGCAGATAATGCGCTGCGCCTTCGACTTCCAGCCAGACCGCTGTTTTCAGTCCGGAGAATTGCC ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJIJJJJEIJJIJJHGIIIIIJIHGIHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDBDDDDDDDD +@DRR015910.230 HWI-ST1182:184:D1KRDACXX:3:1101:17024:2196/2 +TTACAGAGGAGCACCGTCTGGTATACGCGGTTACTGATAATTCACTGCTCATTGCAGCATGTCGTTATCATTATTGAACAGATTCATTCATAGAATGAAT ++ +@CCFFFFFHHHGFJJJGHHJJHGHIJJFJJGIIJJIJIJIIJBHIJJJIICGIIGJJJJHHHHHFFFDEEEEEEECDCDDDDDDDDEEEEEEDDDDDDCE +@DRR015910.231 HWI-ST1182:184:D1KRDACXX:3:1101:17183:2206/2 +AGGTGGTGGTGATAACCGAGTTTTCGATATCCACATTTTCTGGAAGATTTCGGGTATCAACGCTTAATGATGTTGTTATGTAACTGCTGACTGATGGAAT ++ +BCCDFFDDHHHHHJJJJBHIHIJJJJJJJJJIJJIJJJJJJIJJJJGJJJHHIJFEHJJJJHHFFFEEEEEEFEDCDDEDFEEDEDDDDDDDDDDDDDCD +@DRR015910.232 HWI-ST1182:184:D1KRDACXX:3:1101:17275:2039/2 +GTATTGTCTGCAGATATTCATGGACGGGTTGTTCGTGTACTGGACGGTGATACCATCGAGGTCATGGACTCACTGAAGGCGGTGCGGATCAGGTTGGTAA ++ +CBCFFFFFHHHHHJJJJJJJJJJIJJIJHIJIJIJDFFHIJIJGHIH;CF@CDHHJIHHHFBFFFEEEEEDDDDDDDDDDDDCCDDDDDDD +@DRR015910.239 HWI-ST1182:184:D1KRDACXX:3:1101:17888:2173/2 +CGCCTGGAGAAATGAAATTTTCCCATGCTAAGAGTATTGAGTTGAACTAGTAGAATTGACAATTCAAAAACTGAGAACATGAAGAAACCCTATACGTCTG ++ +CCCFFFFFHHHHHJIJJJJJJIJJJJJJJJJIJIEEHIHGIIIIIJJJJJJIHIJJJJJJJJJJIJJJIJJJJJJJJIHHHHHHFFFFFDEEEEDDCDDD +@DRR015910.240 HWI-ST1182:184:D1KRDACXX:3:1101:17860:2223/2 +ATAAACCACTTTGCCTGTCATTTCACTACCGGGACTTTATGATGAAAACTGTTAATGAGCTGATTAAGGATATCAATTCGCTGACCTCTCACCTTCACGA ++ +CCCFFFFFHHHHHJJJJJJJJJ?CCDDDDEDCDDDEEDDDDDDDDDDDDDDDDDDDDDBDDDDDD5@BDE +@DRR015910.244 HWI-ST1182:184:D1KRDACXX:3:1101:18184:2101/2 +CGTCAGAACGGCAGCATGAAACGCCGTGGACATGCGGTACTGGCTGATAAAGCGTATTCAGGGCGCGCATTGCGCAACGAGCTGAAAAATAACGGTATAA ++ +CCBFFFFFHHHHHJIIJJJJJJJJJJFHJJJJJJJJJBGHJJJJHHEHFFBBDD=ADDDEDDDDDBDDBDDDDDDDDDDDDDDDDDDDDBDDDDDCCDDDDDDDDD +@DRR015910.246 HWI-ST1182:184:D1KRDACXX:3:1101:18330:2149/2 +AAACAATACAAACTGTGTGGATTTATCTTTTAGCGATAAAAATGGACCTATTTTTCTTTTGGCCGGGCGGTGGGGATGTTTAGCCGGTTGCTAAACGAGT ++ +CCCFFFFFHHHHHJJGIHIJHJJJJJIJJIJJJJJJJJJJJJJJJJJJJIFHIJJJJJJJJJJJIHHFDDBDDDDDDDCDEDDDDDDDDDDDEDDDDDD@ +@DRR015910.247 HWI-ST1182:184:D1KRDACXX:3:1101:18392:2226/2 +GTGAAGCGCCCTGCAATGTCATCAGCATTCTCATCACCATTCCGCATGATTCTGAGAAACTCAGTTGATTCGGCCAGTAACCTTTCAGATGTTCCGCCAT ++ +CCCFFFFFHHHHGIJJJIJJJJJJJJIJJIJIJJIJJJJJJJJJJJJJJJGHJJJJJJJJIJJJIJJJHHHHHFFDDCEEEDDDDDDDDDDEDEDDDDDD +@DRR015910.248 HWI-ST1182:184:D1KRDACXX:3:1101:18713:2066/2 +CTTTCGTTTTGTTTATCGACAACCGTCCAGTGCCAGTCCTGGGTGTTGTCGGGTAACGTCTCCTCTGCCAGCCATTGTAATGTTTGTGCGGTGAGTTTGT ++ +CCCFFFFFHHHHHJGJIIIIJJJJJJJJJJIJJJJIIJJJIJIB@AGIIIEHHAEFFFFDEEEEDDDDDCCDDDDDDDDEEDDDECDDDDD<@CCCA +@DRR015910.249 HWI-ST1182:184:D1KRDACXX:3:1101:18909:2013/2 +CGCTCATGCTGGCGAACCCAGACACGCAGAGTCTCCGGCGTACAGCCAATCTTTGGAGCAATGGAACAAATTGTCGCCCATTGTGAGTCATATCTGTCTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJGHJJJIJIJFFFFFEDEEDACDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDCDDEEEDEEEDDD +@DRR015910.250 HWI-ST1182:184:D1KRDACXX:3:1101:18765:2083/2 +GTCCAATCCCGAAAGCGTGCGATCCGTTAAGCCATTACGGCCTGATCAACGCCGTTGCCGCCTGTGTCGATGACAATGCAATTATCACCACCGACGTTGG ++ +@@@DDDDDHHH1@FFAFC@@@?8CGHBD1:BBA3>CCC:>3:@:@@C(:>?C@@&)05>@<9A +@DRR015910.252 HWI-ST1182:184:D1KRDACXX:3:1101:18805:2130/2 +GGTCCGGCCAAAACGCCGGAAGGTTATGCCTCCGGTTCTCTTGGCCCAACGACCGCCGGACGGATGGATTCTTATGTCGATCAACTGCAAGCGCAGGGCG ++ +BCBFFDFDHHHHGJJIJJJHIIJFHIJJJJJJJJJHIIHGFHGGFFFDDDBDDDDDDDDBDDDBDDDCDDDDEDDDEEDDDBDDDDDDDDDDDDDDDDDD +@DRR015910.253 HWI-ST1182:184:D1KRDACXX:3:1101:18894:2226/2 +TCGTTAAGCACAGCGGACATCTGGTCGAGGATCTCTGCAAGACGTGTCATACGATCAGTTACTCTGCAAGTCTTGCTGCGCTTCGTTGATCAGCGCATCG ++ +CCCFFFFFHHHHHJJJJJJJIJJJHIJJJJJJJIJIJIJJJJJJHJIJJJHHIHHHFFFFFFEEEEEEEDDDEEDDDDDDDDDDDDDDDDDEDDDDDDDD +@DRR015910.254 HWI-ST1182:184:D1KRDACXX:3:1101:19109:2089/2 +TCTAACTATTTTACTATTGATAAGCACTTTGAACATAAGCATGATAAAGGAGAAATTTATAGTGGCATTAAAAATGCGTTCGAACTTAGAAACGAACGAG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJJJJJJJIIJJIHHIJJJJJIIJJJJJJJJIJIJJIJIJJJJJJJIGHFHFFFFDEEEEDEDDDDDDDD +@DRR015910.255 HWI-ST1182:184:D1KRDACXX:3:1101:19135:2152/2 +CCGCAGGGACTACCTTCACAAAGTCACAACGACCGTCAGCAAAAACCACGCAATGATAGTCATTGAGGATTTGAAGGTCAGCAACATGTCAAAGTCAGCA ++ +@@@FFFFFAFHHDGIJIGEHIGIHGGDHGGHGHIGHIGAHGHIIIGEIHGEHFFFECEDEEEEEDCCDDDDDDEDDCCDDCCCCB:>>@DCDD +@DRR015910.256 HWI-ST1182:184:D1KRDACXX:3:1101:19024:2166/2 +GTACGAAGGTATTGGTGGATTCCCGATGGCGTTTACAGATTTCGCTAACCTGGATGTGCTGGGACTCCCCGTTCCGCTGATTATCTTCCTGATATGTCTC ++ +CCCFFFFFHDHHHJJHIIIJJIJJJJJJJJJJJJJJJJIIJJHIJIHIJJFGIHIHHHHHHFFFFEEDDDDDDDDDDDDDDDEDDDEDDDDDDDEDEEED +@DRR015910.257 HWI-ST1182:184:D1KRDACXX:3:1101:19354:2101/2 +CCAGAATGGCGCGGGTATTCACGTTCGCGCCAAAGGCGATACCCTGTGAAGTAATTCCGCCAATCGGACCTGTTTCTACCGTCAGAATAAAGTCATCAGC ++ +BB@DDFEDHGHHHJJCGHJIJJJJJIJJJJJJJIJHHHFFDDEDDDDDEECCCDEEEDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDCCEDDDDD +@DRR015910.258 HWI-ST1182:184:D1KRDACXX:3:1101:19266:2115/2 +GTTGTTATGATCCACGCCTTTATTAAAAAAGGGTGTTTTCAGGATTCGGTCAGTTTAATGATTATTTCACGAAAACTCAGCGAATCAGAAAATGTTGATG ++ +BBCFFFFFGHHHHJJJJJJJJGIJIJJJJJIII8D?GHJIIJJGHGIIIFFHHFHIIJJIIHHHHHHCDFFFDDDDDDDDDDDDDDDDDDDDDDC@CCCD +@DRR015910.259 HWI-ST1182:184:D1KRDACXX:3:1101:19373:2244/2 +ATACAATTTAGCGATCATATAATTGCACCACGAAAATCATCTCATTTTCACATTTTTATGGGTAATGATTCCCAACAGTCTTTATTGAATGAAATGGAAA ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJIIJJJHHIIJJJJJJJJJGIJJJJJJJHHHHHFFFFFEEEEEEEDDCDC@CDCDDD +@DRR015910.260 HWI-ST1182:184:D1KRDACXX:3:1101:19627:2061/2 +CTGTAGATCATATCGGTGATAGCCTGGCATGCGCCCGGAGCATCACTAACATCGCTAAAAAATGCCTGATATTGCCGGGACATGATCTCAGTAAAACTGC ++ +??@ADDBBFFBBF@DEDAB:8505<>@B@>AAAB::@AB@@(4 +@DRR015910.261 HWI-ST1182:184:D1KRDACXX:3:1101:19738:2237/2 +TTATCGCCAAAGGTGGCAATTGCCAGGTCAGAAGGCAGTTTGCCGTCGCGACGCAGCGTGACATCCATCACTCCTTGCAACAACGCAAACGACGTTGTGA ++ +CCCFFFFFHHHHHHIJJJJJJHIJJJJIIJJJJJJJJJJJJJJJJIIJJJGFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.262 HWI-ST1182:184:D1KRDACXX:3:1101:19874:2049/2 +ATCCCACCACGCCTGGATGCCGTTAACTTCAACGCGTTTTGCCACTTCTTCCATCAGTTCGAGGGTACGCGGATGCAGCTCTTCCGTGTCTTTGTGCACG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJJIHHHHHHHHFFFFDD?CDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDD +@DRR015910.263 HWI-ST1182:184:D1KRDACXX:3:1101:19895:2183/2 +GCAATTTGCGGTGAAGCCACCAGCACCAGTGATTGTTCACCCAACTCTCGTCGATTCAGAGCATCATCATTCCCTACACGATAAAAGACGCCAACATCGG ++ +CCCFFFFFHGHHHJJJJJJJJJJJJJJJJHHIIJIJJIIJGIJIJJJJJJJJIJJIJJJHHHHHFFFFFFEEFEEEEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.264 HWI-ST1182:184:D1KRDACXX:3:1101:19914:2238/2 +GCGGCAAAGAAAATAATCAATGTACAAACCCGCAAATAAACATCTTTTTTATACGCAAATACATACAATCCGGTCGGCAAATAGGCGAAGTGCTCCATCG ++ +CCCFFFFFHHHGHIJIJIJJJIHIIJJJJJJJJIJJJIIIGIIGIIJJJJIHIJJHEHFFFFEEFEDEEDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDD +@DRR015910.265 HWI-ST1182:184:D1KRDACXX:3:1101:20109:2070/2 +GGCCCAGCATCAGTAAAAGTTGAAAGAGATTAGCTTTTTCCTCTTCCAGCTCAACCACCGCCAGCCGCAGACGTGTTTCCACCATTTCAACCATGATGGA ++ +CCCFFFFFHHHHHHIJJJJIIJHJJJGJGIJJJJJJJJJIIJIJJJJIJJHIIJJJJJJJJJJJJHHFFDDEDDDABCDDEDDDDDEDEDDDDDDDDDDD +@DRR015910.266 HWI-ST1182:184:D1KRDACXX:3:1101:20176:2196/2 +TGCTGACCTGCCGAGTCCGCAGCAAAAACTCGATATCCTGCAGGAAACCATCGCCTTCCTGACGCAATCGGGCTATCAGTTTATCGGTATGGATCACTTT ++ +CCCFFFFFHHHHHJJHIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHIHHHFFFFFEEEDDDDDDDDDDCDDDDEEEEEDDDDBDDDDDDDDDDDD +@DRR015910.267 HWI-ST1182:184:D1KRDACXX:3:1101:20350:2006/2 +CGCGGCTTCCGTTATTCTGCCGGATTCGTATAACACCCGGTAACCACCGTAAGCATCGGCCTGAAGCACACCGCTGTAACCGGCCAGGTGATTCTGTGGA ++ +CCCFFFFFHHHHHIJJIJJJJJJIJJJJIIGIJJJJJJJIGHJJIHHHFFDEEEDEEDDDDDDDDDCDDDDDDDDCDDEDDDDDDDDD@CCDEDDDCCDD +@DRR015910.268 HWI-ST1182:184:D1KRDACXX:3:1101:20590:2128/2 +GACGAAGCCCTGCCATGTGCTGACGTAAGTAAAATCAGCCACCCACAGCTGGTCAGGTCGTTCTGCCACGAACTGACGGTTTACGCGGTCGCCTGCGGCA ++ +CCCFFFFFHHGHHJJJJJJJIJJJJJJJJGIIJJJJJJIJIJIJIJJJJIHHCFHJJHIIHHHHFFFFFDDDDDDDDDDBDDDDDDDD@DDDDDDDDDDD +@DRR015910.269 HWI-ST1182:184:D1KRDACXX:3:1101:20727:2204/2 +GTCGGTAACCTCGCGCATACAGCCGGGCAGTGACGTCATCGTCTGCGCGGAAATGGACGAACAGTGGGGCTATGTCGGGGCTAAATCGCGCCAGCGCTGG ++ +@@@DF@DDHDFDHGGJGIJIGIFHIJDE@F?CCDH;AGIHI=D==EFFDD?BBCDCCCB;;BDDACDDDB>BCCDCDBDDBBBCACCB<55>@B<55?B9 +@DRR015910.270 HWI-ST1182:184:D1KRDACXX:3:1101:20776:2153/2 +TTGCTTTCTTTCACGGCCACTCTGCCTGTATGTGCCCGTTTCGATGGCGGTACAGCAGGTTTTCGCTCAAGCAACAGCGCATTCTGGCGCATGATCCGGT ++ +BC@DFFFFHHHHHJJJIIIJJJIIIJJIIIJGIIJJJJIJJJJIJIJJIJJHHHHHHFF@DFDDDDDDDDDDDDDDBDDDDDDDEEDDDDDDDDDDDDDB +@DRR015910.271 HWI-ST1182:184:D1KRDACXX:3:1101:20987:2158/2 +CTCTGAGGATATTGAAGAAATAGCTAACCACGATTTTGTTTTTTTTGGGGTTGAAACTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGTG ++ +CCCFFFFFHHHHHIIJIJJJIIHHHIGIJIJJJJIJJJHGHJIJJJJIJGEBDDFCEEECEEDDCCDDDEDDDDDDDDDDDDDDDBDDDDD@BD>CAB>B<<>>@C<9@A442895.85:C +@DRR015910.274 HWI-ST1182:184:D1KRDACXX:3:1101:21094:2187/2 +CCGCGATATTGCTCTGCGGCGTTACCGCCGTGCGCCCGCCCGCAAAGGCATTCGGCTGGCTGACGTTGCTGGTTTCGTTAATCGAAACGGTCAAACTACC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJHIHFFFDDDDDDD@DDDDDDDCDEDDDDDDDDDDD@DDDCCC9ABCBACDDEDDDDDDDDBB@C@C +@DRR015910.275 HWI-ST1182:184:D1KRDACXX:3:1101:21244:2187/2 +CAATAAACAGGATGCTGTTAGTGTCCTGCTCCAGCTGCTTGAGCAACGCTTTAAAACGTTTTTCAAAGTCGCCGCGATATTTTGTGCCCGCTAACAGAGA ++ +CCCFFFFFHHHHHJIJEBHEHHCFHHEIJJIGEGGGIHGHFGIGIJIIJJGEHIJIJHCFGIIJJH477?EFEDDDD@BBDDDDDDDCD>@9BBDCC>>A +@DRR015910.276 HWI-ST1182:184:D1KRDACXX:3:1101:21262:2086/2 +GTTTTATCAGGGCGAGGCCACACCTTATCCGCTATCAATGTGCTGGTTTGATATGTTTTACTCGCCGGAGCTGGCGCGACGCGTCTATAACAGTCCTTTC ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJIJJJJJJJJJJIIHIIJJJCGIHGHHHHHHHFFFFFDDDDBDDDDDDDDDDDDDDDDDDDEECDDDCDDDDDD +@DRR015910.277 HWI-ST1182:184:D1KRDACXX:3:1101:21363:2226/2 +AATCTGGATAACATCGGAACGACTCCGCTGGCAGAAAAGGTGAAAACCAAAGCCTGCGATCTGGTGTTAAAGCAGGGGCTGAACTTCATTTCCTGAACCG ++ +CCCFFFFFHHHHHJJJJJJJIJIJJJJJIJJJJJJJJJFHBDHIIJJJJJHGIHHHHFFDDEEEACDDDEDDDDDDDDDDDDDDDDDDEEEEEDDDCDDD +@DRR015910.278 HWI-ST1182:184:D1KRDACXX:3:1101:1282:2348/2 +TACCTACCCTGCGAGTTAATTCAGAGCAGGCCTGAAATACCTGTAGAGTGCAATTCCATATCACGCGATAGATTCTATTCATATAAACGCTCCATATACA ++ +CCCFFFFFHHHHHIJJIJJJJJJJGIJJJJJJJJIJJIJJIJIHGIHIHHHIIIIJJJJIJIGJJJHFFFDEEEEEEEEEEEEFEECDDDDDDDDDDEEE +@DRR015910.279 HWI-ST1182:184:D1KRDACXX:3:1101:1645:2396/2 +TGATTTCCGGTTTGTACAGCACGTAGGAAAGCCACGGCGCAATGATAAGCAAGATAACCCCAACCGGCAGGAAGCAGAGGAACCACTGCAACCAGCTAAT ++ +@@?D?DBBB?CDAFIDGIE3EFA?;DFE@;@@EFFECFACC?;B;@BCC>=;;?=??@BBBBB@B +@DRR015910.280 HWI-ST1182:184:D1KRDACXX:3:1101:1639:2468/2 +GGTCGGGAAAGGCCGAGGCAAACGGAACGACCGACGGATCGCGACTGGCCTGCAACATATCAAAAATATAAGTGTTGATATCGACTGCTTCATCTCGAGT ++ +?@@DDFFDHFHHHJIIJJJJJJJJJIJJJJJIJHFDDDDDDDDDDDDDDDCBDDCDDDDEDCDDDDDCDCCDCCDDBCDEEDD@BDBDDCCCDDDDA@B> +@DRR015910.281 HWI-ST1182:184:D1KRDACXX:3:1101:1698:2486/2 +GCTCTTTTTCGGGGCTGTGGGGTATTTCCAGGGCCTCTCCTTTACCACTCTCGGGAAGGCCCTTTCCCTTCTCGTCGGTAATTTCACAAGTTGTCCCATA ++ +CCCFFFFFHFFFAEIJGJJJJJDDFGIIIIJIJIJJEGIIIIIGH@@EGIDEEHFBEDDDDDDDDDDDDD?CA@@BBDB?@DDD>:AACDCCCCCACDDD +@DRR015910.282 HWI-ST1182:184:D1KRDACXX:3:1101:1596:2498/2 +GCAGGAACGGGTTCATACCGGATTTAATAATTGCCTCTTCACGATAAGCGCGAGTGGTACGTTTTACTGGCTCAATAACACGAATGCGGAACGGTTCAGG ++ +CCCFFFFFHHHFHIJIHHHIJGHIJGIIIJJJIIIIGIJIEIJIJGIEGHHHHG??D@EEDEDDDDDDDDDDDDDDDDDDDDDBBDDDDBDDDDEHC=BDCCDED??BDDDCDBB@AC?>;>>ACCDCCDC@>ADD?>AAB@:>C +@DRR015910.286 HWI-ST1182:184:D1KRDACXX:3:1101:2029:2325/2 +TAGTGAGTGTGCACTATCCCCAGTGCGGCATAGCAATCCTGTAAACGCTCGGCGACAATACGTACCGCACGCACATCAAACAGCTCATCAAAGGCGAGGT ++ +BCCDDDDDFFHGHJJIJIJIJJJHIIJJJHIEIJIIGIJJJJIJJIGDIGFGGEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDD9 +@DRR015910.287 HWI-ST1182:184:D1KRDACXX:3:1101:2077:2437/2 +GTGTGGTCAGCCGGTATCGATACGAATATCGCTGGATGACGAGTTGCGGATCTACAGTAATGAGAAACTGGTGGCCTCACATCGCCTCTGTTCAGCATCG ++ +?==4ABBDHHHHHDHIGGEGDGGIEI;DDHIGIFGF>?FHCDG;;CGBE:=BC;CCE;;A;5>@CCCC>CC>?@B93?C@ACCCCB +@DRR015910.288 HWI-ST1182:184:D1KRDACXX:3:1101:2188:2491/2 +GAATATCCGTATGCGGGGGCGTTTTTCCGCTGTCTGAACGGAAGCCGCAGGATATCGCTGTCTGACCTGCGATTTTTCATGCCGTCCCTGACCGCAGAAG ++ +CCCFFFFFHHGHHJJJJIJIFFDDDDDDDDDDDDDDDDDDDDDBDDDDDDBDDDDDDDDDDDDDDDDDDDDBDDDDDDDEDDDDDDDDDDDDCDDDDDDD +@DRR015910.289 HWI-ST1182:184:D1KRDACXX:3:1101:2354:2254/2 +GGGAAAACGACACAATCAGGCGCTTATCGCCCTGGCGAGACGACGCTGCGACGTTCTGTTCGCCATGATGCGCGACGGGACTTTTTATACCCCGCAGGGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJIJJJJJJJJIIJJHHFFDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.290 HWI-ST1182:184:D1KRDACXX:3:1101:2459:2310/2 +ACCCACCAGACACTGTCCGCAACCCGGATCACGGGTCAACGTTAGAACATCAAACATTAAAGGGTGGTATTTCAAGGTCGGCTCCATGCAGACTGGCGTC ++ +@C@FFFFFHHHHHJJJJIIIJJIJJIJIIJIJIJJAGIIIJIIHGFHHFFDFFFEEEEEEDDDD;?B8CDEFEEDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.291 HWI-ST1182:184:D1KRDACXX:3:1101:2694:2334/2 +ATATTGAAGGCCAGGATTACCGCGCTTGCCAGAACTACGGTCCGTTGTACAAGCGTTAATACATTACTCCCTGATGTGATGCCCGGTCGCTCCGGCTACC ++ +CCCFFFFFHHGHHJJJJJJJJJIJJJJIJJJJJIJJIJJJHIJJJJJIJJEHHIHHHFFFFEEEEEEEDCDDDDDDFDEEDDDDDDDDDDDDDDDDDDDD +@DRR015910.292 HWI-ST1182:184:D1KRDACXX:3:1101:2684:2455/2 +AACACAGGCACTTTGTCACCAATCTGAAACCAGCGTCATAAAAAGCCGATTGCTACTCGACAAGACGTCCGTTACCCGAGAATTTTGCTGGCTTCGCGCG ++ +CCCFFFFFGHHHHJJJJJJJJJJJJJJJJIJIJJJJJJJJJJJJIJJJJJGIJJJJIJJHHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.293 HWI-ST1182:184:D1KRDACXX:3:1101:2605:2485/2 +GTGCGGCGTTATTTTTGACTGGGATAAATATAATCTCGAGCTGTGCGAAGAAATTAGCAAAATGAACGAGAACCTGCCGTTGTACGCGTTCGCTAATACG ++ +BBBFFFFFFHHHHJJJJGJJJJJFHHIJJIJIIIEHJJGIJIICHIJGHHDFFFEDEEEEDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDD +@DRR015910.294 HWI-ST1182:184:D1KRDACXX:3:1101:2903:2337/2 +CTATCAGTGAGTCCAGCTCATTCAGTCGGTTGTACTGGTTTTCCAGAACCATAATGAGATACGGTGGCAGTCTCTCTTTCATCCGTTCCAGTGCTTCGGG ++ +CCCFFFFFFHHHHJJJJJJJJJJJJIJJJIIGHIJJJIDHIJJJJJJGHIHIBGFFHJJIJJIJHGJHGHHHFFFFFFEDEEEEDDCDDEDCDDEDDDDD +@DRR015910.295 HWI-ST1182:184:D1KRDACXX:3:1101:2928:2460/2 +CATCCGCCCTGCGCCAGTCTTCAGCCCGTAAACCGTTACCGACCTCACTTCCCCGTGAAACCCGGGTCATCCGGCCGGAAGAGGAATGCTGCCCTGTCTC ++ +CCCFFFFFHHHHHJJJJIJJJJJJJJJJHIJJJJJJJJJJJJJJHHHFFFFFFEDDDDDDDDDDDD>BDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.296 HWI-ST1182:184:D1KRDACXX:3:1101:2894:2496/2 +CCGATAACCGTCAGGGCTGGACGGATGCCATCAACAATGCCGTACAGAAAGGAACTGCCCACGATGTGTTTGAGCCGAAACCGGACCGGGAGGTCATGAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJIJJJJJHHIJJGHIJJJJHHHGHDFFFFDEDDBDDACCCDDDDDDDDDDDDDDDDDDDDDDD2?CDDDD +@DRR015910.297 HWI-ST1182:184:D1KRDACXX:3:1101:3067:2424/2 +GCGGTTTGTTGTGTAACTCCAGCGACGCACGCTTCATCTCAATGTTAGTCAGTGCCACAAAGGAGAGAGCATTCCCGGCGGAGATTTGGATGCCGCACAA ++ +@BCFDDFFHHHHHIIIIJJJIJJJJJIIIIIJJJIIJIJFIJJFGHIIHHHHHHHFFFFFEEEBDDDDDDDDDDFDDDDDDBDDDDDDDDDCDDDDDDDD +@DRR015910.298 HWI-ST1182:184:D1KRDACXX:3:1101:3001:2424/2 +GCATCATTTTTTCCAGAGGCGGTCGAACTCCGCCTTCGCAAAATAAGCGGAAGCCTGGCGAAGGATATCGTTACTGCGGCGCAGTTCACGATTTTCACGC ++ +CCCFFFFFHHHHHJJJJJJIJIDGGGHECFHCGHGHGGFFHFFDDEC@BD@B;?ACBDDDBDBBBCDDDDCBBBDDDDDBBB>B?CCDDDBDDDDACDDD +@DRR015910.299 HWI-ST1182:184:D1KRDACXX:3:1101:3259:2274/2 +ATTAACGACCAGTTTCTTTGTTAGGGGTAAAGTTTTATTGTTGACACTTACTGATAACAGCGCAATGCCAGACTTACTCCCAGTAACCGTCATTTTATAA ++ +CCCFFFFFHHHHHIIJJJJJIJJJJIICGIIJIJJJJJJJJJIJIIIIJIIHIJJJJJJJIJIHHFFFFFFCDEEEDDDDDDDCDCDDDDDDDEEEEDEE +@DRR015910.300 HWI-ST1182:184:D1KRDACXX:3:1101:3317:2288/2 +GCACAGACTGTCGGGCATCTGTTCAGGTATCTGCACTGGTGCCGGGATTTTATTATCCGGCTCCGGAGTTAACGTCACGGGAAGTAGCGATGTTTCATGT ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJFHIIIIJJJJJJBGHIIJJFHIIGGJJIIIJJHHFFDDDDD=CCEDDDDDDDDDBDDACDDDDDDDDEDEEDD +@DRR015910.301 HWI-ST1182:184:D1KRDACXX:3:1101:3448:2304/2 +GGTAATACACTAAAACCGGTGTACCTGTAGTCGTGCAGGAATCACCTGCGGGTATGTTGTAGCATTCATATAATCGCGCCAGCGCCATAGGAGGAATGAC ++ +B@BDDFFFHGHHGJJJJIJHIGHIJIIFHIIJGIJJJJJIJIGIJJGGJJHI8AEDEFFFFEEEEDEEEEFEEEDDDDDDDDDDDDDDDDDDDDDDDCDD +@DRR015910.302 HWI-ST1182:184:D1KRDACXX:3:1101:3471:2317/2 +CCCATGAACGCGACGAAGCGCGTGATTTATTGCATAGTCACGGCACGGGCAAAGGCCGCGCATTTTGCGAAAAACTGGCGCAGCAGGCGGGTATTGATCA ++ +CCCFFFFFHHGHHJIHJHGIIJAHIJJJIIJGHIIJJIFGHHFFDDDDDDBDDCC8?@BDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDD5>CDCDCCE +@DRR015910.303 HWI-ST1182:184:D1KRDACXX:3:1101:3494:2319/2 +CCGTTAGACAGGTGCACGATATAGAGCGGGGCGTTACCGGCAATTTGTGCCAGGTTAATCATGCGGGCGATGGCTTCCGCTTCGCATTCCAGAGGGCGAC ++ +@C@DFDDFHHFBHHBHIIEHGG?ACBCCCCECCCCCBBCCBCBBBCCBCCCB@BBBB>BCC>@>CABBBBBB +@DRR015910.304 HWI-ST1182:184:D1KRDACXX:3:1101:3677:2260/2 +TCTGAAGATATCCTTTAAGTTTACTCGCTTCCCGACAAAACGATGATTAATTCAGAGTTATATACCAGGCTTAGCCTGTCTCTTATACACATCTGACGCT ++ +CCCFFFFFHGHHHJJJIJIHJJJJJJJJJJJJJJJJJJJJHIJGGIJIGIGHGJJJJHIIJIJJIEHHEHFFFFFFEEEEEEDDDDDDEDDDDDDDDDDD +@DRR015910.305 HWI-ST1182:184:D1KRDACXX:3:1101:3578:2420/2 +TTCTTTGTGGTCAGCTTTATGAACGTATCCATACCCGCGACATGCGCATGATGGGCGGTCTGTGGAGCAAGATGAAATGGCTGCCAGCACTGTCGCTGTT ++ +@BCFFFFDHHFHHJJJIJIJJJJJIJIJJIIIJJGJIJIJJJBHGHIIJGEHGGHFFB@BDDCDDDDDDDDDDCDCDCCDDDDDDDCDDDCCC@BBBB<@ +@DRR015910.306 HWI-ST1182:184:D1KRDACXX:3:1101:3525:2449/2 +GTGGCCACCATGGGGGAAGCATCAGCGTTTAAATCGGGGCGAGAGTTCGCCGCATATGTTGGTCTGGTTCCAAAACAAACTGGCTCCGGAGGGAAAGTAC ++ +CCCFFFFFGHHHHJIJJJJJJJJJJIJJJJJJJIJJJJIDFCBDDCDDBD;BDD?CCDCDDDD@B@DD +@DRR015910.313 HWI-ST1182:184:D1KRDACXX:3:1101:4573:2340/2 +GTTCTAAAGGCCGTATACCGTCAAAGCAATACAAATTAAATCTGTTTATATTAAATCTTATACTTATTAAAGTAAAGCAGACAAAAAGGAGACCTTATGT ++ +B@CFFFFFGGGHHHHGIJJJHIJJJJJJJIJIJJIIJIJIIIJIIIJIJJFIIJJJJJJJJJJJJJJJJJJJJJJHHHHHFFFFFDDDDDDDDDDDDDDD +@DRR015910.314 HWI-ST1182:184:D1KRDACXX:3:1101:4513:2360/2 +GTCACCTTTGTTAAGCACGACGTTGTCATCTATCGGCATCTCAATCTGGCTACGAATGACGCGGTTAAGGAAGCAACCGTGATCGGTCAACTTCAGTTGT ++ +CBBFFFFFHGHHHIIJJJJIJJHIIIJJJJIIJJIJJJIIIJIJIJIIJJHIJGHIJIHHHHFD?BDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDCDDC +@DRR015910.315 HWI-ST1182:184:D1KRDACXX:3:1101:4948:2271/2 +TGACTAAAAATACTCGTTTTTCCCCCGAAGTCCGTCAACGGGCAGTCCGTATGGTTCTGGAAAGTCAGGGCGAATATGACTCACAATGGGCGACAATTTG ++ +CCCFFFFFHHHHHJJJIJJJJJIJJJJJJJIJJJJIJJJJJJJJJJJJHEEEFFDFFFEEEEEDDDEDDDDDDDDDEDEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.316 HWI-ST1182:184:D1KRDACXX:3:1101:4911:2306/2 +TGCGAATGTTGAACGGTTCCAGTACGCCGAATACCTCTTTGCCAACGCCGCAGGCTTTTGACAGGTCATTGCCAATCAACGCGACCAGCGCCAGACCTTC ++ +CCCFFFFFHHHGHJJJHJJJJJIIJJJJJJIJJJIJIJJJJJIJJJJJJHDFDDDDDDDDDDDDDACDDEDDDDDDDDDDDDDDDDDDDDDDDBDDDDCD +@DRR015910.317 HWI-ST1182:184:D1KRDACXX:3:1101:4978:2325/2 +CTGGTGACCGATGCCGAATCTATTCTGTACTTTGCCGAGATTGGGGTGGTGCTGATGCTGTTTATTATCGGCCTCGAACTCGATCCACAAAGGCTGTGGA ++ +CCCFFFFFHHHHHJJJIIJJJJJJIJIIJJJJJJJIJDG@FHIIJIBHFB@CEECEEEDDDDDDDDEFDDDDDDDDBDDDDBDDDDDDDDDDDDDDDDDC +@DRR015910.318 HWI-ST1182:184:D1KRDACXX:3:1101:4867:2355/2 +ATGTGAGATATGCTGATGATTTCATCTGTTCAGGCAGCTCCCGTGAACTGCTGGACAATGAGGTCAGACCACTGATTGCAGCTTTCATGCGCGAACGAGG ++ ++1>2+@<2>=A7A77.7=AAAAA>@?@@>>@@5;>;==6''00)50 +@DRR015910.319 HWI-ST1182:184:D1KRDACXX:3:1101:4895:2446/2 +GTTGCATCAGTGACCGGTCAGTCTCCCTGACATAATCTGCAGCATCAGCCGCGCGGTAATGGCAGATATCCTGTATTTCTGATCTGCCTGAAGAATCAGA ++ +BCBFFFFFHHHHHIJJJJJIJJJJJJJJJIJJIJJIIJIJIJJJJIJJJJGIJJHFFDDEEDDDDDDDECEEDDDEFFFEDEEDEDDDDDDDDDDDDDDD +@DRR015910.320 HWI-ST1182:184:D1KRDACXX:3:1101:4860:2454/2 +AAGCTCATCCAGATAGCCGTTGCCCGACCGACCAGATTCGCTTCCGGCACAAAGCCCCAGTAACGGCTGTCCGCGCTGTTGTCGCGGTTGTCGCCCATCA ++ +CCCFFFFFHHHHHJGGIJJJJGIJJJIJJIJIJIJJJJJIIIJGHHFFDDCBDDDDDDDDDDDDDDDCDBDD@BDDDD>CCDDDDBD>BBDCDBBD@CCC +@DRR015910.321 HWI-ST1182:184:D1KRDACXX:3:1101:5220:2425/2 +CTTTCTGGCATTCAGACAGTTTTTCAATCACCAGCGATCCTGCTTCGCCCTGAATCTCGCTCGCCAGGACAGAATCACTGACTTTTGAGTGCTGCAAGGT ++ +CCCFFFFFHGHHHJJJJJJIJJJJJJIJIJIIJJJJJJJJJJJJIIIJJJGHHIJJJJJJJJHFFFDDDDDDDDDDDDDDDDDDDDCDDDDDEDDDDDDD +@DRR015910.322 HWI-ST1182:184:D1KRDACXX:3:1101:5030:2480/2 +GAATACGCGCCAGCAGGCGTTCAGCGCCAATACTGCCCATCCGCTCACGCGGCGTCAGCACGCTCGCAAGTCGTGGCTCCATCACCTGACCAATGTCATG ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJIJJJJJJJJHHHFFFEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDBCCCDDED +@DRR015910.323 HWI-ST1182:184:D1KRDACXX:3:1101:5144:2490/2 +CTATTGGATATTCTTTCCAGGAACGAATATCCAATTAATAAAGACGCAAGAGAATTATTACATTCAGCCCCGAAAGAAGCCGAGCTTGATGGAGATCAAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIJJIJIJJGIIJEHIJJIJIDFHIIIJJJJJJJJIJJJJHHFFDDDDDDDDDDDDDDDDDDDDDDDDDCD +@DRR015910.324 HWI-ST1182:184:D1KRDACXX:3:1101:5567:2260/2 +ATCCGGCTGCAGCCTTCTTACAAAATTTCGCCTGACCGGTGAAAGCACGGACATCCACCCCGTTCAGCGCCGCAACATCCTTACCTGCAGCGGCCAGTGC ++ +CCCFFFFFHHGHHJJJJJJJJJJJJJJJJJJJJIJJJJJFGHIIIIJJJJIHHFFFFFEDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDD +@DRR015910.325 HWI-ST1182:184:D1KRDACXX:3:1101:5509:2326/2 +GTGTTATACGAATCCGGCAGAATAACGGAAGCCGCGTGTATGGCTCATGCCCGGAGAAAAATCCACGATGTGCATGCAAGAGTGCCCACCGACATCACCA ++ +CBCFFFFFHHGHHJJJJJJJJIIIJJJJJJIJJJIJFHHIIJJHHHEHBE?BBC>BBDDDDDDDCDDDBDDDDEEDDDDCDDCCCDDDDDDDDDDDDDDC +@DRR015910.326 HWI-ST1182:184:D1KRDACXX:3:1101:5637:2341/2 +GCTTGATATGGGAGCTTATGGAGGCTCTCTGTACAAGGTTAGGGAGCTAACAAAGCAGGGATAAAAAGTCCGCCTGATGCAGGCACGGTTCGTTAAATCT ++ +CCCFFFFFHGHHFGIJJIJIJGIJIGHCGGHFIIIIAGCGEGIIAFFGIGGHJJJIIGIJEHJJJHHGEFFFFDDDDDDDDDDBDBDD?@BDBCBBCDDD +@DRR015910.327 HWI-ST1182:184:D1KRDACXX:3:1101:5594:2347/2 +AATCAAGGCTTCTTTGGAGATGAAATGGTGATAGAGCGTCCCGGGACTAATGGCGCAAGATTTACAGATGGCTTTCATCGAGGCACTGTGAAATCCATTT ++ +CCCFFFFFHHHHHJJJJHIFGGIIIJJJAFGGIIIIIJIJJJJJJIJJIJIJJJJJHHFFFFEEEEEEEDDDDDDDCEEDDDDDDDDDDDEECCDCCDEE +@DRR015910.328 HWI-ST1182:184:D1KRDACXX:3:1101:5931:2264/2 +GCTGTATCCAGTCATACAGTGACTGCATCAGTGGCGCGGCTCTGGCTTTTCTTGCCGCCAGACGCTGTTCTGCTGAACAGCCCCGGACCTCTGCCTCGAT ++ +C@CFFEFFHHHHHIJIIIIFIIJJJIJJJIJEHJJJIJJIIIIIJGIIIJGIJIGIHHFFDEDDDDDBCDEDDDDDDDDCBDDDDDBDDDDDDDDDDDDD +@DRR015910.329 HWI-ST1182:184:D1KRDACXX:3:1101:5851:2409/2 +GAATGCGGTCGATGATTTCCTTTAAGATGCGATCCTGCAAGGCTTGTTGTGAGGCCATCACCCGATGACCGTAACTATTTTCTTGTTGCAGGTAGTCCAG ++ +CCCFFFFFFFHFHIIIJIJJJJJIIIIIJGJJJJJJJIJIIJIJJJHIJHHGIJGIJHHHHHFFCDDEDDDDDDDEDDEEEEDDDDDBDDDD8CCCEDDD +@DRR015910.330 HWI-ST1182:184:D1KRDACXX:3:1101:5754:2450/2 +AAGAACCATTTACTTTAATATTTACATGTTTAACTATGTCATCGGGAAACTTGAATAATTCGTTTTCTACATACATTTTTAGTTCATTGATTGTCATCTT ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJJIJJJJJJJJJHIJJJJJJGIIJHHIIJJJJJJJJHHJJJJJJJJJJJJJHHHHHHFFFFFFFEEDEEEFDDD +@DRR015910.331 HWI-ST1182:184:D1KRDACXX:3:1101:5820:2456/2 +GCTTTGTAAAGACCATTGATGCTCTCCGCCATCGCGTTGTCATACGAGTCGCCTGTACTTCCTGTTGATGCCAGTAATCCGGCTTCCTTAAGCCGCTGTG ++ +CCCFFFFFGGHFHIJJJIEEIIJJJJJJIJIJIJJJIIIGIJJIJJIJDHAHHIJJHHHHHHFFFFFFFEEEEEEDDFDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.332 HWI-ST1182:184:D1KRDACXX:3:1101:6043:2274/2 +GTATCATTATTCCACTGACGATGCCGGGAATTATTGCCGGATGTCTGCTGGTGATGCTGCCAGCGATGGGCCTGTTCTATGTGTCCGACCTGATGGGCGG ++ +B@@FFFFFGHHHHJJJJJJJJJJJJJJJDIJJJJIJJJJJGGGHHIIIJIGDHHIJHHHHHHFFDDDDDDDDDDDDDEDEEEEEDDDDDDDDCDDDDDDD +@DRR015910.333 HWI-ST1182:184:D1KRDACXX:3:1101:6129:2300/2 +GCTGATACCGCCGAGAATGCCGCCCGCATGGTTGCTCTGGAAACCGTCTTTGGTGATTTCGTCGCGGTTCTGGCTGCCGCGCAGCGCCACTACGTCAAAA ++ +C@CFFFFFHHHHHIJJJJJIJJIJJJJJIJJIIJJIIJJJGHHHGFEFEDCEEBBDDEEDDDDDDDD@DDDDDDDDDDBDDBBDDDDDDBCDDDBBDDCD +@DRR015910.334 HWI-ST1182:184:D1KRDACXX:3:1101:6139:2361/2 +GATGCGCATCAGCGACAAACTGGCGGGTATCAACGCCGCTCGCTTTCATGACTGGCAGCCAGATTTCACGCCGGAGAATGCCCGCCAGGCTATTTTGGCG ++ +CCCFFFFFHHHHHIIJIJDGJJJFJJJ4=EEEFEDBABBB@BBDDDCCDDACCCDD@B@BABACCD>@CBBBDD7>5?>C@CCBBD@@CB +@DRR015910.335 HWI-ST1182:184:D1KRDACXX:3:1101:6232:2420/2 +GGCTGGAGCGTGGAATTGCCGAAGGATGTGCATGACATCCTCAACAAACGCACCAACTCAACCTGGCCAACCACCTGGTTTGCACCGCGCCTCACCGGTA ++ +CCCFFFDFHHFHHIJJJJJJJJJJJGEGBGGGGIIIIJJJJJJJGIJJIJHHJHHHFFFFFEEEEEDDDDDDDDDDDDCDDBCEDDDDDDBDDDDDDDDD +@DRR015910.336 HWI-ST1182:184:D1KRDACXX:3:1101:6419:2336/2 +GCGACGTTCTGGGTTCTTATCAGCACGGTGCGCGTATCGGCGTTCTGGTTGCTGCTAAAGGCGCTGACGAAGAGCTGGTTAAACACATCGCTATGCACGT ++ +CCCFFFDFHHHHHGHGIJJJJJIJJJJJ?FHIJJFHIJIJIHFFDCCCAC?BDDDDDDDDDDDDDDDDDDDDDDDDDD?ACCCDDDDDDDDDDDDDEDDD +@DRR015910.337 HWI-ST1182:184:D1KRDACXX:3:1101:6257:2406/2 +GGTATAGGCCGAACCGGCCTCCGGAAACTGGCGAACCAGTTTGCCGTAGCTGATAGCGGTAAACAGCACGCCCGCCAGCGCCAGCAAATAGGACGCCGGA ++ +@B?DDFFFHHHHHJJIGIJIJJJJJJJJHGIGIIJGHHHEEFFFFDADDDCCCCCDDDDB@DDDDDDDDDDDDDDDDDDDDDDDBDDCDDCDCCDDDDDB +@DRR015910.338 HWI-ST1182:184:D1KRDACXX:3:1101:6411:2451/2 +AGCCTGCAGCTGGTCCGTGTCACCACTGGCCACAGCCCTACCGCCACCGGCCGCAATCAGGGCGTATGCCCGTGCCATGTCGGTATTGCCCACCATTGAG ++ +CCCFFFFFHHHHHIIJJHIJJJJIJIIJGHJJIIIJJJJJIJJJJJJJIJEHFDDDDDDDDDDDDDDDDDDDBDDDDDDDDDD;?A@ACCCDCAC:4599@B@::A2?C:ACA@99>BB<>@ +@DRR015910.348 HWI-ST1182:184:D1KRDACXX:3:1101:6866:2459/2 +TGCGTATCCTGTGTTGAAACAATATGGCATGAAGGCGACGGCGTTTATTGTTACCTCACGCATCAAACGTCACCCGCAGAAGTGGAACCCAAAATCGCTG ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJIJJJJIJJJIJIJJJJJIHHFFFFFDEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.349 HWI-ST1182:184:D1KRDACXX:3:1101:7250:2295/2 +GTCGTTTACCAGCGGGTGGTCAGGCTACGCCAATGACCTATGAAGTGAATGGTAAGCAGTATGTGGTGATCTCCGCAGGCGGTCACGGTTCATTTGGTAC ++ +CCCFFFFFHHHHGJJJ?FHFHIIJIJIJJJJJJIIIIJGGIGGGG@EEHEEH=@DFFFCCEDE@CC;?CDDDDDDDDDDDDD>BBDDDBDDDEDEED8>C +@DRR015910.350 HWI-ST1182:184:D1KRDACXX:3:1101:7062:2389/2 +GTTCATCGGCAATCACCACATCCGGGTCGAGCATCAGACCACGGGCGATGGCGATACGCTGACGCTGACCGCCGGAGAACATATGCGGATAGCGGTCATA ++ +CBCFFFFFHHHHHJJJJJJJJJJJJJFHIIJJJJIJJJJIEIJJJHFDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEDDDDDDDDDDDDDDE +@DRR015910.351 HWI-ST1182:184:D1KRDACXX:3:1101:7047:2461/2 +GGATGATCCTCGCCATTCTGGCATTCCTCGGCATTGGCCCGATTGTTGAAGCCCTGTCCAAAATGCTGGCTGCGGGCGTTAACTTCATGGTTGTCCATGA ++ +CCCFFFDEHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJIIHGIJHHIIIJHHHHHHFFFFFFEDEDDDDDDDBBDDDDEDDEDDCDDDDDDEDD +@DRR015910.352 HWI-ST1182:184:D1KRDACXX:3:1101:7441:2254/2 +CTCCTCTGCCCCGATGCCGCAACGTGTAACAGAAGAAGGAAAACAGGATGATGAAGAAAAACCGCAACCATCTTGCGCAATGGCAGATGAACAGGCAACG ++ +CCCFFFFFHHHHHJJJJJJJJJJJEHGIJJJIIJJJIIGHIIJJIJJHIJHIHHHGHHFFFFDDDDDDDDDDCDDDDDDDDDDDDDDCDDDDDDDCDDDD +@DRR015910.353 HWI-ST1182:184:D1KRDACXX:3:1101:7295:2317/2 +GTTCAACAGCATGTTGATGTCTTACTGGCTGACGGAAAAACACGCCTGAAAGTCGCAATTACCGCACAAAGCGGCGCGCGTCTGGGGCTGGATGAAGGCA ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJGIJJEIIJJDFGGHIGGEHBFBFHHIJHHHHHFFFDDDDDCDDDDDDDDBDDDDDDDDDD?CCCCDD@8 +@DRR015910.354 HWI-ST1182:184:D1KRDACXX:3:1101:7297:2355/2 +GGCACTATCTTACTTCACCCGCGCCATATAATACGCATCGACATATTCACCATTACGCAATGCGTACTTCTTACCAGTCCCTTCAATTTCAAAGCCGTAT ++ +CCCFFFFFGHHHHJJJJJIJJJJJJJJJJJIJJJJJJJJJJJJIJJJIIJHIJJJJHHHFFFFDDDDDFDDDDDDDDDDDDDDDDCDEDDEDDDDDDBDD +@DRR015910.355 HWI-ST1182:184:D1KRDACXX:3:1101:7719:2278/2 +CACCAGTGCACCATAGTACGACCACACGGCGGCCACCCCATCCCCTGGAACCAACCGCAGAGGAACAACAGTACAAACATCACCGCAATGCTCGACGTCG ++ +CCCFFFFFHHHHHJJJHIIJJJJJJJJIJIJJJJHHHFFCEDEDDDDDDDCBDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.356 HWI-ST1182:184:D1KRDACXX:3:1101:7652:2356/2 +GTTTAAGCACCTCTGCCGGTAGCATTGCCGGACCAGAACTAAAATTGAAGATTTGAGCCATTTCCCCTCACCACGTTGCGTTGCTATTAACCCGCGGTCA ++ +@BBFFFFFGHHHHJJJJJJFGIJJJJJJJJJIJJJIJJJJJJJJIJIIJJIHIJIJHGHHHFFFFFFEDEDDDDDDDDDDDDDDDEEDEEDDDDDDDBDB +@DRR015910.357 HWI-ST1182:184:D1KRDACXX:3:1101:7893:2251/2 +GTTTTACAGCATCGATATACGGACAGCTGGTGCAGATATCATCCAGTTCCTTTCCCACAATACACCTCACCTGCTTTTCTCACATTTGCAGATTTTAAAA ++ +BBBFFFFFHHHHHJJJIJJJJIJIJJIJIGHGIJJJJIIJIJJJJIJJIJBFHGJIJJIJJJJJJIJHHHHHFFFFFEEEEEEDDDFEDEDCDDDDEDDD +@DRR015910.358 HWI-ST1182:184:D1KRDACXX:3:1101:7756:2297/2 +GTTTTACGTTTTATTCGATGGAGTGCCGCAACAGCTATACGGCGACGATATGTATTAATGGGTTCATGTGTCATTTGTTATTTCCCGTATGCTTTACGCA ++ +CBCFFFFFFHHHGJGIJFHIIGIHHJIGIJJJIJJJJJJJIIGHIHHFFDACDFEEEFEDDDCDDDEDEDFDDEEEDEDDEDEEEDDDDDDDEEDDDDDD +@DRR015910.359 HWI-ST1182:184:D1KRDACXX:3:1101:7757:2326/2 +AGCACGGTCAGTGGAAAAAGCTGAGCTTCCTGAAAGACGCAATGCGTTCGCGGTGGATGTGGAATATACGGCAGCTGCTTCTGAAAGCGTGGTCAGAGGG ++ +CCCFFFFDHHHHHJJJJJIJJJJJJJJJJJJJJJJJJJJJIIJJIJIJJIHHH=BCCCEC@CDDDDEEEDDDDDDDDDDDDDDDDDDCD?@BCACBD>BAB4?@DDD9FHEDBDDBD@GEBB@FHIICHHG@@EEEEECEC;?BBCB?@AADC>>3>>ABBB +@DRR015910.381 HWI-ST1182:184:D1KRDACXX:3:1101:9116:2456/2 +CCCTTAATGGCGAGGACGTCAGGCCGGTGGCCGACCGCGTGACCGTGCAGTCTGCCGCCATTGTTGAATACCAGATAAATGCCACGCTTTACCTTTACCC ++ +CCCFFFFFHHGGHJJIIJAGGIIIIIJ@GGGGG@FHEBFCDB?CBDBBBDDC>ACDDDDD@C@CD?CCCD@CCCBCADCDCCCCCDDDDDDDD>CCCDDD +@DRR015910.382 HWI-ST1182:184:D1KRDACXX:3:1101:9133:2471/2 +GTAATATGGTGATGGATGCGAGCGGGGCGATGTCCCGGTTACCGGTCGGTATCAATGCAACGCGTCAGATTGCAGCAGCGCAACAGGAAATGGCCCGGGA ++ +B@BFFFFFHFHHHJJIIJJJJJJJJJJJHFFDEEEEDDDDDDDDDBBDD@ABCEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDD +@DRR015910.383 HWI-ST1182:184:D1KRDACXX:3:1101:9296:2324/2 +ATCGTGAACGAAACCTTCGCCGCGATCGGTGAGGTTCCCGCCGCCAGCATTAGCACCGGAAGCCGTGCGAGTGATACGCGAAACACGATTTCCTTTCATC ++ +@CCFDFFFHHHHHIIIJJIJJJJJJIJJJFHIIJFHIJJIHHFDDDDDDDDDDDDDDBDDDDDDDBDDDDD9BCDEDBDDDDDDDDD>BDDDEDDDDCDD +@DRR015910.384 HWI-ST1182:184:D1KRDACXX:3:1101:9308:2345/2 +GGGGTATTTCCAGGGCCTCTCCTTTACCACTCTCGGGAAGGCCCTTTCCCTTCTCGTCGGTAATTTCACAAGTTGTCCCATACTTGCAAGATCGCGCATC ++ +@@@FBDDEBFHHHIEIIIIIJJHIJIJIJJJIJJJJIEHGJJJJIJIIIJFHGGC;@GHHBDFFFDEDCEEC@CCDDCDDDCDDCDDDDDDCDDD>DDDD +@DRR015910.385 HWI-ST1182:184:D1KRDACXX:3:1101:9329:2448/2 +GTACCAATAGCCAGGGTGAATACTCCGCCGCACTCGGTGCCGGTATTCAGTGGTAATGATCCATTAAGTTAGTGTGACTAAGGGCAAACGCCAAATTGCC ++ +BB@FFFFFGHHHHJJJEHIJJJJJIJIJJJJJJJIGJFHIJJJ@GHHFGHHEFDFFFFEEEDEEEDCDEEEDCDDDDDDDCDDDDDDDDDDDDDDDDDCD +@DRR015910.386 HWI-ST1182:184:D1KRDACXX:3:1101:9652:2254/2 +TTACTATCCCTGACAATCACCAACAACATCGAACAAGATAATAAATTCCTGGTTTAATATCCGACAAGTGAAAACATGCACCCGGACGGGCAGCATGTCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJJJJJJJJIJIJJIIJIIJIIIHIFHIJJJJJJIIJIIEHHFFFFFFDEEEEDDDDDDDDDDDDDDDDDDDD +@DRR015910.387 HWI-ST1182:184:D1KRDACXX:3:1101:9519:2274/2 +TCTTCAGAGTACGCACTTTGAAGTCATATCCGAGAAAGGAGAAACTCGTAGCGACGTTTCTCCTTTTAAACGTGTCAATGTAGGCGATATTCGTCTTCCC ++ +CCCFFFFFHHHHHJJJJJJJJJJIIJJJJJJJJJIJJJJJJJJJJIJJGIFIJJJHFFFFEEEEEEEDDDDDBDDDDEFDDEEDDDDDDDEEDDDDDDDD +@DRR015910.388 HWI-ST1182:184:D1KRDACXX:3:1101:9639:2314/2 +GTATTACCTCCGCTTTGTAAAGACCATTGATGCTCTCCGCCATCGCGTTGTCATACGAGTCGCCTGTACTTCCTGTTGATGCCAGTAATCCGGCTTCCTT ++ +CBCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJIJIJJJJJJJJJJJJJJIIJJJJIHHGFFFDDEEEFEDDDDDDDDDDDDDDDDDFEDDDDDDDDDD +@DRR015910.389 HWI-ST1182:184:D1KRDACXX:3:1101:9666:2340/2 +TTTCTGTACTTACCATCCTAGGTATATGGTACTCTGGCTGAAAAACAAAGTTTATGATTCTATCCAGATCCACAGGGGCAAGATTTTTTCCATAGCAAAA ++ +CCCFFFFFHHHHHIJJJJJIJJHJJIJJIHHIJJJJJJJJJJJJJJIJJJJHIJJJJJJJJJJJJJJIJJJJJJJJJHHFFFEEEEEEDDDEEDDDDDCD +@DRR015910.390 HWI-ST1182:184:D1KRDACXX:3:1101:9512:2457/2 +TTATTGTTCCTTGTATTATCCTGGGGGAATGCCTTCCCCCTGTATTTAGCGAATTGCTATTTCCGTTTCTGCATCAAAGAAATGACATTTCGTCATATCA ++ +CCCFFFFFHHHHHIJIJJJJJJJJJIJIJJJJJJJIJJJJGIGGIIJJJJHIIIJJJJJHHHHHHFFFFFEEEEEEEDDDDDDDDDDDDEEDDDDDEEDE +@DRR015910.391 HWI-ST1182:184:D1KRDACXX:3:1101:9706:2477/2 +CATTACTGTAGATCCGCAACTCGTCATCCAGCGATATTCGTATCGATACCGGCTGACCACACAGCGCTTCGGGAACGCTGTAACGATTACCACCAACCTC ++ +CCCFFFFFHHHGHJJJJJJJJJJEIIIJJIJJIGHJJIJJIGGIJJJIIIIIHHFFFFFDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDBDDBDDD +@DRR015910.392 HWI-ST1182:184:D1KRDACXX:3:1101:9821:2434/2 +ATATAAAGGCTTGATTTTTATCGTTAAAATCAAGCTTTGCACCTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGTGTAGATCTCGGTGGT ++ +@B@FFFFFHHHHHIJIJJJIJJJJJJJJJJIJJIJJJJJIIIJJIJJJJJGGIJJJIJJIJJJJJJJJJHHHFDDDDBDDACDDACACCDCCDDDDBDDDDDD +@DRR015910.396 HWI-ST1182:184:D1KRDACXX:3:1101:10219:2356/2 +CTCTTATGACCGAAAACGCTGTTCTCCAGTTACGCGCCGAGCGTATTGCGCGCGCAACACGTCCTTTTCTTGCCCGTGGTAATCGCGTTCGTCGCTGCCG ++ +CCCFFFFFGHHHHJJJJJJJJJJJJJJJJIJJJIIIJJJIHFFACCECDDDDDDDDDDDDDDDDDDDDDDDCDDDDBBDBCCEEDDD@BDDDDDDDDBB5 +@DRR015910.397 HWI-ST1182:184:D1KRDACXX:3:1101:10277:2294/2 +GCGCAACTGGCGCATCGCATCTGCGACTATCTGCCTGAACAGGGGCAATTGTTTGTTGGTAACAGCGAGAAAATTTGCCCGCCGTTGTTGTTCACCACAA ++ +CCCFFFFFFHHHGJJJJJJJIIJIJJJJJJIIJJJIJJIJJJJJJIHHHHHDFFFFEEDDEDDDDDDDDDDDDDDDDDDDDDDDDDDBDDCBCEDDDDDD +@DRR015910.398 HWI-ST1182:184:D1KRDACXX:3:1101:10291:2311/2 +TATTAATTCTGCGCCACCGCCTATAACCATAACATGCGTATAACCAGAAAATTCATTGAGCGTATTTAATACACGTTGCTCAAGTTTACGAAGTGCTTCA ++ +CCCFFFFFHHHGHJJJJJJJJJJJJJJJJJJJJJJJJJHIIJJJJJJJJJIJJJJJJIIJHHBEFFFFEEEEEEDDDDDDDDDDDDEEDDDDDBDDEDDD +@DRR015910.399 HWI-ST1182:184:D1KRDACXX:3:1101:10470:2313/2 +GCATAACACCCTCTGAAGGTCTGAGAGACTGGCATTGTACGTCACCTGAAATCAGGTTAGGGCATTGTTAAAAGCCGCTCTCTGGAAAAGCGTATTGTTA ++ +CCCFFFFFHHHHGJIJJJIFHIIIIIIIIJJJJJJJGGIJJJJGIIIJJIIIIJJJJIJJJJIJJJJJHHHHHHFFFDDDDDDDDDDDDDDDDDDDDEDC +@DRR015910.400 HWI-ST1182:184:D1KRDACXX:3:1101:10352:2376/2 +GTGTTGCGCATCGGCCAGCGTCCATTTCACGCCTAACTCACGCAAACTTTTTTCATTAATGGTGACAATATGCGCCGACAGCTCAACCTGCCCGACCGGC ++ +B@BFFFFFHGHGHJJJIJIIIIJJJJJGIJHJJIEIGGEFHGIGGGGFHHAHF>;@DDEDCC@CCDDDDDDCDDDDDDDBBDDDDDCDDBBDDB9>BBDD +@DRR015910.401 HWI-ST1182:184:D1KRDACXX:3:1101:10397:2434/2 +GCCCAGCGTTTTCTCTTTCTGCAGGTCACGGACCATATCCCGCTCCATCTGCTGCAGACGCTCCTGCAGCAAATTTTCCCGGGCAACTTCCCGGACCGCT ++ +CCCFFFFFHHHHHJJJJJIJIJJJJHIJJJJJJJJIIJJIJGIGHIGIIIEHGHIIHHHHFFDDEEDDDDDDDCCDDDDDBDDDDDDDDDDDDDBDDDB@ +@DRR015910.402 HWI-ST1182:184:D1KRDACXX:3:1101:10391:2463/2 +GCCCGGTGATAAAAATAACTGCTACGGGCAAGGCCCAGAACTGAGGTGTACTGGCAATAGCGGACACCACCATTTGTTCTTTTTCTAAGCAGTCATCTGA ++ +CCCFFFDDHHHHHIJIJJJJIJJIJJJJJJJJIIIJIIJJJIIGIJ@GFHCGHIIIJHHHHFFDDDDDDDDDDDEEDDDEDDDDDDEEDDDDDDDEDDDD +@DRR015910.403 HWI-ST1182:184:D1KRDACXX:3:1101:10423:2477/2 +ATATTGATGGTGACGGTATTGCCACGACAATGCCAATGCCGGAGTACGATCCAGAGAATCCGCCGATGCTCGGTTTCTTTATGGTCGGCGCATATCAGGA ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJIJJJIJJJJJJJJJJFICGIIJJHFHHHHFFFFFDDDDDDDDDDDD@BDDDDDDDDDCCDDDDDDDBDCEEDC +@DRR015910.404 HWI-ST1182:184:D1KRDACXX:3:1101:10740:2366/2 +CTGCTTCTGAAAGCGTGGTCAGAGGGGCTGGCGATGCCGGAGTCGTTGTCACATATCACGACGGAATCACAGAGGAGAAGCCTGGTGCTGAAAGCCGGAG ++ +CCCFFFFFHGHHHIJIJJGIIJJJJJJJJJJIJIIJIIJIGGEGHFHFBEDEEEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDBDCCDDDDDDDDDDDBD +@DRR015910.405 HWI-ST1182:184:D1KRDACXX:3:1101:10586:2428/2 +ACATAAAATTCTGGTGATCGCCGCGGACGAACGTTATTTGCCGACCGATAACGGAAAACTGTTCTCGACCGGTAACCATCCGATTGAAACGTTGCTGCCG ++ +CCCFFFFFHHHHHJGGJJJJIJJIJJJIJJJJJHHGHHHHFFFDDDDDDDBCDDDDDDDDDCDDEDDDDDDD@@DDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.406 HWI-ST1182:184:D1KRDACXX:3:1101:10697:2437/2 +ATCCGAAATCGTTCGCGGCAATGCGTTACACCGAATCCCGGTTGTCGAAATATTCCGAGCTGCTATTGAGCGAGCTGGGGCAGGGGACGGCTGACTGGGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJJJJJJJJHHBFDBEDBDDBDDEDEDDDDDDDDDEDDDDDDDDDDDDDDDDDDDD@BDDDDDBDDDDD9 +@DRR015910.407 HWI-ST1182:184:D1KRDACXX:3:1101:10680:2448/2 +CTCCCAAGGCTTAAAGGAATTTCAGCTAACCTACGCAAACAACTTATTAATAGCAATGATGAACAAACGATTGAAAGTATGGCGAGATATATGCCTGACA ++ +BCCFFFFFGHHHHJJJJIIJJJJJJJJJIJJJJJIJIJIJJJJJJIIJJIFHIJJJJJJIJIIJJIJJHHFFFFFFEEEEEEDDBBBDDEEEECDDDDDD +@DRR015910.408 HWI-ST1182:184:D1KRDACXX:3:1101:10819:2310/2 +GTTCGCCGTTCAGTGTGTAGTTAAAGACCTTTTTATCACCAAAAGAGACTGCCCACTCGCGTTTGAAGCTGTTCGGGCTAATGTGCTGTTTAATTGTTCC ++ +CCCFDDFFGHHHHHIHIHIIIIJJJIJIJJJJJJJJIGIIJJJJJIIIIJHHJJJJJJJJHHFFDEEEEEDDDDDDDDDDDDDDEDDDCDDDDDEDDDDD +@DRR015910.409 HWI-ST1182:184:D1KRDACXX:3:1101:10833:2443/2 +GGTTACAACAGCAAACCGCACGCGCATCTGGCGTGCGGTTGCGCCCGCCCGGAGCCATAAACGAGAACGCCTTTGCCAGTGCCTGTGTGCGTTGCGGTCA ++ +BC@DFFFFHHHHHJJJJJJJJJJJJJJJJIJJJFHIJHBEFFDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDD +@DRR015910.410 HWI-ST1182:184:D1KRDACXX:3:1101:10761:2475/2 +AAGTAACCGTGGCTGTTGCAACCGTTGTTATCTTCGGGACCGTCGCGATTTTCCTCTACCCGGCGATATATCCGCTGATGTCTCAATGGTTTAGTCCGGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJIJIIIJJJJJJJJJ6AHIJHFFFAEDEEEDDDDDDDDDDDDDEEEEDDDDDDDEDEDEDDDDACDDDDDDDDD +@DRR015910.411 HWI-ST1182:184:D1KRDACXX:3:1101:11210:2374/2 +TTTTTAATCAGCGGCGAACGGGCGCTACCGCCGGTCAGGTAGATAACGTCCGGTTTTTCCTGGGCGTTATCCAGCGCCAGTTGCACCTGTTCCAGAATCC ++ +CCCFFFFFGHHHGJJJJJIJJJJJJIGHHFFDDD?BDDDCCCCDDDDDCD?@D5>;?18:AB@BBDD:@@@CCC@((+5@>B< +@DRR015910.414 HWI-ST1182:184:D1KRDACXX:3:1101:11505:2369/2 +AATTTGCTCACTTCGGGGGTGGCATACAGAACTTCGTACAGCGTTTTGCCACGCAGTTCCGGTTTCTTCGCCAGCAGCTCTTCCGGCCATACTTCTTCAG ++ +CCCFFFFFHHHHHJJJJJI@FIJJJJJJJJJJJJJJIHHHHFFFDDDDDDCDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDED +@DRR015910.415 HWI-ST1182:184:D1KRDACXX:3:1101:11691:2420/2 +CAAATTTTCTCAATAATTGCCGCTAACGAATCCAGTTTTGCATTAAGGCATTCGTGAACGGCACCGACAATTATCACCTGATTGCCGTCCGCACCTTTTT ++ +:1=2+27ABB8,22,<,<,+A3<AA<'''5(,5=;;;;>==(55((5=((53&59-05;&&8==(( +@DRR015910.416 HWI-ST1182:184:D1KRDACXX:3:1101:11559:2496/2 +TCGTGAGACAGTTCGGTCCCTATCTGCCGTGGGCGCTGGAGAACTGAGGGGGGCTGCTCCTAGTACGAGAGGACCGGAGTGGACGCATCACTGGTGTTCG ++ +CCCFFFFFHHHHHJJJHIJJJJJJJJJJJFHJJJJJIJJGIIJJJJIIJHEDDDDDDDDDDDDCEEDDDDDDDDDDDDD?BDDDDDDDDDDDDDCDBDDD +@DRR015910.417 HWI-ST1182:184:D1KRDACXX:3:1101:11996:2261/2 +AGTTAAATCACGCGGCAACCACTTCATACGAGTGAGTAATATTCACCGCTTTTTTCAGCATCAACGCCACTGAACAATATTTCTCAGCAGAGAGATCAAC ++ +BC@FFFFFHHHHHJJJJJJJJJJJJJJJJIIIDGGICGIJGIJIJJJJJJHHHHBEEEEEEDDDDDDDBDDDDDDDDDDDEEEEDEDCDDDDDBDDDDDC +@DRR015910.418 HWI-ST1182:184:D1KRDACXX:3:1101:11802:2299/2 +GTGATGTGGCGAATCATGGCGTCAAGATGAGAAGAAAAGCGCGTCGCTGCATCGGCCTGTGCTTCGGTTCTGGCCTGTTGCAGCAGTAATGCGTATTTAC ++ +@BBFFFFFHHHHHJJJJIJJJJJJIJIJJJJJJJJJJJIJIIJJJHFFDDCEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDECDD@DDDEEE +@DRR015910.419 HWI-ST1182:184:D1KRDACXX:3:1101:11758:2328/2 +CTGTGCAAGATCATGTTACCGGTAAAATAACCATAAAGGATAAGCGCAGATATTACTCAAACTCATTCCAGGAACGACCATCACGGGTAATCATCGCCAC ++ +CCCFFFFFHHHHHJJJJJJJJJFHGJJIJJJJJJJJJJIIJJJJGJJJJJFHIJJJJJIJJJJJJJHHHHHHFFFFCDDDDDDDDDD@BDEDDDDDDDDD +@DRR015910.420 HWI-ST1182:184:D1KRDACXX:3:1101:11937:2336/2 +AATGGATGAATTGGCACAATGCTACAATGTGCTCCCCCAACTTGATATTAATAACACTATAGACCACCGCCCCGAAGGGGACGAAAAATGGTTTTTAGAG ++ +C@@FFFFFFHHHHGJIIJJJJJIIJJJJIJFGIJJIJJJJIHIGEHIIIIIFGIIIIGIJJJJJIIJJJJGFDDDDDDDDBBDBBDBDDCDCCDDDDDCD +@DRR015910.421 HWI-ST1182:184:D1KRDACXX:3:1101:11920:2346/2 +TTATTATTTCGGTTCAGTACCGAACCATTTTTTGTAGATTTCGTTGTAAGTTCCGTTCTCGCGCAGGGTTTTCAACGCGCCGTTGACTTTGTCACGCAGC ++ +@@@FFFFFGFHFFHIFIFIIIIEIJIGIJJJJJFDFHAEEDBDCHFGBFHGFEE@DGEGEHGFDA@BD???9=:.6)8..86>?;?>?3;>;=)8.9==>?9=19;;77(:7;=<:228,8,+8 +@DRR015910.424 HWI-ST1182:184:D1KRDACXX:3:1101:12013:2404/2 +CGCCGGAACCGATTTTCACCGGAGTTTAAATGGAGACTTGTTCAGCAAACTCTTTTACCCGGTGCCTGTGTCGCACAAATAGCTCGTGAGAACGGAATCA ++ +CCCFFFFFHHHHHJJJJIJJJJIJGHIJJJJJJIJJJJJJIIJIJJJJJHEFHHHFFFFFDD>@DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.425 HWI-ST1182:184:D1KRDACXX:3:1101:12127:2419/2 +ATGGTTAAGTGCGAAATGGGTATATGCCATTTGCCACACCATTGGCGCTATCACGCTGTTCATGGCGGCACAGGTCACGACACCGGAAGCGATGTTCCTT ++ +BCCFDFFFHHHHHJJJJJJJFHIJJJJJJJJJJJIJJIJJJJJJJIIJJJHIJJJJJJJHHHHHHFFDDDD??B:ACCBBDDDD>B>>>@C>DCCCD +@DRR015910.431 HWI-ST1182:184:D1KRDACXX:3:1101:12839:2437/2 +TTCGTAGGTATGCTCAGCATCCTGTTTTGGTGCGGCGAAGACATGGAAGCTGCGGGAGAACCCCAGCGTATTAACCGCAAAGTTAACTTTGCACCGTTGC ++ +BCCFFFFFHHHHHJJJJJIJJJJJIJJJJIEGIJJJJJIJIIJJHHHGHFDFFDDDDDDDDDDDDDDDDDDDEEDCDDBDDDCDEEDDEDDDEDDDDDDD +@DRR015910.432 HWI-ST1182:184:D1KRDACXX:3:1101:12964:2461/2 +GTTAATAATGGTTCTCAGGTTAATGTTTCGGAATCTAAATTAACTTCAGATACTATCGATTTAACTAACGGTTCTTCGCTGAACATTGGTGAAGATGGCT ++ +CCCFFFFFHHHHHIJJJJJIIJJJJIIJIJJJJJIJJJIJJIJIJJJIGIFGHIJIJJJJJJJJJJJIJIJHIHHHHHFFFDEEEEDDDCDDDDDDDDDD +@DRR015910.433 HWI-ST1182:184:D1KRDACXX:3:1101:13023:2471/2 +GGCCAGGCGGCCTCGATGGGCGCTTTCTTGCTGACCGCAGGGGCAAAAGGTAAACGTTTTTGCCTGCCGAATTCGCGCGTGATGATTCACCAACCGTTGG ++ +CCCFFFFFHHHHHJJJJJJJBHHIIJIIJIJJGJJJJJHHFFDDDDDDCDDACDCBBDDDDDDDDDDDDDDDDDDDDDDBDDCDEEEDDDDDDDDDBDDD +@DRR015910.434 HWI-ST1182:184:D1KRDACXX:3:1101:13141:2492/2 +CCAGTCAGCAATGTTTCTTCGTTTTCACTGACGTTCGGCAGGGTGGTTTGATTAGATGCCATCTTCAAATTCCTCTTTCTGTGCCGCAGGTTGAGTCGGT ++ +@CCFFFFFHHHHHJJJIJJJJIJJJIJJJIIJJIJJJJJJJJJ?FHFHIIGGIIJHHHHHHFFFFFFECEEEEEDDDDDDDEDDDDDDDDACDDDCCDDB +@DRR015910.435 HWI-ST1182:184:D1KRDACXX:3:1101:13283:2399/2 +GTTCTGCCTCAGCTTTCGCTTCGTCCAGAATCTGCGAGCGGCGTTTGTTCGCCTGCTCGATGATTACCTGGGCTTCCGCTTTCGCTTTTTTCAGCTGGTC ++ +CCCFFFFFHHHHHJJGHIJIJJIIJJJJJJJIJJIIEGEIJJHDEFBAEA?BDDBDDDDDDEDEEDDDDDDDBDDDDBBBDDDDDD@DDDDCACDDDDDD +@DRR015910.436 HWI-ST1182:184:D1KRDACXX:3:1101:13251:2435/2 +CCCGGCTCCTGGACCGGAACGGGGATATCATCCGCATGGACTTTACCGGGCATCAGTACATACTGGCGCAGCACGTCATACAGCGGCTCCAGCAGTTCAG ++ +CCCFFFFFHHHGHHIHGGGIIJJJIIJIJCGIJJJJIJJBHJIIGHHDFDBCDDDDEEDDEEDDDDBDDDDDDDDBDBDEDDDCDDDDDDCCCC@CDDEC +@DRR015910.437 HWI-ST1182:184:D1KRDACXX:3:1101:13269:2497/2 +CGATAGCTGGTTTCATGATGCTGCACCAGATTGACCAGCGGCTGCAGGCTACTGTCACCCAGCCAGCGTTCCATGCGTTTGAACCACTGCGGCGTGTAGT ++ +CCCFFFFFHHHHHJGJJJJJJJJJJJJJJJJJIJJJJJIJJJJJIJJJIJHHGGHIJJJHEAHFFFDDDDDDEEDDDDDDBDDDDDDDDDDDDDBDDDDD +@DRR015910.438 HWI-ST1182:184:D1KRDACXX:3:1101:13672:2266/2 +GTTCTGACGGGAGAGGATCAGTGCGGTCGGGCCGTCCTGACGCTCAACACCGTATTTCCACGCGACCGCGGATTCAACCTGGTCACACGGACGCCATGTA ++ +@@@DDDDDF>FFFFB;DF@FE?1:EFIE:ABEFA';BBBBBAABB?BBBDCEDDCDCDDDDC +@DRR015910.440 HWI-ST1182:184:D1KRDACXX:3:1101:13658:2429/2 +ATTTACAAGGGGCTACGCTTGCCATCGTCCCTGGCGACCCGGATCGTGTGGAAAAGATCGCCGCGCTGATGGATAAGCCGGTTAAGCTGGCATCTCACCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJJJJJJJJJJHHHFDEECBEEEDDDDDDDDDDDDDDDDDDDDEDDDDDDBDDDDDDDDDDDDDCDDBD +@DRR015910.441 HWI-ST1182:184:D1KRDACXX:3:1101:13615:2454/2 +TTTCTCCCCAGTCTGCGAACCCTTTGTTTGACGTCAGTATGATGCTCGCTTTTTCATATCGACGGTTCAGTAGCCGGAAGAACAGACTGGCTTCCTCTCT ++ +CCCFFFFFHGHHGJJIJIIJJJJIJIIJJJJJJHIJJHJIJGGIFIIIJJHHIJJHGHHHGFFDDBDDDDDDDDDDDDDDDDDDCDDDDDDDDCDCCCDD +@DRR015910.442 HWI-ST1182:184:D1KRDACXX:3:1101:13968:2281/2 +GAATACGCGAAGCATGGGCGTACAGCACTTTATCGCCCTTCACTTTCTCGAAAGAAGGCAGCAACACGTAGGTTTTTTCCCACGGTTTCGGGCGCGGCGG ++ +CCCFFFFFHHHHHJJJJJIJJJJIJJIJJJJIJJHIJIJJJIJJHHHHHHFFFDEEEEDDDDDDDDDDBDDDCDDDDDDDDDDDDDBDDDDDDDDDDDDB +@DRR015910.443 HWI-ST1182:184:D1KRDACXX:3:1101:13960:2361/2 +GTGAAGTAATAAGGTGCAAAAGTAAATATAAGCATAGAAAAATGAGTGGCGCGAATCCTGTTGGCTAATTAGAATCGCCAACCATGAAAACAGAGACTCC ++ +BB@FFFDEHHHHHJGHIJJJJIHHGJGIJIIJJIGIIIIJJJGGHIFHIIHHIJIJJJJJJHGHHGFFFFFFFEEEEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.444 HWI-ST1182:184:D1KRDACXX:3:1101:13866:2392/2 +GCCGTCTGCTCACCCGTTCTTAGCGGACGGGGAGGCGTTACCGGCGCAACTGAACTGACCGGAACAATCGTTTTCACTTCCCGGGCAGCGGTAAACAGCG ++ +@<@DFFD=CDFFHIIGEGHGHEFEHIGGGGIGBAA@BB<>CAA@BB85@B9?>CCC@ACC@B;BB??C?BBB??4:>>CCCC93<@B9?99@BB>::?B< +@DRR015910.445 HWI-ST1182:184:D1KRDACXX:3:1101:13896:2464/2 +TTGTTGCACGGCCAATATTTTGTTTTTGCTGCGCAGAAAGGGTATTGAGCTCGTAAGTTCTTCTCTGGGTGTCAATTTTATCCTGCAAAGAAATATCGGG ++ +CCCFFFFFHHHHHJJJIIJJJJGIJJJJJJJHIJIIJJIJJJBFGHGIIJHIIHGHHHFFFFFFEEEEECBDDDEEEDDEDCDEDDDDDDDDDDDEEDDD +@DRR015910.446 HWI-ST1182:184:D1KRDACXX:3:1101:14014:2317/2 +TTTCACTGCCGCATTGCTGCGCTCACTTTCGGCGCACACCTGACCGACGGTTATGTTCTCGGCGTCATTGGTTACGCCATTATTCAGCTTACGCCCGCCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIJJJJJJJJJJJIHHHHFDDDD@BDDEEEEDDDDDDDDDEDDCBDDDDDDDDDEEEEDDDDDDDDDDDDDD +@DRR015910.447 HWI-ST1182:184:D1KRDACXX:3:1101:14081:2408/2 +GCATTATAGCGGCATCACTTTTATGAGTCGAGAACGGTTATTGCGCGCTGTCGCGTATTTTTTCACAATTCCCGGGCAATTTTCGTCTGAATGCTGGGCA ++ +CCCFFFFFHHHHHJJJJJJJJJGJJJIHIJHIJIIJJFHGIJJJIIIJHFEEDDDBDDDEEDDCDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDD +@DRR015910.448 HWI-ST1182:184:D1KRDACXX:3:1101:14190:2450/2 +AACGGGTGAGGGCAATCATTTCCAGCGAATAAGGCAGAGCGGTCGAGAGAATAGCGACAGCCAGACCCAATGGAATAACCGACCAGTGCCAGAGTGCTTC ++ +CCCFFFDDHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJIIJJIIJJHHFFBCFEEDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDCCDCDDDDDDEDD +@DRR015910.449 HWI-ST1182:184:D1KRDACXX:3:1101:14436:2305/2 +TACCCGCTCTGCGTCATGTTGCCGCCAGCGGGCGACAGATCGCCCGCAGGGCGACGGCGCTGCACAGCGGAAACAGCGCCAGCAGAAGCCAGGGATAAAC ++ +CCCFFFFFHHDHHGHHGHIJCHIJJJ>FHIJJJEDFDCECDDBDD@BDDBDCFEA@GD@GGIGIGGHIIG@08DHHGHHGFGGGIIGAEGGH:>CC>A??@&59BDDDDDDDDDDDDDD +@DRR015910.460 HWI-ST1182:184:D1KRDACXX:3:1101:14880:2469/2 +CTTCTATCTCATCCACAAAATGGAGAGTTCTGACTTTATCCCGGGCAATGTCCTCCAGAATTTCGAGGCGGAACATTTCCCTGCCCAGGGAGAGCAGAGC ++ +CCCFFFFFHHGHHJJJJJJJJJJJJJJJIGIJFIJJJIJJJJJJJJJJJJJIIIJJJJJJJJJJJJJHFDDDDDDDDEEEDDDDDDDDDDDDDDDDDDDD +@DRR015910.461 HWI-ST1182:184:D1KRDACXX:3:1101:15204:2270/2 +CAGCTGCACCATGCGTTCGCTGTACTCTTCCCATTCAACCGCCCGCAGGCGAAATTGCTCATCGCAAATCACCCACAGTGGACCCAGTGGCGTGGCAATT ++ +CCCFFFFFHHHHGJJJJJJJJJIJJJIJJJJJJJJJJJJJJJJJJJJJHHBFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDBCCDD +@DRR015910.462 HWI-ST1182:184:D1KRDACXX:3:1101:15008:2429/2 +GTAATGGTGACGCGGCGGGTGGTGCGGTGTAACAACACCACGTTTAGCGTTTGCTCCAGCAAGGCGATGCGCTTGCTGACGAACGCCGGTGAAACGCCCA ++ +CCCFFFFFHHHHHJIJJJJ=BDACCBD6=;CDDDDDDDDADDBDDBDDD@?@@BDA +@DRR015910.465 HWI-ST1182:184:D1KRDACXX:3:1101:15292:2379/2 +GTATTACGCCTGATATGATTTAACGTGCCGATGAATTACTCTCACGATAACTGGTCAGCAATTCTGGCCCATATTGGTAAGCCCGAAGAACTGGATACTT ++ +@?@FFDFFHHHHGJIIIGJIJJJJJIGIIGIGFGIGHIHIIIJGIIGIJIFGBA7@FGGIJGIGIIGGHFFFFFFEEEDDCEDDD?BBDDDCCDDDCDDD +@DRR015910.466 HWI-ST1182:184:D1KRDACXX:3:1101:15334:2402/2 +CTCATAAGACGCCCCAGCGTCGCCATAGTGCGTTCACCGAATACGTGCGCAACAACCGTCTTCCGGAGACTGTCATACGCGTAAAACAGCCAGCGCTGGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJGIJJJJJJJJJJJJIJHHHHFFCDDDDDDDDDDDDDDDDDDDDDDDDEEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.467 HWI-ST1182:184:D1KRDACXX:3:1101:15653:2358/2 +GTCTTTACCCAGCAGGAAGGGGGAAATGTTGAAACCCGCGCCTTGCCGGAAGTGAAGGCAGGTGATTATCTGGTACTGCATGATACAGGGGCATATGGCG ++ +CCCFFFFFHHHHHIJJHIIJJJJGIJJJIIJJJIJJJJJJIJJHHHHFF9>@;ACDDDDDDD +@DRR015910.469 HWI-ST1182:184:D1KRDACXX:3:1101:15532:2419/2 +ACATAGCCCCACTGTTCGTCCATTTCCGCGCAGACGATGACGTCACTGCCCGGCTGTATGCGCGAGGTTACCGACTGCGGCCTGAGTTTTTTAAGTGACG ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJIJHHHHFDDDDDEEDDDDDDDBDDDDDDDDDDDDDDDDDDADDDDDDDDEDDDD +@DRR015910.470 HWI-ST1182:184:D1KRDACXX:3:1101:15714:2496/2 +CTGCCAGGCCGTCGTTCAACAAGCCACGCACCATCCCCGTCAACGGTGCTTTAATTTCATGCTCACCAATCCAGGCAATCACATCGCCCTCTTTCACCAG ++ +CCCFFFFFHHHHHJIJJJJIJJHJJJJJJJJIJJJJJJJEHHIIJHAEDF@CDFFEEEEEEEDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.471 HWI-ST1182:184:D1KRDACXX:3:1101:15808:2421/2 +GCGCAAATGCGGCGCTGGCTAACTGACGTAATGCGGGAATATCGGTCTCTTGTGCCACTACAGCACCGCTATCACTGGCATTGTTCACGGGTAGCGCCAA ++ +CCCFFFFFHGHHHJJJJJJJJJJJJJJJIIJJJJJJHFFFEEEDDDDDDDCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDEDDDDDDDDDDDDD +@DRR015910.472 HWI-ST1182:184:D1KRDACXX:3:1101:15917:2495/2 +GCGTTTATCCCGTAGAGCGGATAAGATGTGTTTCCAGATTGACTTATCCTCACTAAAGGATAAAACTTATAATATCCCCTTAAGCGGATAAACTTGCTGT ++ +BBCDFFFFHHHHHGGJJJJJJJJJJJIIFHFGIIJJJIIJIHHIIJIGIJHIJJIJJJJIIJJHHHHHHFFFFFFEEEDEEDDDDDDDDDDDDDDDDDDD +@DRR015910.473 HWI-ST1182:184:D1KRDACXX:3:1101:16124:2302/2 +CTCCACGCCGAGCATCACCACGCTGGACAACCAGGAAGCCTTCTTCATGGTGGGCCAGGACGTTCCGGTATTAACCGGCTCTACCGTTGGCTCCGATAAC ++ +CCCFFFFFHHGHGJIIJIJJIJIIIIIIJJIJFJJJIJIJJJJJJJJJHHFHHFEDDDDDDDDDDDDD?BDEEEDDDDDDDDDDDDBDDDDDDD09@BDC +@DRR015910.474 HWI-ST1182:184:D1KRDACXX:3:1101:16146:2317/2 +ATATCAATGATTTTCTGGTGCGTACCGGGTTGAGAAGCGGTGTAAGTGAACTGCAGTTGCCATGTTTTACGGCAGTGAGAGCAGAGATAGCGCTGATGTC ++ +CCCFFFFFHHGHGJJJJJFGGJIJJJJJJCFGFGHGJGIJ6B;CFGFHEHGHJJJJIHHHHHHFCEFFFFDDDDDCCDDDDDDDCDCDDDDDDDDBDCDD +@DRR015910.475 HWI-ST1182:184:D1KRDACXX:3:1101:16148:2352/2 +CGCGCAATCTGCGCCAGAAAGTGAATAAACGCACTGAAAAAGAGTGGGATAAAGCCGACGCCGCTTTTGATAACCGCGATAAATGTGAGCAAAGCGCCAA ++ +CCCFDFFFGHHGGIJJIJJJJ?FGGGIJJIIJJJJJJIJJIGCH4=FHEGDHJHGHHFFDCDDDDDDCDDDCCCCDDDDDDDDEEDEEDDDDDDCDDDDD +@DRR015910.476 HWI-ST1182:184:D1KRDACXX:3:1101:16047:2385/2 +ATCAGGTACTGGGGGGGAGTAGAATCAGATTGCCGAATTAATACTAAGAATTATTATCATGACCGAATTTACAACTCTTCTTCAGCAAGGAAACGCCTGG ++ +CCCFFFDDHHHHHJJDD6B?CCCDDDDDCDDDDDDDDDDDDEDDDDCCCCCCDDEEEDEEDDDDDDDDDDDEDDDDDDDDDDDEDDDDDDDDDDDDDDDD +@DRR015910.477 HWI-ST1182:184:D1KRDACXX:3:1101:16435:2269/2 +CCTCAACGGTGGCGCGATCGCGCTGGGTCATCCGCTGGGCTGTTCCGGTGCGCGTATCAGCACCACGCTGCTGAATCTGATGGAGCGCAAAGACGTTCAG ++ +@@@DDDDDA+'398;='0?<:>@32<BC@A>>C>A3:AC(8999&&0>9?@8?A@CDDCDE@@@ +@DRR015910.479 HWI-ST1182:184:D1KRDACXX:3:1101:16494:2458/2 +TGGTATTCGCGACGATATGTATCTGGGCGCAGGCAACGCCTATATGCGTGAAGTTGGCGCTGCACTTGATGACGGTTACAAGCAGGGTGTACTGCCACAG ++ +B@CDDEFFHHHHHJJIIFIGIIJJJEIGIIIIIIJGGIJHHFEFFFFCACBDDCCDDDDDDDDDDDDDDDDEDDD9@BDDDDDDDDD?BBCDDDDDDDDB +@DRR015910.480 HWI-ST1182:184:D1KRDACXX:3:1101:16380:2477/2 +CTGCCTGCCCGGTAATGTGGTGATGTAATAATGCTGATGGCATTTCACCGTCATATCGCCAAACGGCGCGACGAGCTCACCACTGGCAAGCCTTTTTTGT ++ +@@@FFFFFGHHH?GHGIFEH?AB@BBBBCCC>CC +@DRR015910.487 HWI-ST1182:184:D1KRDACXX:3:1101:17055:2355/2 +TTCCGTCATCAGGTTAATCGCCCGCCGCCACACTCCCGCTAACCGCCAGGACTGGCGATAATTCGGTGCGCTACTACTGGCAAGCAGAGGATGGATGATC ++ +CCCFFEFFHHHHHGIIJJJJJJJJJJJJJJJGJJJJJJJJJJJJHHFDDDDDDDDDDDDDDDEEDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDED +@DRR015910.488 HWI-ST1182:184:D1KRDACXX:3:1101:17101:2451/2 +CCTGCTATTGAGACCTATATTGGTCACTCAATTCCGGTAAGCAAATACAATCCGGACGCATTGATGACCGATCTGCCAAAACCGCTGCGCCTCACGCGCC ++ +??<::==B??;??;?<>A>>><8(+5>50;?;>?;>;? +@DRR015910.489 HWI-ST1182:184:D1KRDACXX:3:1101:17076:2478/2 +AGATAACCACAAGCAGGTAGCGGTGTTGGTGCCTACCACCCTTCTTGCGCAGCAGCATTACGACAACTTCCGCGACCGTTTCGCCAACTGGCCGGTACGT ++ +7:7<<57=A:=>A>>>7:4---6=5;>?;>@=@;;=;995,;====;58?329;89;889<;5)))5;+ +@DRR015910.490 HWI-ST1182:184:D1KRDACXX:3:1101:17310:2332/2 +CATTCATGCCGAGTTGGTTATACCAAAGCACCAGCGGTGACGAGCCATTGTTGGACATCGAACAATCCTTTTGTGATAAATGAACGGTTTGAGAAACACC ++ +CCCFFFFFHHHHHJJJJIIJJJJJJJJJJJJJJJJJJHIJJJJJJJJJJJJHFHGHHFFFFEEDDDDDDDDDDDDDEFDDEEDDDDDBDDDDDDDDDDDD +@DRR015910.491 HWI-ST1182:184:D1KRDACXX:3:1101:17286:2335/2 +GGCTGAAGAGGCCATCCGCCGTGAAACGGAACGGCGCGCAGATGAAATTGTCCGTAAAATGGCAGAGAACAAACCTGACCTGCCGGACGGCAAAACAGAG ++ +1+1ABDBD+ADAC;E;C<::?):1CDEI7DDD>(?A/44===;>>;>AAAB(5<55=9>;5:<>?<2+(:9+8>(:><<&5&00-)99<<8((++ +@DRR015910.492 HWI-ST1182:184:D1KRDACXX:3:1101:17324:2393/2 +CGCCTGGGCGTACCAAAATCAACTGTCTGTGGTATGTTCGTGCGCTTCCGCAACGCTGGCCTTTCATGGCCTCTGCCCGCAGGTATGTCGGAGCAGGGAC ++ +@@?DDBDFHHFFHHIIIGIIGIGBHGHEHIIEHDEBHIGGDHCGGHIH>AAEEBBDDDC?ACCCDA>@CBDCA@@CCBBDDDBDADCCDDD-59A?B&28 +@DRR015910.493 HWI-ST1182:184:D1KRDACXX:3:1101:17496:2450/2 +GTTCAGGTATCTGCACTGGTGCCGGGATTTTATTATCCGGCTCCGGAGTTAACGTCACGGGAAGTAGCGATGTTTCATGTTCGCCGGTCGGCTGCAGGCC ++ +@C@FBFFDFHHHFIEHFHI@GIGGIJEFGHIGJJFIHIJJJGGHJJEH;DDGEGEHEFFFCCBBCCDDDDDDDDEDEEDEEEBDBDDDBDDBBBD??BBD +@DRR015910.494 HWI-ST1182:184:D1KRDACXX:3:1101:17610:2364/2 +GGGAATGTCGAAGCGACAAACCCTACGGCAAATATCGCAATCAGCATTGAAACAACGATAATACCGGTGCGGCGGGAGCCCATACGGAAATCGCGTGGCA ++ +CCCFFFFFHHHHHJJJJJJJIIJJJJJJJJJGCHHIJJJJJJJJBGHJJJCHHHHFFFDDDEEDDDDDDDDDDDDB-5598?03 +@DRR015910.495 HWI-ST1182:184:D1KRDACXX:3:1101:17534:2433/2 +CCCGTTTAATCAGGTATCGGCAATCAGTCATTCGTTTTTCCTTAAACAAGGAATGCAGCCATTCAGATTAGCCCTTACATCTCCCCAAAACTGAACGTGC ++ +@BCFDFFFHHHHHJGHIJJJIJJJJJJJJFIJIJIJIJIJIJJIIIJJJJHIJJJJJJJJJJJJIJJJHHHHHFFFFFEEEDEEEDDDDDDDDDDDDDDD +@DRR015910.496 HWI-ST1182:184:D1KRDACXX:3:1101:17519:2450/2 +ATCACCAGTTGCAGCATCAGGCGCAAGGCCAGCGGTTTAACGTAGTCGGTCAACACCTGCCACATGCCGATCCAGGCATGGATCAAGATAGAAAACAGCG ++ +CCCFFFFFHHHHHJJJJJJIHIIIIJJJJJGJJJJFIJJJJJJJJJJJJHEHHFFFFEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.497 HWI-ST1182:184:D1KRDACXX:3:1101:17761:2257/2 +CTCTGATTCAGCATGGCGCATTATGGTACCGGGCAAAACACCATCAGCCTGGCGCTGGGTTCCATTACAAGAAGATGCCGCAGACGAGAGCCAAAATGAC ++ +CCCFFFFFHHHHHJIJJJJJJJJJIJGGIIJJJJJJJIIIIJJIIGIIIJIIJJHHFFDEDEDEEEDDDDDDDCDDDDDDDDDDDDDDDDDDCDDDDDDD +@DRR015910.498 HWI-ST1182:184:D1KRDACXX:3:1101:17831:2265/2 +ATGTACAACTTCAACTTCAATGTATTAGACCCGTATATTGTTCGACCGGTCGCTGTCGCCTGGCGTGATTATGTTCCGCAACCGGCGCGTAACGGTTTGA ++ +BBCDDFFFHHHHHJJJJJJJJJIJJJJJJJJJJJJJJJJIJJJJJJJJJJFHIIHHHHFFFDDEDBDDDEEDDEEEDDDDDDDDDDDDDDDDDDD?BDDD +@DRR015910.499 HWI-ST1182:184:D1KRDACXX:3:1101:17969:2342/2 +GTGTCACCACGTTTGCTTATCCCCAGCAGACGTACTTTCCCTCCGGAGCCAGTTTGTTTTGGAACCAGACCAACATATGCGGCGAACTCTCGCCCCGATT ++ +CCCFFFFFFDHHHJJIJJIJIIJJIJJJIIJJGIJJJJJJJIGIIIBHIJGIHIJJJJHHHGFFFFEDEDDDDDDDDEEDDDDDDDDDDDDDDDDDDDDD +@DRR015910.500 HWI-ST1182:184:D1KRDACXX:3:1101:17825:2346/2 +GTGTACATGTCGAAAAAAACGGCCGGCGGGAGGAATACGGCACGCTACCTGGGTCGTTATCTGAAGAAGCCACCAATAGCGGCCTCCCGGCTGGCACATT ++ +??ACCABB>CC@>BB@9ABBB5999BCFDDDDDBDDDDDDCDDDDDDDDDDDDDACBBABDBCCCACCCC?B?A?+<:ACCCCDDDCCDDDDDDCDDBBB@BCCEDDDDCDDDDDCCDDECCD +@DRR015910.506 HWI-ST1182:184:D1KRDACXX:3:1101:18277:2262/2 +ATTTAACCTTCCTAAGACGCATTTTCATGACAACCACGGAGGAGGTCATTTACTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGTGTAGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJIJJJJIJJIIJGIIJJFGHJJJJJJJHHHHHHHFFFFFFEDDDDDDDDDDDDDDDDDDDDCEDEDE +@DRR015910.507 HWI-ST1182:184:D1KRDACXX:3:1101:18361:2278/2 +AACGGAATTTGCTGATTCACCTGGGTGGTGTAGTAAACCGAGCGCGCCAGCCGCGGGAACTCGACCACTTCCACCTGATTCTCAGCGGCGACCTGGCGAA ++ +@@CFFFFFGHHGHJJIJIJIJIJJICGHCFFHEFIIIIJGEGIIIJJHFEBDCCBDD +@DRR015910.508 HWI-ST1182:184:D1KRDACXX:3:1101:18434:2298/2 +GAGAAACAGCGCCAGCCCGCAGTAAAAACCGATGCGACTGAGTGTGCGTTTATTTGTTGCCATTGAGGTTCACCCGTTTCCTGGTCAGCAGAATGACAGC ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJIIJJIJCHIGCH>E?@CBBC>AEDEEEDDDCDDDDDDDDBDDDDDDDDDDDDDCDDDDDDDDDDDDCDDD +@DRR015910.509 HWI-ST1182:184:D1KRDACXX:3:1101:18357:2330/2 +GCAAACTCCACCGGGTAATTCACCGAATGACTGTCCTGAGTCAGACGTCCGCGATAATCCGCCTGTGTATCCACCGCCCGTACATCCACGCGAATACCAT ++ +CCCFFFFFHHHHHJJCGHIJIJJJJJJIEGJIJHIIIJJJHIGGIIJHHJGHHFFFDDEEDDDDDDDDEEEDDDDDDDDD +@DRR015910.513 HWI-ST1182:184:D1KRDACXX:3:1101:18632:2381/2 +GTGTTTATCGCTCAGCACGCCCCCGCGACAGCAGGTCGCGGGGGCGTGCTGAGCGATAAACACCGGATGCCCGCGCATGGGGGGTTGCTTACCGTCATTA ++ +@@@DDDDDD?DFD:AEDF@@G)?E8?6774/272@.7:89A'6<&))00((+290087@CAC?B-;&0-(:C&00)&)(52:@34?525(2:4 +@DRR015910.514 HWI-ST1182:184:D1KRDACXX:3:1101:18577:2403/2 +GCCATTATGATCACTCACTATGATATAAAAACGGAGACACGGAAACTAAAGGATGTACTCTCTGTAGAGGGAGTTAATATTCCTCCGTTATTACAAGTCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJJJJIJIJJJJJJJIJJJJJJJHGHIJJIJJJJJJJIJJHHHHFFEEEEEEEFFEDDD@DDDDDEDCCDDDE +@DRR015910.515 HWI-ST1182:184:D1KRDACXX:3:1101:18724:2405/2 +GGTGGGGAACTCCGGCGACCGCAGCAATGAGCATATTGCTGCCTTGCGCGCCGTTCATCAGCAATTTGGCGATACGGTAAAAGTGGTGGTGCCGATGGGA ++ +B@?DFFFFHHHHHIJ>HIJIJJIJIHIIHGJJJHHHHHHFFFFFFDEDDDBBDDDDDEEDDDDDDDDDDDDDDDDDD?BDDDDCCDABDBDDDDBDDDDD +@DRR015910.516 HWI-ST1182:184:D1KRDACXX:3:1101:18528:2419/2 +GTTGGGATGTTGTGCGACAAAGCGTTCTGCCGCTACCACCATCGCCGCCAGCGAGCCTTTCATATCTGCCGCACCGCGCCCGAATAACATGCCATCACGA ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJHHFDCDDDDDDDDDDDEEEDEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD? +@DRR015910.517 HWI-ST1182:184:D1KRDACXX:3:1101:18627:2479/2 +GGTCAGATCTTGCGCGTAGTTGCTGCCATTAACGCTCCCTGTTGGATGCAAGTCTAACTGCACCCGTGGCGTGGCGTGGGCGAACTCCGGGAAGAACACG ++ +BCBFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJIJJIJJIHHHJH;CHHHFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.518 HWI-ST1182:184:D1KRDACXX:3:1101:18985:2341/2 +ATTCTGAAGGGGTAAAGAGTCGAGCCATTAGATTATCCTCGGCTTATGCGTTCTGTCTGTTCCTCTATACGTTCTCCATCATTCCCGGTAATAAGGTCAT ++ +?@@FDFDFGHHG:EHGGIIHIIEHHIGIIIIGGIIIIIIIIGEFDFHIIIIFHIGGGIIHHHHHHHFFFFFDEEDEDEDDDDEDEDDD?B@D4>CCCCDD +@DRR015910.519 HWI-ST1182:184:D1KRDACXX:3:1101:18956:2354/2 +TTGTTGTATTTGTTGAGCGTGGTCAACGCCGCATTGTGGTAAACTACGCGAAACGTCAGCAAGGTCGTCGTGTCTATGCTACACAGAGCACACATTTACC ++ +B@BDFFFFHHHHHJIIJJJJJJDHIJJIIJJJJJJJIIIEGIJJJIJJJHFDDDDDDDDDDDDDCCDDDDDDDDDDEEDEDDDDDDDDDDDDDBDDEEED +@DRR015910.520 HWI-ST1182:184:D1KRDACXX:3:1101:18838:2442/2 +ATATTAATAGCAGGCATACTATCCAAAGAAATGGTAATCGCTGAATGGCTGTCTAAATCTGTAATAATTGATGGAGGACAACCAATCGTGAAAAGACTAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJFGIJJJJJIJJJJJJJ@89?FH<=8==8@7=F=FC=77C;7C?56??B1=;;;;5;>BDA:,55:: +@DRR015910.521 HWI-ST1182:184:D1KRDACXX:3:1101:18935:2458/2 +GCCAGAGCATTACGTGATGTGGCCTTAGCCGCTGGAGAATCACCTGCCAGAAGAGGCTATCCGGTTTCGGTTTTTGATAGCTTACCCAGACTTCTTGAAA ++ +CCCFFFFFHHHHHJHIIJIIJIJJJJJJJJJJJJJJJIIJJJJJJFIHEHIIJJJJIJJJJHHHDEDEDDBDDDDBBDDDDDDDDDDDDDDDDDDDCDDD +@DRR015910.522 HWI-ST1182:184:D1KRDACXX:3:1101:19159:2295/2 +AGCCAGTGCGAAACAGACCAGTGTCACCAGCGCAGCCACCTGAGCCGTTGCACGGGTACGCAGGTGCAGTTCGCCCACGGTACGCATTTGCAGATAGGTT ++ +CCCFFFFFHHHHGJJJJJJJJIIIJIJIJJIJJJFHHJJJJIJIIIIJJJEHHHFFDCEDDDDDBDDDDDDDDDDDDDDDBDDDDDDDDEDEDDDDDDDD +@DRR015910.523 HWI-ST1182:184:D1KRDACXX:3:1101:19327:2344/2 +CAGGAAATCCTGCTATAGCGTATGAAACAGATAAAGTATATAAAATAACCGTTCTGCATACAAATGACCACCATGGACACTTTTGGCGTAACAATCATGG ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJJJJGIJJJJGGIIJJJJJJJJGIGHIJJJJJJJJJJJJJJJJJJJHHHHHFFFFFEEEDEDDDDDDDDDDDDD +@DRR015910.524 HWI-ST1182:184:D1KRDACXX:3:1101:19550:2435/2 +AAGGAGCGGATGCCAATGCCTCAGTCACCGGTAATGAATCCACGGTGCCGATGCAGCTGCGTATCACCGGCCTGGTGGAAATGCCGAACAGCAAGACGTA ++ +BCCFFFFFHHHHGJIJJIJJJJJJJJIJJJJDGHIIJIJIJIJJJFHIIJHHFFFFEEEEDDDDDEDDDDDDDDDACDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.525 HWI-ST1182:184:D1KRDACXX:3:1101:19515:2482/2 +CGTCACGCAGCGCGCTGATGCCTTCCACGCGTTTTTCTTTTACCAGTTCCGCAATCTTCTCGATCAGGCGCGCTTTGTTTACCTGATACGGAATTTCGTG ++ +CC@FFFFFHHHHHJJJJJJIJJJJJJJJJJJIIJJJGIHHHHHHFFFDFFDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDB@BDDDDDD +@DRR015910.526 HWI-ST1182:184:D1KRDACXX:3:1101:19797:2279/2 +GGCCATTATTGATCAAAGAACACAGGACAGTAATATCCGTAATGATGTAAAACATCAGGTTGATAATATGGTCACAGAATATCGGGGCAATATCGGAGAT ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJIJJJJJJJJIIJJIJJIJJJIHIJJJJJJHIJIJJJJJJJIIJJJJHHHHHFFFFDDDDDDDDEDDDDDD +@DRR015910.527 HWI-ST1182:184:D1KRDACXX:3:1101:19911:2414/2 +GGTTAAGGGCATTGATGATAACTGGCACCTGACGCTGTTTATCGAAAATGGTCGCATCCTTGATTATCCGGGGCGTCCGCTGAAAACCGGCCTGCTGGAG ++ +@@?DFDFFGHHHGJIJJJJJJJHIJJIJJJIIJHGHIHJJIJJJJGIIJJHHIJJIHIJHHHHHHFFFFFDDDDDDDDDDDDDDCDDDDDBB>BDDDCBD +@DRR015910.528 HWI-ST1182:184:D1KRDACXX:3:1101:19967:2442/2 +AAACAGCACATCCCGGAGAAGTTTTTTAAGATGGTGAGGTACTTCGGGTTCCTTGCCAACCGGGTGTGTGGAGAGAAGCTGCCGCAGGTGTACCGTGCTC ++ +CCCFFFFFHHHHHJJJIJHIJHJGJJJIIJGIIJFHIIJDHIJJJIJJHIHIJJIHHHHHFFDDBDBDBDDDDDDDDDDDDDDDDDDDBDDDEDDDDDDD +@DRR015910.529 HWI-ST1182:184:D1KRDACXX:3:1101:19878:2490/2 +CCCCTGGCCTGCGTATCCGGGTTGTACACTTCATCCCTGTAAAGCATCAGAATGATGTCTGCATCCGCCTCTATTTCTCCGGAATTTTTCAGGTCTGAGT ++ +@@@FFFFFHHGDFFHHIIGIGHGIFGGGGIJIIGIIJICGGIEBFGEAG>CGCHGGIHIIJJJJCABHFFFDEEEECEDD@DDBDDDDDDDDACDCDCCA +@DRR015910.530 HWI-ST1182:184:D1KRDACXX:3:1101:20237:2344/2 +CTATGGCGCAAATGGAACTGGTGATGAAAGCCGCTGGTTTTAAAGAAGTGAAATAATCTGTCGGCGGCCATGTTTTGCATGGCCGCCATACCCGTCTTAG ++ +CCCFFFFFHHHHHJJJJJJJJFHIJIJJJJJJJJJIJGHJJJJJFIJJDHGHIGIJJJJJHHHH?9=8559@>>A((::>:?8?09<-2:9B;FDGGGAGII0:@GHEBA6?CCCB@@BB5@@BBC>823?<>?AC<CAC>C@@ACCDCDCCCCAABBB<5>BB@3@C:>AA9 +@DRR015910.536 HWI-ST1182:184:D1KRDACXX:3:1101:20271:2489/2 +GGATCAAAGCACGCCGTACCCGTAATGAAGGCCGCGTACGCGCCCTGAAAGCGATGCGTCGCGAACGTGGTGAACGTCGCGAAGTGATGGGTACCGCAAA ++ +CCCFFFFFHGHHHIJJJJJJJJCGIJIIJIJJJJJJHIJGHFDDDDDDDDCDDBDDDD@DDDDDDDDBDDABDDDDBDDDDBBD8CCEDDB9@CDDDDDD +@DRR015910.537 HWI-ST1182:184:D1KRDACXX:3:1101:20588:2396/2 +CTACACAAGCGCCGTCTTCCCCTCGAAATGATGGTCTGGTGTATTGTTGGCATGGCGCTTGAGCGTAAAGAACCTCTTCACCAGATTGTGAATCGCCTGG ++ +CCCFFFFFHGHHHJJJJIJIJIGGIFIIJJHCHJ?DGIJDFFEHGIHIJJGGGHIHHEEFFCEED@@@DDDDDDDDDDDEDDDDDDDDACDEC@B?BDDD +@DRR015910.538 HWI-ST1182:184:D1KRDACXX:3:1101:20505:2446/2 +GCATATTATCCAATATCAGTCTGAACGAATTCTTCTAAAGGGAAGAATTGAAGAAATTCAAAAAGATATTGATGAGGCAAATGCTTCTAAAAGAAAACTG ++ +CCCFFFFFHHHHHJJJJJJHIJJJJJJJJJJJJJJJIJJJJJJJGHIIIFGGHJJJIJJJJJJJJJJJJJFIJJJIHHHFFFFFFEEEEEEECBDDDDDD +@DRR015910.539 HWI-ST1182:184:D1KRDACXX:3:1101:20576:2466/2 +GTATAAGACGCACCCAACACCGAGTTCGGGCCTAAAATCCCACGCCACAGCGGAAATGCCAGGCTCAACTGAAACTTTACTTCATCCTTACGCGCATTTT ++ +CBCFFFFFHHGHHJJJJIJJJJGHFHIIIJJJJJJJJIJJIIJJJHHHFF?ACBDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDD +@DRR015910.540 HWI-ST1182:184:D1KRDACXX:3:1101:20874:2359/2 +GCCCTAAGGTTTGTTTCTCAGTATGACAGCTCAATACATATACTTCGAACGCATTATATATTCATTTAATTCACTTTGTGGGAGAGGATTATTACTTTCT ++ +CCCFFFFFGHHHHIJJJJJJJHIIJJJJJJJIHIGIIIJJIJJJJJJJJJHHIJJJJJJJJJJJJJJIIIJJJJHHHHHHFFFDDDDDDDDDEEDDDEDD +@DRR015910.541 HWI-ST1182:184:D1KRDACXX:3:1101:20902:2382/2 +GGTCCAGGAGCCGGGCAGCGGTAAAACAAGGACTGCCCGGCTGTGGGTCTACGTTCGTGATGACCGTAACGCCGGTTCGGAAATTGCAGCATAAGTTATC ++ +BC@DFFFFHHHHHJJIIIJJIDHHIJJJJJJJJIJJJJJJJJHEHHFBEECEDEEDDBDDDDEDDDDDDDDDDDD9@BDDBEHHHHFFFFFEEEFEEFDDDDDDDDDDDDDDDDDDCDDDDDDDDEDDDD +@DRR015910.546 HWI-ST1182:184:D1KRDACXX:3:1101:21328:2460/2 +GATTACGTGCAGCTTTCCCTTCAGGCGGGATTCATACAGCGGCCAGCCATCCGTCATCCATATCACCACGTCAAAGGGTGACAGCAGGCTCATAAGACGC ++ +@@?DFEFDHFFDHDEHIHGIIEBCCGHIIEGIIIIICGGHGFFDCC?BBC>A@<CC@:5> +@DRR015910.547 HWI-ST1182:184:D1KRDACXX:3:1101:1290:2596/2 +GTACTTCAGTAACTCCATCAGCTATCCCCTGAGCAAGTCGTTCCATCCATTTCGCAAATCGAAAATACCCGGGGTATTGCAGACAAATATAATCCATCTG ++ +CCCFFFEDHFHFHIGGGIIIIIIIJJJJJJJGIIIJJFHIIJIJJIII>GDEIIJIIJJJJIJCHEHFFHFFDD,8CDCDDDCD??CCDEDDDDCDDDDD +@DRR015910.548 HWI-ST1182:184:D1KRDACXX:3:1101:1697:2555/2 +ATACATCTCGGTATAGTGCTGCGCGCGCTCGGTACAGACTGGCGGTTTCACAATATGCACCAGCGCATTTTTGTGCGCTTTAATGCGGTCGCTGAGCGTG ++ +CCCFFFFFHHHHHJIIIJJJJJJJJJJJJJJJHJJJJJJJJJIHFADDCC@CDDDDDDEDDBDDDDBDDDEDBBCCDDDDDDDDCDDDDDDDDDDDDDDD +@DRR015910.549 HWI-ST1182:184:D1KRDACXX:3:1101:1579:2563/2 +CCTCTTGATATTGCGGATCATCGTGACGGATACCTTTGAGAATATCCAGAAGCTGAATTGCTTCTCTCCGTTGCTCAAGTTCTGGCGGTAAGCAACCGGC ++ +CCCFFFFFHHHHHJJJIJIJJJJJJIJJJIJJJJJJJIJJJIJIJIJJJJFHIJJJJJJJJJHHHHHHFFFFDDEEDDDEDEFDDDDDDDDDDDDDDDDD +@DRR015910.550 HWI-ST1182:184:D1KRDACXX:3:1101:1612:2593/2 +GCATAAACTGCGCGATCAGGGCAACACCATTGTGGTGATTGAGCACAATCTCGACGTGATCAAAACCGCTGACTGGATTGTCGACCTGGGACCAGAAGGC ++ +@@BFFFFFHHHHHJJJJJJJJIJJIIJJJJJJJJJFHIJJEGJGIJJJJIFFHIJHHHFFFFFEEEDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDBB +@DRR015910.551 HWI-ST1182:184:D1KRDACXX:3:1101:1996:2504/2 +GGTCATGTTGGTCACCAACGAAACCCTGGCTCCTCTGTATCTCGATAAGGTCCGCGGCGTACTTGAACAGGCGGGTGTTAACGTCGATAGCGTTATCCTC ++ +@B?DFFFFHHHHHJJJJIJJJJJJJJJJJJJJIGGIIHIJIIIJHIIGFHJHIJJJHFDBDDDFDDDDDDDDDDB&50<>CD@?BB3?A@ABABDDDD +@DRR015910.559 HWI-ST1182:184:D1KRDACXX:3:1101:2428:2648/2 +GTTAGGGATTAGCGTCTTAAGCTGGCGCGAGGACCAACGCATTAGTCAGGCGAAGCTGCTTTTGAGCACCACCCGGATGCCTATCGCTACCGTCGGTCGC ++ +@BCFFFFFHHHHGJIJIIIIJJJJJIJHIIJJIHIJJJJJIJJHHEFHHFDECDDDDDDDDDDDCDDDDDDDDDDDBDDDDDDDDDDDDDDD@BDDDDDDDDDDDDDDDDDDBDDDBDDCDDDDDD? +@DRR015910.561 HWI-ST1182:184:D1KRDACXX:3:1101:2261:2726/2 +TAGCATGGCATATTACCATGCAAATTATAGCAGCATTGACAAATATATTACGGATATGTGCGGCCTTATTTGTATGAGGCATATTGAGTCTACTGGCATT ++ +CCCFFFFFHHHHHJJJIJJJJJJJJIIJJJIJJJJJJJJIJIJJJJJJJIHIIJJJIJIIJJJJJJHHHHHHHFFFFFFDDDEEEECDDCCDDEDDDDDD +@DRR015910.562 HWI-ST1182:184:D1KRDACXX:3:1101:2560:2654/2 +ACATTACACCGACTGCATGCCAGCTTTGGACGTATGGTTTCGATAAACTTAAAAGCGGCATTCTTACCTGCCCATTACTGGGAATTCCTCAGTAATGGGC ++ +CCCFFFFFHHHHHJJIIJJJJIIIJJJJJIJJHIJJIGHIIJFJJJJJJJGIJJJJJJHFFFEEEEEEEDDDDCDDDDDDDDBCBDDDDDDDDEDEDDDD +@DRR015910.563 HWI-ST1182:184:D1KRDACXX:3:1101:2720:2742/2 +CTTTTAGAGTTTAACCCTTTTAATGCCTTTACCTGATCTTTTAACATACTCTCCTCTCCCCCAGTTAAACTGGTCGGCGTCAGAAGAGAAGTCGAAACAA ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJIJIJJJJJJJJJJJJJJJIJIJJHJHFFDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.564 HWI-ST1182:184:D1KRDACXX:3:1101:2979:2589/2 +CTGTTAAGAGGAAAAGATTCTTACGCTCTATATCTTTTTTATTAAAGTTAATTCAAAAACAACGATCAGTTACAAGGAGAAAAAGCATAGAGATATGGAT ++ +CCCFFFFFGHHHGJJJJJJJJJJJJJJJJJJJJIJJJJJJJJIJJJJGHIHIJJJJJJJJJJJJJJHHHHHFFFFFFEDDEDDDDDDDDDDDDDDEDDDD +@DRR015910.565 HWI-ST1182:184:D1KRDACXX:3:1101:2951:2622/2 +TTGTCATACGAGTCGCCTGTACTTCCTGTTGATGCCAGTAATCCGGCTTCCTTAAGCCGCTGTGTGTAGGCCAGCGATACATACTGAGAACCTTTATCAC ++ +@@@DDDDDHFFHAF@FHGIBHHIIIIHFCGIFGGGHICDFHIIEEGGHIGBCGFGDHGHEFE=DB@D?AECE?ABBBABBCEECCECCCCCBCCCCCCDC +@DRR015910.566 HWI-ST1182:184:D1KRDACXX:3:1101:3049:2509/2 +TTGTCAGTATGGCTCAATGTGATAATAGTTGGAAAGTTTGATGGGTTTCGCCCCGTTGTAGCGGTAGTCGAGCTGGAAGGTCTTCAGGCACTGCTTACAG ++ +BCCDFFFFGHHHHJJJJJJHIJJJJJJJJJJJJJJJJJJIIIJJIHIIIIHIIJJJIJJJJJJHHGFFFDDDDDDDDCDD?CDDDEDDDDDDDDDDDDDD +@DRR015910.567 HWI-ST1182:184:D1KRDACXX:3:1101:3013:2561/2 +AGATGTAATAGTGTGATCCCGTTCCACTGTTTAGCGGTAAGTTCAGGCCAGTATTTTGTTGCGGGATCGCTTAACTTGATTTCCCCTCGAGCAATAGCGT ++ +CCCFFDFFHHHHHJIIJJJJJIIJJIJIJHIJIJJIJCFHHIIIJJJJJJIEHHIIJJHJIJIJHFFFDDEDDDDDEDDDDECDDDDDDDBDBCCDCDDB +@DRR015910.568 HWI-ST1182:184:D1KRDACXX:3:1101:3029:2617/2 +CGCCCCTCCGTTGTAATGTGCCAGCCGGGAAGCCGCTATTGGTGGCTTCTTCAGATAACGACCCAGGTAGCGTGCCGTATTCCTCCCGCCGGCCGTTTTT ++ +CCCFFFFFHHHHHIIJJGHIJJJJJIJJJJJIIJIIIJJJJI@GIIHHFHEEEFDFFFEDDDDDDDDDDDDDDDDDDDDDDDEDDDDBDDDDDDD@BCDD +@DRR015910.569 HWI-ST1182:184:D1KRDACXX:3:1101:3148:2644/2 +TCATCCAGCAGCGGGGCGATAAATCCACGCTGGGCATCGTCAAAATCCTGACGATCGCTAAACGGTAATGATTTGGCGTAATTCTGATTAACCTGTTGGG ++ +CCCFFFFFHHHGHIJJIJJJJJJJJHHHHFFFDDCDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDEDDDEEDDDD@BDDEEEEEEDEDDDDDDDDDD +@DRR015910.570 HWI-ST1182:184:D1KRDACXX:3:1101:3175:2729/2 +GGTGCGCATGGTGAACTCCGGCACTGAAGCGACCATTAAAGCCATCCGACTGGCCCGTGGTTTTACCGGTCGCGACAAAATTATTAAATTTGAAGGGCGT ++ +>>+<7=)0)?+A27<+CCC>CB>BBBCCCA>@B>9@B&8AB9 +@DRR015910.572 HWI-ST1182:184:D1KRDACXX:3:1101:3580:2594/2 +ATACAGCCCCAGGGTTTTGCCCAGCGTTAGATCCCCGCTCTCCCAGTAGCCGCGTAGCGTAGGCAGGTCATGTGTCGCCGCAACCGCCATCGACTGCTCC ++ +CCCFFFFFHHHHHJFHIJIJJJJJJJIIJIJJJJJJJJIIJJJJJJEDEGHFHFDDDDDDDDDDDDD?CDDDEDEDDBDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.573 HWI-ST1182:184:D1KRDACXX:3:1101:3676:2610/2 +GTTTCAAGGTCGCCCGCCAGTTTCTGTTTCTGGTATTTACGATCGCCTACCACGTTCCACCACGGCACTTCGTCACGCAGTTGGAAATGAGAGATCAGTT ++ +CBCFFFFFHHHHHJJJJJJJHIJIJJIIJIJJJDHHIIJIIJJJJIIJJJHIJJIHHHHHHFFFDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDEE +@DRR015910.574 HWI-ST1182:184:D1KRDACXX:3:1101:3630:2625/2 +GTTCAATATCGAAACCTTTTTTGGCTGGGTCAGCGACGTCGAAACATTCTGCGACGCGCTTTCTCCCACGTCCTTTGCTCATATCGCTTAAGGAGTTTAA ++ +BBCFFFFFHHHHHJJJJJJJJJIIJIJJJEHIJIJGIJEGIGIHEHHFFFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDCDDCDDED +@DRR015910.575 HWI-ST1182:184:D1KRDACXX:3:1101:3749:2726/2 +CCAGAACAGTCCTCGCAGAACCCGGGCGACAACATACCGGGCGGCATGGCACGCCTGACGGGACGACATATTATTTGCCATCGTTGCCCCCTCCCTGGCT ++ +@CCFFFFFHHHGHJJJJJJJJJJJJJIIJJJJJJIJIJJHFFDDDDDDDDCDDDDDDDDDDDDDDDDDDDEEEEEEECDDDDDBDDDDDDDDDDDDCDDD +@DRR015910.576 HWI-ST1182:184:D1KRDACXX:3:1101:3997:2676/2 +GTCTAATGGGGACTCTTTAGGTACGTGAAGAATCCCCATAACGCATTTAAAAGACACACATCAGATACCCTTAAGGTATCTGATAGTTTATTGACCTATT ++ +CCCFFFFFHHHFHJJJJJJJJFHJJIIJJJJJJIJJJJIJJJJJIJJJJJHIIJJJJJJJJJJHGHHHGFFFFFEEACEEFEDEDDCEEEDDDDDDDDDD +@DRR015910.577 HWI-ST1182:184:D1KRDACXX:3:1101:4118:2619/2 +GTACTGGCTGCACGAGCTGTTGGCTATGAGGGAAATGCGCATGTCACCATTGCTGCCCTGATCGAGTTTATCCACACGGCGACTCTGCTGCACGACGACG ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJIJJIJJIJJIJIIIJJIJIJJJIJGHIJJJJJJHHHHHFFEFEEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.578 HWI-ST1182:184:D1KRDACXX:3:1101:4323:2507/2 +CAAAAGATGATGGGGGCTGAAAACCAGAAAGAGGAGAAAGCAGGATGAGTACCCGAAATATCCACGTTAACACCGCGTCGTACACGCTTTTTGTTGCCTG ++ +CCCFFFDFHHHHHJJJJJIJJJJJJIJIJJIIJJIGIGIIIIJIIIJJJH@EHJHHHFFFEFEEEDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.579 HWI-ST1182:184:D1KRDACXX:3:1101:4268:2653/2 +GTACTGGAAAACTAAATGAAACTCTACAATCTGAAAGATCACAATGAGCAGGTCAGCTTTGCGCAAGCCGTAACCCAGGGGTTGGGCAAAAATCAGGGGC ++ +BBCFFFFFHHHHHIJJJJJJJJJIJJJJIJIJJJJJIIJJGIJJJJJIIJGHEHIIJJJJJJJJJJJHHHFFFDEDDDDDDDDDBDDDDDDDDDDDDDDD +@DRR015910.580 HWI-ST1182:184:D1KRDACXX:3:1101:4407:2725/2 +CGCGGCGGACAGCCTCACTTCCCAGGCGCTGGCGGGCCTGAATAACGGCACTGGGGGCAACGAAGGGGCGATTGCCCGGCAGCATGATGTCCAGGCGATT ++ +CCCFFFFFHHAFHJJJJJJJJJJJJJIJJHHFFDDDDDBDCCCCDCBDBB7DBDDDBDDDCDDDBDD +@DRR015910.583 HWI-ST1182:184:D1KRDACXX:3:1101:4702:2678/2 +GATTAAGAGGATAATTCGTGCGTTTTGCCATCCGGCGCACGATTATTCAGCACATCGTCCAGTTTTTTGTGGTCCAGTTCTTTCACCCACTTAGCAACGA ++ +B@CFFFFFHHHGHJJJJJHIJJIJJJJJJJJJJJJJJJJJJJJHHHHHHFFEFFEEDDDDDDDDEDDDDDDDDDDDDDDDEDDDDDDDDDDDCCDDDDDD +@DRR015910.584 HWI-ST1182:184:D1KRDACXX:3:1101:4596:2690/2 +GCCTGGCTGTAGATGCCAACGCGCGCGTCGATAACCCGATGGCTGACCTGCAACTGGTGAGCGATGATCTCGGCGAGCTGCAACGTCAGGCAGCAGAATT ++ +CCCFFFFFHHGHHJJJJDIJJJJIJJJIJJJJIJIJHHFEFDEEDDDCDDACDDDDDCCDDDDDDDDEDEDDDDDDDDBDDDDDDBDDDDDBDDDDDDDD +@DRR015910.585 HWI-ST1182:184:D1KRDACXX:3:1101:4921:2506/2 +ATTCAGAATCGGTCGCAAAAGTCTGTACCACGCCCGCACTGGCAAGGCCGATAAGGAAAATCACCAGCATGATTTCCAGAAGTGTGAATCCGCGTTCAGG ++ +CCCFFFFFHHHGFHJJJJGJJHIJIJJJJJJJJJJIJIJIIJJJJJJIHHFFDDEEDDDDDDDDDDDDDDDDDEEDEEDDDDCDDCDEEDCDDDDDDCDD +@DRR015910.586 HWI-ST1182:184:D1KRDACXX:3:1101:4817:2554/2 +ATATGAAATACAAGCATTTGATCCTGTCTTTAAGCCTGATAATGCTGGGGCCATTGGCTCATGCAGAAGAGATTGGTTCGGTCGACACCGTATTTAAAAT ++ +CCCFFFFFHHHGHJJJJJJJJJJJJJIJJJJJJIJJJIJJJJJJIJJJJJGHJJJJJJJJJJJJJJJJJIJJJHHHHHFFDADDDDDDDDDDDDEEEDDE +@DRR015910.587 HWI-ST1182:184:D1KRDACXX:3:1101:4986:2651/2 +GATAAAGCACCGTCTCGGCGGGAAACTTACGTAACTCTTCCGCCAGCATTTCGGCATCATCCTGATCGGCACCAACCACGCTGGTGAAGTGTTCACGATC ++ +CCCFFFFFHHHHHJJJJJJJJJGIIJII@ECAEFDC@@D>C8=B;><9>CA;<@:9BC>CCCC@@CCBBD>BD@A@B?BBD@BDA>B@:CD?BD +@DRR015910.588 HWI-ST1182:184:D1KRDACXX:3:1101:4892:2683/2 +GTTCTTGCAGAATATGCGAGCAACGCTGATCCCCACCATTGCGGTACCCGTGGTGTTGTTAGGGACGTTTGCCATCCTCGCCGCTTTTGGTTACTCCATC ++ +@@@FFFFFFFGFHJJJJIJJJJJIIJJJJIJJJJJJJJJIJJIJHIJJJJIEHABBDDEDEEDDCDDDDDDDDDDDDDDDDDDDBDDDDBBDDDDDDDDD +@DRR015910.589 HWI-ST1182:184:D1KRDACXX:3:1101:4761:2708/2 +GTTCCATGGCTGCTGCCATAACCCAACCGGTATCGACCCTACGCTGGAACAATGGCAAACACTGGCACAACTCTCCGTTGAGAAAGGCTGGTTACCGCTG ++ +C@CFFFFFHGHHHJJIIIIJIJIJIGIJJJHIGIGGIIIJIIGGGEHCHECEEEHFEFFEDDDDDDDDDDDDDDDDDDDDDDDDCCDDDDDCDDDDDDBB +@DRR015910.590 HWI-ST1182:184:D1KRDACXX:3:1101:5081:2550/2 +CTTCGGCACCTCCCGGCCATAGCTGCCCCAGTCATCGCTGGTCAGCATGCCGATGTTGAAGGGTGTAAGCAGTGCCAGTAGCTCCCGGCACGTTTGATCG ++ +CCCFFFFFHHHHHJIHIHHIIJJJJJJJJIJIJIJJJIJIIFHGIJJJJJCAAEFFEEEEEEDBDBDEDDDDDDDDDDCDDDDDDDDDDDDDABDDDDDB +@DRR015910.591 HWI-ST1182:184:D1KRDACXX:3:1101:5174:2572/2 +GGGCCGACATCATCGGTATCGGTAACCTGGTATGGTGGCGCAGGCGGTTCATCAACGCCTGTTACCTGTTCTTCGTCATGTTCGCTGATTTCTTCGAGTT ++ +CCCFFFFFHHHHHJJJFHIJJJIHJJJJJIFHIJJFGIIIIIJIIHF>CDCDDDDDDDDDDDDDDDDDDDDEDDDDDDDDEEEDDDDDDDEDEDDDDDCD +@DRR015910.592 HWI-ST1182:184:D1KRDACXX:3:1101:5039:2614/2 +CTGAGGAATAAGATGATGGATAATCAAAAGAAACAACATAAGTCTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGTGTAGATCTCGGTGG ++ +CCCFFFFFHHHHHJJJJJJJJGIJJJJJJIJJJJJJIIIJJJIIJJJJJJGHIJJJJJJJJJJJJJJJJJJHHFDDDDDDDBDDDCDCFDECDEDDD@DD +@DRR015910.593 HWI-ST1182:184:D1KRDACXX:3:1101:5104:2695/2 +TGTGTTCTATATGGACAATTCAAAGGCCGAGGAATATGCCCTTTTAGCCTTCTTTTGTCAATGGATTTGTGCAAATAAGCGCCGTTAATGTGCCGGCACT ++ +@BBFFFFFHHHHHJJJJJJJIIJJJJJJJJJJJJIJJJJJJJJJIIJJIJGIJJJJJJJJJJJJJJHHHHHHFFFFFFEDDDDDDDDBEDFEDDDDDDDD +@DRR015910.594 HWI-ST1182:184:D1KRDACXX:3:1101:5355:2569/2 +GTAACAATCAGCCACTTGCTCTGCTGAATATTCATCTTCCGGTAATGATGTTAGCAATAGCACATGGCCCGCTGCTTCCAGCGTTTCCGCCTGAACTACT ++ +BCCFFFFFHGHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFHIJJIJJJHIIJJJJJJJJJJJJJJJJJHHFFFEEEEEEDDDDDDDDDDDDDDDDDD +@DRR015910.595 HWI-ST1182:184:D1KRDACXX:3:1101:5446:2581/2 +ATTAAAGTATGAGCGATTTTCTGATGCCTGCCAGGGCGGAGAGATAATGTCAGTTTGCTGACCATGCGTGGGATAATGTTGCCGGATCTGGTCTGAACGC ++ +CCCFFFFDHHHHGJJJJJJJJIJJJIJJIJJJJJJJJJJGIGGIHHHHHHHDFFFFFFEEEEEEDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDD +@DRR015910.596 HWI-ST1182:184:D1KRDACXX:3:1101:5453:2724/2 +CAGTACAATAAGGTTGGCGGGAAGAAGGCACCCGCAGCAGATAAATCCGCCTGACCACCGAGGCGAATCTCGCATCCTGCAGCCAGCAATATGTCTGTCT ++ +BBCFFFFFHHHHHJIIJJJJJJIIJJJJJJJJJJJHHFFFEEEEEECDDD?BDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEDDDD +@DRR015910.597 HWI-ST1182:184:D1KRDACXX:3:1101:5506:2640/2 +GTAACAAACACGTTATCCAGACGACCACGGTATTTCGCCAGAGACGGCGCTTTACGGATGGCATACATCGGCAACAGGCACAGCAGGGATGCGATAATCG ++ +B@@FFFFFHHHHHJJJJIIJHIJJJJIIJJDGHIJJJJJJJJJHHIJGFDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDBDDBDDDDDDDD +@DRR015910.598 HWI-ST1182:184:D1KRDACXX:3:1101:5756:2574/2 +AGAATGCAACGTGCTTTGCAACTTATTGTTATACATGGTTTTTCAATTAAGCGAGTTGCAGTATCCTGTGGATATCACAGCGTGTCGTATTTCATTTACG ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJJJJJIIJDHIJJJJJJJJJGIJJJHIJJJJIHJIJJJJJHHHHHHHFFFFDDDBDDDDDDEEEEEFFED +@DRR015910.599 HWI-ST1182:184:D1KRDACXX:3:1101:5995:2591/2 +GCAGATGACCGTGCTGGCGCGGATTATCGACAATCACCAGTTCGGCCTGCTGACCGTGTCGCTGGTGATCATCGCGCTGGCAGATACGCTTTCTGACTTC ++ +CCCFFFFFHHHFHGEIJFIIJIGGGIIJIIIGIJIFIIIJEHIJHFFFFDCECEED@BBBDDDDD@A8ACA=0)?44)(9=;)7<(87(7775(6A=@6','(5-5959;(,9='0&)5&)++5(23883;<38;;;(&(((((+3(3( +@DRR015910.605 HWI-ST1182:184:D1KRDACXX:3:1101:6141:2701/2 +GTCCGGGAAGTTGCCCGGGAAAATTTGCTGCAGGAGCGTCTGCAGCAGATGGAGCGGGATATGGTCCGTGACCTGCAGAAAGAGAAAACGCTGGGCGGGG ++ +CCCFFFFDHHFHHIJIJJJIJIJJJIJJIIJJJJGIGIFHIJI>GHGIEEAEABDCDD@BDDDDCDDDADBDDDDDDDCDDDCCCDDDCBDDDDDDDDDD +@DRR015910.606 HWI-ST1182:184:D1KRDACXX:3:1101:6305:2556/2 +CATCGTCCCCTTCCGCGGCACTGCCGTCGATGGTATCCAGATCTTCCTCGTCAACCGGTTCAGCAACACGTTGCAGACCCACTACGTTTTCATCTTCCGC ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJIIJIJIJ@FHIJJJJHHHHHHHFFFDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEDDEDDD +@DRR015910.607 HWI-ST1182:184:D1KRDACXX:3:1101:6376:2583/2 +AATATGCTGCGGCTGGGTGAGATCCTGCATTTGGCTGCCACGCGGCACGAAGCACACTTTCTGGCATTCAGACAGTTTTTCAATCACCAGCGATCCTGCT ++ +@CCFDDFFHHGHHIIII9CCGC@GHIIIIAHHFGHGIIIIIGIIIEFDC>9?>CCCCCCCCCCCCCCCCCCCCCC:>CCBCACDCCCCC?@BB?BCCCCC +@DRR015910.608 HWI-ST1182:184:D1KRDACXX:3:1101:6441:2655/2 +TCTTAACCCTGCCTTGAATACCTTATCATTCGTCAAAATATTAATAGCGATGTGCCGTATCCCTGAAAATAATTCTGCGGCGTTTCCTCTTCTTATTTTG ++ +@@@FFFDFHGFBH@EHGGIGGGEFFHGHCEHIEEEHGIIIIGCGFEGGGEFFBFGHFHEAFGGIIIGGEECECHHFFFFDDD=:@@CCDCCCAC@ADDDD +@DRR015910.609 HWI-ST1182:184:D1KRDACXX:3:1101:6354:2707/2 +AGGGTGACGATTCGCCAGGCGAATCAGTTCCCAGACGTTAATCCCCTGATCGGCACAAATCAGCGACAATTCATTAGCAAAAGCGATATTCACATCGCGG ++ +BCCFDDFFHHHHHIJJJJJIJIJJJJJIJJJJJJIIIHIJJJJJJJJIIJEHHHFFFDEEEEDDDDDDDDDDDEEEDDDDDDDDDBDDDEEEDDDDBDDD +@DRR015910.610 HWI-ST1182:184:D1KRDACXX:3:1101:6379:2720/2 +GCACCTCTTTAACACAGGTCATTATTGTTGCGCCAAACCATGCGCCAAGGCTGTAATAAGGCAAATTGCGGATCACACTGTTCATTCCCCCACCACGGCG ++ +C@@DFFFFHHGGFIIJJFFGHIJIGIBEAAFHIIIJJECHEDGHGIJJGCAFA@DEHGIAAEHHFEC:?>A@BBDDCDCCCCB88>@> +@DRR015910.611 HWI-ST1182:184:D1KRDACXX:3:1101:6654:2526/2 +ATGCTTTACTGCCTGTTTATTTTTTTCTGGATACTCGTTGGTCTGGTTTTATGGGTAAAAATAAGCTGGCAGACGTTTGTGAACGGCTGTATTTACTGGT ++ +CCCFFFFFHHHHHJIJJJJJJJJJJJIIJJIJIIGHIIJIJDGIGIDHIJEHIJJFEHIJIJJIHHHHHFFFDEDCDDDDDDEDDDDDDBCDDEEDDDDC +@DRR015910.612 HWI-ST1182:184:D1KRDACXX:3:1101:6734:2541/2 +CAGCACGCATTCGAACAGGTCACGACTCAGGAACTGTTTCACCATTTGTGCATAGCACACTTTCGCCACTGGTTCCTGTTTATCCATCCCCAGAGCACGG ++ +CCCFFFFFHHHHHJJJJJJHHJJJJJJJJJJJJJJJJJJIJJIJJJJJHJHHIIIJJJJJJJHHHHFFFEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.613 HWI-ST1182:184:D1KRDACXX:3:1101:6553:2670/2 +CTTTAACACCACATTCCCCAACGGTCAGCAACAGTATGAACCGCGCTGGACGCTTGATATTCAGATGCAGATTAACCCTGTGGTCACAACTTCCCTGATG ++ +CCCFFFFFHHHHHJJJJJJJJJIJHIJJJJJJJJGIIJJJIJJIIJGIJIDEHFFFEEEFFEEDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDD +@DRR015910.614 HWI-ST1182:184:D1KRDACXX:3:1101:6797:2525/2 +GTTTAAGATTCGTCGCAATGCCGAAAGTTGTATCGACTGTGGCAAATGCGCAAAAAATTGCCCATCACGGATCCCGGTCGATAAATTAATTCAGGTACGA ++ +B@CFFFFDHHHHHJIJJJJJJJJJJJJIIIIJJJJIJJGFHGIJJJJIFIBHHFFFDEDDDDDDDDDDDDDDDDDDDDDDDDDDDEEDDEEEDDDDDDDD +@DRR015910.615 HWI-ST1182:184:D1KRDACXX:3:1101:6987:2590/2 +TCATAAACGCGCCCGTAATCGCCCATCTCCGGCTTAATCTCTTCTCTGACCGTCACGCCCTCGTCATTGACATACTCCAGCACACCGACCGAATCATCCG ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJJJJJJJJJJJJJJJJIIJJHHHHHFFFDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDD +@DRR015910.616 HWI-ST1182:184:D1KRDACXX:3:1101:7165:2520/2 +CTGTAGCACAGCATCATAAAAATAAAGCCGCCAATGGAGAACATAAGTGCCGCACAGGCATAACCGACGGTTGAGTCAGAAAAAAGCGACTGCAACGGAA ++ +@@CFFFFFHHHGHJIIIJJJJJJJJJFGIJJJJJJIIIFIIJJGHIHFGIHIJJJJHHHHHFFFFDDDDDBBDDDCDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.617 HWI-ST1182:184:D1KRDACXX:3:1101:7105:2590/2 +ATATATGTTAGCAGAAAGGAAAGGAAATGTGGCCCATTTTTCCTGCTGACGTAATATATTTAGAGGATTATCAAATTCATGATTACCGACGGCCATTGCA ++ +@@@FFFFEDDDHFHJIJIGIJJJIEHJIIA?GHHGIJJIIIJIIIIIIGIGHHIIJGIIIIJGEGGJIJGJJIGHHHHHGFFFFFFDCDD?BBBD>CDDC +@DRR015910.618 HWI-ST1182:184:D1KRDACXX:3:1101:7235:2633/2 +CTCTGACGCCGGAGAAAATTGCCGCCATTTTACCGCTGCAATTTTTCCCGCAACCGGCTGATTTTACGGGTCCGTATGTGATGTTGGCATCGCGGCGCAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIIJJJJJJJHHHHHHFFDDC@BDDDDDDDDEDDDDDDDDDDDDDDEDDEDEDDDDDDDDDDDDDDDD +@DRR015910.619 HWI-ST1182:184:D1KRDACXX:3:1101:7173:2674/2 +AGGTGATGGAATAACAGGAAAGCGGCTCGCAAAAACGCACAGATTTGTAGGCATGATAAGACGCGTCAGCGTCGCATCAGGCATCTGCGCACAACCGCCG ++ +@BCBDEFFHHHHHJJJJJJJJJJJJJJJIIJJJJJGBGGGGGHIIHFEHFACFFFFFEECEDDCDDDDDDDDDDDDDDDDDDAADDDDDDDDDDDBDDDD +@DRR015910.620 HWI-ST1182:184:D1KRDACXX:3:1101:7171:2715/2 +CCTCACATCGCCTCTGTTCAGCATCGTCTGGCTGGCAGACAGTGCCGGAGCATCACGCCCCGCTCTGGCAGCAGGTCAGTCAGGTGGAACATCGACCACT ++ +CCCFFFFFHHHHHIJJJJJIJJJJJJIJJDIIDGJJJIFHJJGIGIGIGIEGIHFHHFFFDDDDDDDDDDDDDDDACDDDDDDDCDDCBDDDDDD +@DRR015910.621 HWI-ST1182:184:D1KRDACXX:3:1101:7341:2746/2 +CTTTGGAACTTGCGCAGCAATTTGTTGACAAAAATGAACTAGAGAAAGCTGCCGCCCAGTTACAACAGGGGCTGGCAGACACGAGCGATGAAAATCTCAA ++ +CCCFFFFFHHHHGJJJJJIJJJJJIJIJJJJJJIIFIIJJIFGGIIJFGIHIJJJJJHHHHFFFFFFEDDDDDDDDDDDDDDDDDBDBDDDDDDDDDDDD +@DRR015910.622 HWI-ST1182:184:D1KRDACXX:3:1101:7631:2545/2 +GTATGTATCGCTGGCCTACACACAGCGGCTTAAGGAAGCCGGATTACTGGCATCAACAGGAAGTACAGGCGACTCGTATGACAACGCGATGGCGGAGAGC ++ +CBCFFFFFHHHHHJJJIJIIJIJJJJJJJJIJJJJJJIJJJJHIJJGHHHHHFFFFFEEDEDDCDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.623 HWI-ST1182:184:D1KRDACXX:3:1101:7559:2653/2 +GGTTATCAGATTATTAAAACGGCAATGGGTGAATTCAGACATTTTAGTCAGCGTGCGTCGCTGAAGGATGATTTCTTACTGCATATTAATGTTTCGCCCT ++ +BCBDFFFFHHHHHJJJJJJJJJJJJJJJJFHIJJJJJIGIIJJJJJIHIJHIJHIIJIJHFFFDEEEEDDDEFEDEDDDDDDDDDDEFFEDEEEDDDDDD +@DRR015910.624 HWI-ST1182:184:D1KRDACXX:3:1101:7989:2515/2 +CGCCTTCTCTGCCCCCGGGTGAAACTAGCGTAACGCTGATGCTGACACATCCCGCCTGCGATGTCTGCATTCGGTTGACCTGCCAGTTGGCAGGTGGCGA ++ +CCCFFFFFHHHHHJJJJJJGHIJJJJJJJJJJJJJJJJIIJJJJJJJJGHHHFFFDDDDDDDDDDEDDDDEDEDDDDDDDDDDDCDDDDDDDDDBCDDDD +@DRR015910.625 HWI-ST1182:184:D1KRDACXX:3:1101:8192:2550/2 +GGGGAAACACTGTCCGCAGTGCGGACAACCCATAACCAACCAGACCGGATGGAATATACATCACCGGATCAGGAAAGTCATGGGCGGCAGTGACGAACTG ++ +CCCFFFFFHHHHHJJJJJJHIJJJJJJIJJJJJJJJIJIJJJJJJJHHFFCCCEEDEEEEEDDDDDDDDDDDDDDDDCDEEDDDDDDDDDCDDDDDDDDD +@DRR015910.626 HWI-ST1182:184:D1KRDACXX:3:1101:8010:2563/2 +GTTTTACTCCTGTGCCATATGCAACAACGGAGTGCCGCCTTCCATGCCGCTAACGCGGCATCAAAAAATCCCTCTTCTCCAGTTGCCCCCCTCCGAACTC ++ +C@CFFFFFHHHHHJIJJJJJJJJJJJJJJJIJFHIJJJJJJJJJJJJJGGAAHDCEDDDDDDDDDDDDDDDDCDDDDDDDDCDDCDDDDDD@BD>9@>AC +@DRR015910.627 HWI-ST1182:184:D1KRDACXX:3:1101:8102:2578/2 +GTCCGCCAGCGCGCCGACCATCGCCGCTTCAGCAATCGCCTTCACGCCGCTCACCCAAAAATTGGGCGGCAAAAACAGCGTAACGACAAAGGTAGCAGCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJHHHHFFFFEDDDDDCDDDDDDB@BDDDDDDDDDDDDDDDDDDDBDDDDDDDBBDDDDDDDDDD>CCDDDDD +@DRR015910.628 HWI-ST1182:184:D1KRDACXX:3:1101:8020:2646/2 +GATCAAGGCTACCGATAATCAGCGGTGCGTCAGAAACGGTATTGCCGCGCAGCATGTAACGCAACACCGGCCAGTTGGCGTAGGTGGCGGCACGGCAGCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJGIIJJJJJJJJJJIFHJIJJJJHFFDDDDDDDEFDDDDDDDDDDDDDDDDDDDDDDDDDCCDDDDDDDDDDDDDD +@DRR015910.629 HWI-ST1182:184:D1KRDACXX:3:1101:8138:2647/2 +GTATGCAGGTTCTGATAGTCAAAATCGAACGGCTCGTAATAATCGTCGATCCCCGGCAGATGCGGGTTAGCGAAGATTTTACCCAGCAACATGGCACGGT ++ +CB@FFFFFHDHHHIJJJIIJIHIHHHIJIGIIJIJI?FHGIJIIIGIJEICEGH>DDBBBCCCBDD5??BCBBDBBCCDDA>@CC?ACDDD<(<<9@@D< +@DRR015910.630 HWI-ST1182:184:D1KRDACXX:3:1101:8186:2663/2 +CGTCGAGGATCCATAACGTGGCACGGGTCAGCCACAGACGCGCTAAAGCGACGCGGCGTTGTTGCCCGGCCGAGAGCTGATTTACAGGAATATCTTCGAA ++ +CCBFFFFFHFHHGJIJJJGIJJIJJIIFHGIJJGIIGIJFGGGHFFFFFDDBDDDDDDDDDDDDDDDDDBDDBDDDDDDDDCCCEDDCDDDDEEEEEDBA +@DRR015910.631 HWI-ST1182:184:D1KRDACXX:3:1101:8438:2540/2 +TCATCGCACCGCCAGAATCCACCACATAAATACAGGTCGCACCGTAGCCTTCCATCAGCTTTGCCTGCTTGGCGAGATTCTCCGGCGTGGTCATATGGCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJHIJJJJJJJJJIHHEHHHFFFFFFEEEDEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEDDD +@DRR015910.632 HWI-ST1182:184:D1KRDACXX:3:1101:8296:2682/2 +CGCGTACCGATGTGGTCGTCGAAGTATGGCGAAAACGGGTGTTTTCTTCGTCGCGCAGAATATGGTGATAGGTTAGCACCGACAGGCCATTATCGGGTTG ++ +CCCFFFFFHHHHHJJIIJGGIIJJFHIJGIJJJJJGJJJ5=EFFFFFEDDEDDDDDDDDDDDEEDCCDDEDDDDDDCDDDDDDDDDBDDDDDEDDDDDDB +@DRR015910.633 HWI-ST1182:184:D1KRDACXX:3:1101:8406:2704/2 +ATTGATAGCAGGGGATTTTCTTCTTAATTTTATAGGGTGGTTCTATGTTATATATAGATAAGGCAACAATTTTGAAGTTTGATCTGGAGATGCTTAAAAA ++ +CCCFFDFFHHHHHJGIJJJIJJJJJJIJJJJGIGIIJ?FGGHIJIJJIIJFFIHIJJJJJJJJJIIJJJJHHHHHHFFFFFFEEEEEEDCDDDDEDDDDD +@DRR015910.634 HWI-ST1182:184:D1KRDACXX:3:1101:8532:2619/2 +CCTCACTTGCTCATGAGAATGCCCGCCTGCGGGCACTGTTGCAGACGCAACAGGACACCATCCGCCAGATGGCGAAATACAACCGCCTGCTCTCACAGCG ++ +CCCFFFFFGHHHHJIIJIJJJJJIIIIIIJJBGHIIIICGGGIHIJGJHHDFFFBDEEDDDDDDDDDDDCDDDDDBBDDDDDDBDDDDDDDDCDCDDDDD +@DRR015910.635 HWI-ST1182:184:D1KRDACXX:3:1101:8557:2632/2 +GGATGTGGAATATACGGCAGCTGCTTCTGAAAGCGTGGTCAGAGGGGCTGGCGATGCCGGAGTCGTTGTCACATATCACGACGGAATCACAGAGGAGAAG ++ +CCCFFDFFHHHGHJJJJJJJJJJJIJGIGIJIJIIBGIDGHIBFHJJIHIGEHFFFFEDDBD@CBBDDBDEDDDCDDDDDDDDDDDDDDDCCDCDABD?A +@DRR015910.636 HWI-ST1182:184:D1KRDACXX:3:1101:8815:2634/2 +GATTATCCGAACTCGACCCAGATTCACCAGAAAAGAAAAAATTAAGCCGGGAAGAAATACAACTCACTATCAAAAAAGACGCAGCAGTTAAAGACAGGAC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIIJJJJJJIJJIIJJJJHHFFFEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDD +@DRR015910.637 HWI-ST1182:184:D1KRDACXX:3:1101:8779:2658/2 +GGTAAGTGAAACTTGTATAAATATACAATTTTAAATATTTATTCTCACAAATATAAGGTTGCCCTAGCATTATGTTCTCTGTAAATAATACACACTCATC ++ +B@=DDFFFDHHHHJIIJJJJIJIJJJJJJJJJJIJJJIJIGIJHJJJJJJIHIIIIIIHIJJJJJJJJJJJJJJJJIIJJJJJJJJJJHHHHHHFFFFDE +@DRR015910.638 HWI-ST1182:184:D1KRDACXX:3:1101:8822:2674/2 +GTCCTGCACACGTTTGTTGAAAGCAAGAAAGCTTTCTTCATCAAAAACGTTATCCAGTGACAGCATTGGTACTTCATGGCGTATCTGGCTGAAAGCCGCC ++ +CCCFFFFFHHHHHHIJGIIIJJHCHJJIJJJJJJJGIIIIGIJJJJIHIHFHIIIIJGHIHJJJIJJJJAHFHHHGFFFFDCDDDFEDDDDDDDDDDDDD +@DRR015910.639 HWI-ST1182:184:D1KRDACXX:3:1101:8846:2684/2 +CGAGAAAGATGCAATCGCAACTGTTAACAAACAGGAAGATGCAAACTTCTCCAACAACGCAATGGCTGAAGCTTTCAAAGCAGCTAAAGGCGAGTAATTC ++ +CCCFFFFFGHHHHJJIJJJJJJJJJJJJJJJIJJJIJJIJJJJJJJJJIJHIJJJJJJJJIHHHHFFFFEEEEEEDDDDDDDDDDDDDDDDDDDBDDBDE +@DRR015910.640 HWI-ST1182:184:D1KRDACXX:3:1101:8869:2723/2 +GTTTATCACGTATCAGCGTTACCAGCCTGATTTCAGCCTCCGCCCAGGGCAAAAAAGCGGTCGATGCGTTAGCGGGGCAGAGTGCGAAATTGCTCAACGG ++ +CBCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJHIJJJHHFFDDDDDDEDDDDDDDDDDDDDDDDACDDDDDDDDDDDDDDDD +@DRR015910.641 HWI-ST1182:184:D1KRDACXX:3:1101:9190:2512/2 +GTTTTAAAAATTCGAGCGTTGCCAGTTCAGCTTCCCGATCGCCCATCGTGCTCGCTTTCACGCGCTCTACCAGCCCGCTGGCGGTATGGGTGCGCACGTT ++ +CBCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJIIJJJIJJJJJJGHHHFFFFEEEDEDDDDDDDDDDDDDDDDDDDDDFFFGGDHI@DGIDDFD?BG3@FHG<87;';A(=DEFBD6B>A;;AB8,38<@CCC<:??>AC>B@908:@C@C@A?BBBBBB?@>?A:A@ +@DRR015910.648 HWI-ST1182:184:D1KRDACXX:3:1101:9045:2701/2 +GACATAGCCCCACTGTTCGTCCATTTCCGCGCAGACGATGACGTCACTGCCCGGCTGTATGCGCGAGGTTACCGACTGCGGCCTGAGTTTTTTAAGTGAC ++ +CCCFFFFFHHHHHJJJJJIIIJJJJJIJJJJJJJJJJJIJJJJIJJJJHHHHFFDDDDDEEDDDDDDDDDDDDDDDDDDDDDDDDDDADDDDDDDDDCDD +@DRR015910.649 HWI-ST1182:184:D1KRDACXX:3:1101:9139:2738/2 +GCTTTAACCAGTTCTTCTGATGTAACCGGGACTGGTGGGGCAGTGAATAAGGCCTGAATTTCATAGTTCGGCCTGTCGTTACAATCCTCTTTTTTCGGTA ++ +CCCFFFFFHHHHHJJJJJIIJJJHIJJJJJIJJJJGHIJJJIJ@GGIJGJGGIIGHHHHHFFFFFFFEEDDDDDDDDDBBBDDDDDDDDDDDDDDDBD?B +@DRR015910.650 HWI-ST1182:184:D1KRDACXX:3:1101:9446:2544/2 +GGTTTAATGGCCATTTTGGTCAGAGGTCTGGGGTTACTGATGCTGGGGGTTGCTTCAACGGCGGGCCCGTTACTGGGATCAGTATTGATTGACGTATTAA ++ +B@=DDEFFHHHGHJJJJJJGHIJHIJCGHJJJJDHIIJJIJJJJJJJJJ;BEHHHHHFFFDDDDB0;&0)8<04:CB(+88>:::B33>A::>>+8@A:@ +@DRR015910.651 HWI-ST1182:184:D1KRDACXX:3:1101:9252:2552/2 +TATCTGCGTCAGCCGCACCGCGTGATGGAACTGCACAACGACGGCACGTATGTCGAAGAGATCACCGATTACGTGCTGATGATGAAAATCGATGAGCAAA ++ +CCCFFFFFHHGHHJJJJJJJIJHIIJJJJJJIIJIJJJIIIJHFDDDDBDCCFEDDDDDDDDDDDDDDDDDDDADDDDDDDDDDEACC>A@DDDDDDDDC +@DRR015910.652 HWI-ST1182:184:D1KRDACXX:3:1101:9370:2584/2 +GTTTGTAGCTGTTATCGCGATAGCAATATTTATCACTGGCTGAACAGAGCGGATTTTTCACATTACCGCTTGTGCCCAAATATCCCCAGCCCAGGCCGAG ++ +CBCFFFFFHHHHHIJJIJJJJJJJJJJJJJJIIIIJJJJJJJIJIIJJJJFH@GHIJHHHHHHHFFFFDDDDDDDDDCDDDDDDEDDDDDDDABDDDDDD +@DRR015910.653 HWI-ST1182:184:D1KRDACXX:3:1101:9397:2651/2 +CCACAAAACCGTGATAGTCAGGTTACCGATACCCAGTGGCAGGGGCTGATGAGTCAGTTACGTTTGCAAGGCTTCGATACCCTGGTTTTGCAATGGACCC ++ +CCCFFFFFHHHHHJJIJJJJJJIJJJJIJIJJJJJJHIJJJJJJJIGIEIAAHAEHEBDDFFEEECEDDDDDDDDDBFDDDDDDD>CDDBDEDDDDCDDD +@DRR015910.654 HWI-ST1182:184:D1KRDACXX:3:1101:9273:2721/2 +GCGGAATAACCCAACCCCTAAATTAGCGCCTATTGGGGGCACCCCCCTAAAAGCCAACTTAAAGGGTGTGGGATTACCCCCGATATTATTTTACATGCCC ++ +;(7(-@(2)6)22<38=/5(2))2))2-(((-7)0<>4''--(69=/'(9((((((,,(5(,(56(22)(2&((2(((+2&&))&)2(+8:((((++(+( +@DRR015910.655 HWI-ST1182:184:D1KRDACXX:3:1101:9481:2725/2 +GCTCGAATGATTTGCCCCAGACTATATTCTGAAGGCACGGGACCGCCAGAAGATGGCTTATTTACCACCATCGCACCTGCGGATTGTCCCATGCTGATTG ++ +CCCFFFFFHGGHHGJJJJGGHIIFHEHIGGGIJEIIIIJJJIIJGGHEGGE@CAEHHFFFFFEEEDCEDBDDDDDDDCDDDDBDDCCDCDCDDDDDDDDC +@DRR015910.656 HWI-ST1182:184:D1KRDACXX:3:1101:9257:2738/2 +GCTTTGAGTCAGCCTACGTGGCCCTGTCGCGTATGAAGCAGCATGTGCAGGTGTACACCGATAACCGTCAGGGCTGGACGGATGCCATCAACAATGCCGT ++ +CCCFFFFFFHHHHJJJJIIJJJJJIIGIJJJGGIJJJIIJJJIJIJIJJJGFHHIIIJIHHFDDEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDCCDD +@DRR015910.657 HWI-ST1182:184:D1KRDACXX:3:1101:9722:2608/2 +GTTGATATCCGACTGAATCGCCCCGGCGGTGACGTCGCGCCCCGCGCCAGGCCCACGGATCACCAGCGGGTTGTCGCGATACCAGCGGCTTTCGATGGCA ++ +CCCFFFFFHHHHHJJGHHHIJJJJJJJIJ;BHHHHFDDBDDDD@BDDDDBA?BDDDDDDDDDDDDBDDDD9@BBCBBBBDDDC@A@@BBBBDCB?C@B?C +@DRR015910.658 HWI-ST1182:184:D1KRDACXX:3:1101:9616:2701/2 +ACGAAGAGCGTGTTGACGCGCTGGTTGCCGCTGGCGTTGACGTTCTGCTGATCGACTCCTCCCACGGTCACTCAGAAGGCGTTTTGCAGCGTATCCGTGA ++ +CCCFFFFFHHFHHHIHIIJJJJJIBCHIIJJIJIIJHHHGFFDDBCEDCDCDDDDDDDDDDDDDDDD?BDDDDDDDDDDDD9BDDDDEDDDBBBDDDBBD +@DRR015910.659 HWI-ST1182:184:D1KRDACXX:3:1101:9858:2552/2 +CACGCGGATCATCGTCATGCTTACCTACGTGTTGAGCGGGCTGTGTGCGGCGATTGCGGGCATTATCGTGGCGGCGGATATTCGCGGTGCCGATGCCAAT ++ +CCCFFFFFHHHHHJIJJJIJJJJJJIJJJGHGGIIIJJJJGEEBDFEEDDBDBDDDDDDDDDDDDEDDDDDDBDDBD9>@DE@CBBD5<BBCACD +@DRR015910.660 HWI-ST1182:184:D1KRDACXX:3:1101:9922:2564/2 +TTTTCTGCCCGCAGTGCCGATAATTCATCGCTGTCAGATTTGTGAACCATGCCCTGCTGTAAATCTCCGCATAGATTATGTCTGTTTGATCTCAGTCATC ++ +CCCFFFFFHHGHGJGEHJJIIIIJJJFGJIHGGIJIJJIJJIGGIJJJJHFGGIGIJHHHHHHHFFFFFDDBDDDEEDDDDEEDDDDDDDDEDDACDDED +@DRR015910.661 HWI-ST1182:184:D1KRDACXX:3:1101:9820:2635/2 +TTTCGGTACCGTTCGCCTTTGAAATTCTTCAGCGTACGCACTTTGAAGTCATATCCGAGAAAGGTGAAACTCGTTGCGACGTTTCTCCTTTTAAACGTGT ++ +CCCFFFDFHGHHHIJJJJJJJIJJJJGJJJIJJJHGJJJGIIJJJJIIIJFHGHIJJDHBEFFD@CEDDDDDDDDDDDDD>BDDDDDDDDDDDDDDDDDD +@DRR015910.662 HWI-ST1182:184:D1KRDACXX:3:1101:9772:2683/2 +GTAATATCCGGCGCTCCATGTGTCATATTTTCTGAACCATTTTTCTGTATACTGTTTCCTGGCGATGAGTCTGCGCAGTCGTCTGATTGTTCGCTGGTGT ++ +CCCFFFFFHHHHHJJJJJJJIJJIIJIJJJJJJJJJJJIJJJJJGIJHIJHIIIIIJJJJJJJHHFFFEEEEEEDDDDDDDDDDDDEDDDDDDDDDDCDD +@DRR015910.663 HWI-ST1182:184:D1KRDACXX:3:1101:9863:2742/2 +GATACCTTTCCGGTCCGGGCTGTACGCGAACCAGACCGCCGGGGGCATCTGTGAACCGGCGTTACGGTCATCACGGACATAGCTGTCTCTTATACACATC ++ +CCCFFFFFHHHHHIIJJJJJJJHIJJJJJJJIJJGJIGFFDDDDDDDDDDADDEEDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDD +@DRR015910.664 HWI-ST1182:184:D1KRDACXX:3:1101:10194:2543/2 +ATTAATTAACTGGCCCTGAAGTTGTATATCAGCCGGCAATGCCGGCGGGCTTTCTGTATTCAAAATCTGCCTGTAAAACGAGTGCCCTGTGCGTGAAAAG ++ +CCCFFFFFHHHHHJJJJJJJJIJIIIIIIJIIIJJJJJJJJJJJJJIFDDBBDCCDCDDEDEEDDCCDDDDDDCCDEDDDBB2?ACDCDDDDD?B?BDDD +@DRR015910.665 HWI-ST1182:184:D1KRDACXX:3:1101:10125:2547/2 +GCAGTTCCGCCAGTTGGTGAGCGTGTTCAGCGCCGTCGTTAACGAGGTCAAGCATCACGTATTCAATAGTGACTCAGCCTTGATTAGAGTAGGATTTTTA ++ +0(8-(...-02--@@).(().)(:(6;@CD;A;A55(5<<@DDEEEDDDBDDDDDCDBB +@DRR015910.673 HWI-ST1182:184:D1KRDACXX:3:1101:10677:2553/2 +CAGTACGTCGGGTAAATCCCTTTACAGACGCGCTGGTTTATCGTTCCCGCGGGAGTACACAGCAGGCAGATTATTCCCGCGTACCTGAGTATGAAGATCC ++ +CCCFFFFFHHHHFHHJJJJJJJJGIJJJIGIJJJJJGIJIJJJJJJHHHFA@B?B@CDDDDDBDDDDDDDCDDDEEEDDDDDDDDDDDDCDDEDEDDDDD +@DRR015910.674 HWI-ST1182:184:D1KRDACXX:3:1101:10569:2581/2 +CATCGCTTCAACAGGGAATTGTTGTCGCCATTGTTCGACTAACGCGTATTTTTCAGCGACTCCTGGGCAAAATACGCTGTTGCTTTTTTTAATATATCTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJJJIJJJJJJJJJJIJIIJIFGIIDHHHGHHFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEC +@DRR015910.675 HWI-ST1182:184:D1KRDACXX:3:1101:10723:2612/2 +GCCGCATAACAACGCAAAACGCCAACTGATAAAGTTGGCATGTTCTTCCTGACGTTTTGGTTTCTGCGTTTTCGCCGCTGCTTTCATGCGTCGCGTTTAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJIEGIJJJJIJJIIJIJJHGJIHHHHFFFFEEEEEDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDD +@DRR015910.676 HWI-ST1182:184:D1KRDACXX:3:1101:10660:2658/2 +GCGTCATACGGATCGAGCGTGGTGAAGTTCGATCCTACCGCCACCACCACATCTTTGGCAGCGAATGCACAAGATGCCATCAACGCTGTCGCAATGCCCA ++ +@@CBDFFFHDHHDHDHGGIHIICGGIIIIIIGIIIIIIIIGGGGGGGHFEEEFCDFFCEECCBBCCCCCCCBBCCCCCCCCCCCBB?BD@BCBDDDDDDDDDDD +@DRR015910.683 HWI-ST1182:184:D1KRDACXX:3:1101:11357:2621/2 +AATCAATTGTTATATAATTGCATCGCAGGTAAACGACAAATCAACGCAAATATAAATAGTAAAAATGGTTCATGTTTTGGCACTATTTGGTTTTTTTGTT ++ +CCCFFEFFHHHHHJJJJJIJJJJJJJJJIGIGIJJJJJJJJJIJJJJJJJFHIIGIIJJJJHHHHHHFEFFFFEEEEEEDDDDD>CEEEDDDDDDDDDDD +@DRR015910.684 HWI-ST1182:184:D1KRDACXX:3:1101:11417:2658/2 +GGTCATTCCCTTTGCGCTCATCCAATGATACAGGGCAGGAAATTTCTGCCCTGTAACACACCTTTTATTACGCTGCTTTCGCTACTGCGTCCACTTCCGG ++ +@B?DFFFFHGHHHJJJJJJJJJJJIJIJJJJIJJJJJJIJJJJJJJJJJJHIJIIHJJJJJHGJHHHHHHFFFFDDEDDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.685 HWI-ST1182:184:D1KRDACXX:3:1101:11383:2658/2 +CTTTGGCATGTACTCATTGGCGCGGCGAAAATCACCTCAGTGGTTATGTTTCTGGTGGCCTCGGCACAAGTTTCCGCCTGGCTGATTACCATTGCTGAAC ++ +CCCFFFFFHHHHHJJJJJJJIJJJJJJIJJJGIJJJIHHH=CEBDFFDDE@CEEEDDDDDDDDDDDDDDDCDEEDDDDDDDDCDDDDEDD:ACDDDDCAC +@DRR015910.686 HWI-ST1182:184:D1KRDACXX:3:1101:11623:2617/2 +ATACAGGAGCAGTCTGGTCTGAAAACATCAATGTCGCGTAAAGGTAACTGTTACGACAACGCTCCGATGGAAAGCTTCTGGGGAACGCTGAAAAATGAAA ++ +CCCFFFFFHHHHHJJJJHIIJJJJJJJJJJJJJHIIIJGHJJJI?FHGIJJHIJJJJJHHHFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.687 HWI-ST1182:184:D1KRDACXX:3:1101:11521:2633/2 +AAATAGAACTGATACCAGGATTGTTATATGGAACACGGTGCCCGTTTAAGTACCAGTCGTGTAATGGCCATCGCCTTTATATTTATGTCAGTGCTTATTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJIIJDHIJJJJJIJJGIJJJJJJJIJJJGIJJJJJJIIIIJJIHHHHHFFFDDDEDDEFFEEEDFFEDDDDEDDDED +@DRR015910.688 HWI-ST1182:184:D1KRDACXX:3:1101:11615:2647/2 +GTATTACGAAGCAAAAAATGACAAAGTAAGAAAACGCCTCGGTATTAAAGGCGGTTTTTACTGGGCTGAAGCGAAAAAATTATCCATTGCCATCTCCCGT ++ +@B@FFFFFHHHHHJJJJJJJJJJJJJIGIIJJJJGHJIIJIJFDHGIJJJHIIFBDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDEDDDDDDDDDDDB +@DRR015910.689 HWI-ST1182:184:D1KRDACXX:3:1101:11987:2595/2 +GGCTGGAACCCGGTATCTTCTGCGCCATCCACACGTATGGCCGTCGTCTCAACTGGCATCCGCATGTACATGTGTCTGTAACCTGTGGAGGTCTGAATAA ++ +CCCFFFFFGHHHHFHGJJJIJJJJJJGIJJJIJJIGHIJIJJJIIIGHFGHHFFFFFEEEEDDBDDDEEFEDEDDDDDDEEDDDDCDDDDD8CDCDCDED +@DRR015910.690 HWI-ST1182:184:D1KRDACXX:3:1101:11968:2609/2 +ATTCAGCCCCCCGCAGGTTACTGACACATGTACATGCGGATGCCAGTTGAGACGACGGCCATATGTGTGGATGGCGCAGAAGATACCGGGTTCCAGCCCC ++ +CCCFFDFFHHHHHJJJJIJEHIJJJJJJJJIJJJJJJJJIJJJHHHHHFFDEFDDDDDDDBDDDEDDBBDCDDDCDDDDDDDDDDDDDDD>BDDECDDDD +@DRR015910.691 HWI-ST1182:184:D1KRDACXX:3:1101:11817:2635/2 +ATCCACTTTTTTGCCCGTCCATATTCAACGGCTTCTTTGAGGAGTTCATTTTCCATCGTTTTCTTGCCGAGCAGGCGCTGGAGTTCTTTAATCTGCTTCA ++ +?;?B??DDBFFHDHBCEC?@FH9FHGGGEIFGFHGFHG>4-B)<==DH@F8@;@;CA;6ACDEE>;;@8A;3259?@995>18++>>@>:A>:>A>CC@A +@DRR015910.692 HWI-ST1182:184:D1KRDACXX:3:1101:11963:2675/2 +GTTTGAACCAATGTTGGCAACACAGCCGAAAGAACACAGAAAAAAAGTGGGAAGCCAATTATCTTAAAAAAGACAATAACCACTGCAAAAAAGTATTTAC ++ +BB@FFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJIJIJJGJJJJJJI@GHHHHFFFDFEEEEEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDD@CEEEEE +@DRR015910.693 HWI-ST1182:184:D1KRDACXX:3:1101:11775:2683/2 +CGCCCTGCACCAGCGCCGCAGCCTGTGCGTGAAATGCATCAGCCAGCACCTGTTCCACACGCTGGGTAACGCGCGGTTGATTCAGTCCTGGCGTTAAGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJIJIIJJJJJJJJJJJJJJHHHHHFFFFFFEDDDDDDDCDDDDDDDDDDDDDDDEDDEDDDDDDDDDDDDDD +@DRR015910.694 HWI-ST1182:184:D1KRDACXX:3:1101:12035:2642/2 +TCTACAACGTGCGTACGCCGCAGGATGTTATTTTCGCCGATGAGTGGCGTAACTATCCGGTAACGCTGGTGGCAGAAAATAACGTTACCGAAGGCTTTAT ++ +CCCFFFFFHHHHHIHIIJJJJJIJJJJJJJJJJJHIIJJHHHGHDFFFDDBDDEDDDDDDBDDDDDDDDCDDDCDDDDDDDDDDCDDDDDDDDDDDDDDD +@DRR015910.695 HWI-ST1182:184:D1KRDACXX:3:1101:12050:2657/2 +GTGTTGTACTCGCTGATCGGCACATGCCGTCTGAACAATGTGGAGCCAGAAAAGTGGCTGCGTTACGTCATTGAACATATCCAGGACTGGCCGGCAAACC ++ +BBBFFFFFHHHHHJJJJJJJJJJJJJJJJIIJJJJJJJJIHIJEHCFHIIFGIGEHIHHHFD?CBABABDDECCDCDCDCCDCDDBDDDDDDDDDBDDAB +@DRR015910.696 HWI-ST1182:184:D1KRDACXX:3:1101:12054:2734/2 +AAACCAAGGTTTTCGAGAGCCGTTTTCACCGTGCCATCCGATTTGATATCGCCAAACGGATTCTTGCGGCTCAGGTATTCAACAGCAAACCCCGATCCCA ++ +CCCFFFFFHFHHHJIIJFJJJJCFHJGIJIJGGGIJIJIIIIJJJIIJIIEHIJHHHHFFFDEEEECDDDDDDDDACDDDDEDDDDDCDDDDDBDDDDDD +@DRR015910.697 HWI-ST1182:184:D1KRDACXX:3:1101:12460:2544/2 +CATTATTTGTGTATTTGGTGTGAAAAGTAGTTGATCAAAGTCTTCCGGTAAACTTATTTTAATGGTATAGCCATAGTATCAAAGCATTTATACATGGATG ++ +CCCFFFFFGHHHHJJJJJFHFHIJJJJFHIIIIJJJJJJJIJJJJJJJGHDHGIJJJJJJJJJJJHHIJJJJJJJJHJHHHHHHFFFFFFFEEEEEDDDD +@DRR015910.698 HWI-ST1182:184:D1KRDACXX:3:1101:12466:2578/2 +GTCATGGTCTGCAATTACCGTTATAAAAACAGGCAATGTCATAGTCTTTCAGGTGGTTATATGGCCCGTTCAGCTAAACCCCGTAAACGTAAACCCGCCT ++ +@@BFFFFDHHHHGJJJJJJJJJJJIJJJJGGGIJJJIIEHIJ4BGIIJJIIHJBFHGIJIJJJJJJJIHHHHFFFFFFEDDDD@DDDDDBDDDDDBDDDB +@DRR015910.699 HWI-ST1182:184:D1KRDACXX:3:1101:12338:2626/2 +AAAGAGGCACCATCCGCGATGGTTATGCAGGCTACCGTCAGCTGGTGGCGAAAACGGGTATGTCAGATGCGAAATGCCGCAATCTGGTGAACGCCTATCA ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJJJJJJIIIJJJJJJHIJJHGFFDEDDDDDDDEEEDDDDDDDDDDDDDDDDDDDDEDCDDDDDDDDDDDD +@DRR015910.700 HWI-ST1182:184:D1KRDACXX:3:1101:12283:2664/2 +AGATACATCAAATCGATTACACAGCAGAAGCTGAGCTTTTTGCTTGCAATCTATATTGGCCTTTTTATGAATGGCGCGGTTTTTTACCGCCGCTTCGGCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJIJJGHIJJIJJJJJJJJJJJJJJJJJHHHFDD?BDDDDDDCDDDDDDDDDDDD +@DRR015910.701 HWI-ST1182:184:D1KRDACXX:3:1101:12544:2647/2 +GCCTTACATTAGATGAACCTAAGCAAAACTCTAAAAGATGATGCAATAAGTCAAGAGAAACTTGATTACGTAATACCGGCATCTTGTCAAAATAAATAAT ++ +CCCFFFFFHHHHHJIJJJJJJIJJJJJJJJJJJJJJJIJJJJJJIJJJJIJJJJJJJJJJJJJJIJJJJJIJIJJIHHHFDDEEDDDDEEDDDDDCEEDE +@DRR015910.702 HWI-ST1182:184:D1KRDACXX:3:1101:12740:2669/2 +GTAATACCGCTGATAATGTTCCAGGTGTTACCGATTAAATCTTTGGTGATGGTGTTAAAACTGGAGCCGACGGGATAATTTAAATTTGCTTCTAATAACA ++ +@@BFFFFFHHHHGJJJJJIJJJJJJHHIJJJJJIJJJJIIEIJJIJHIGIGHCGHGIJJJJJJJHHHHFFDDDDDDDDDFEDEDEEDDDDDCDDEEDDCD +@DRR015910.703 HWI-ST1182:184:D1KRDACXX:3:1101:12962:2543/2 +ACCTTCTGCCGGGGTGAGTTGGGAAACCGATGATAATGGCTTCGTGATTAAAGCCAGCAGCAAACAAATGCAGATGGAATATCGCTATAATGATCAGGGT ++ +CCCFFFFFHHHHHJBGHIIJJJJJJJJJJJJJJJJJJJJIJJIJHHHHHECDDDFFEDEEEDDDDDDDDDDDDDDDDDDDDDEDDDDDCCDDDDDEDDDA +@DRR015910.704 HWI-ST1182:184:D1KRDACXX:3:1101:12774:2573/2 +GAATAAACTTAAGAAATATCGTTTTCCGGAAACACTGACCAACCAGAGCCGCTGGTTTGGTCTGCCACTTGACGAACTCATTCCTGCAGCAATCTGTATT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJIJIJJJJIJJJJJJJJJJIIJJJHHHGFFFFFEEEEEEDDDDDDDDDDDEEFDDDDDDDDDDDEEEEE +@DRR015910.705 HWI-ST1182:184:D1KRDACXX:3:1101:12820:2744/2 +GCGCTATCTCTGCTCTCACTGCCGTAAAACATGGCAACTGCAGTTCACTTACACCGCTTCTCAACCCGGTACGCACCAGAAAATCATTGATATGGCCATG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIIIJJJJJJJJJJJJJJIIJJJJHJJIJJJJJJJJJHHHHFDDDDDDDDDDDDDDDDDDDEDDEEEDDDDDDD +@DRR015910.706 HWI-ST1182:184:D1KRDACXX:3:1101:13239:2532/2 +TCCAGATGCAGGGTCGACTGAATAAACTTCTGCGCCAACGGCGTTTTCGGATGCGAAAACACTTCACTTACCGTGTCCTGCTCGATCAGTTCGCCATTGC ++ +@@@FFFFFHHHHHIJJJJJJJJJJJJJJJGGEIFIIJJJIIIJIHHFDECDDDDDDDDDDBDDDDDDDDDDDDDDBDDDDDDDDBDDDDEEDDDDDDDDD +@DRR015910.707 HWI-ST1182:184:D1KRDACXX:3:1101:13132:2567/2 +CTCATCCACCGAGGCCAATGCTTCCATCATGCCCTTCTCGCCTTTCATGAACTCTGAGAAGTCGCTGTCTCTTATACACATCTGACGCTGCCGACGAAGA ++ +CC@FFFFFHHHHHJJJJJJJJJJJJJJIJJIJJIJIIJJJJJJJJJJJJJHIIIIJJIJJHHHHFFFDEEEEEDDDDEDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.708 HWI-ST1182:184:D1KRDACXX:3:1101:13000:2658/2 +CCTTCATGATGCGAAGCAGGGCGGCGGTTTTCCAGTCGCCTTCGCCCGCAAAGCCGTAACCCTGCTGCATCAGACGCTGTACGGCCAGACCTGGAAGCTG ++ +CCCFFFFFHHHHFJJIJJJJJIJJJHF>CDDCDEDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDD +@DRR015910.709 HWI-ST1182:184:D1KRDACXX:3:1101:13187:2674/2 +CGGCTACGCCACGGCGCTGGCGTTTGTTGAGGCAGGAGCGAAAGTTACCGGTTTTGATCAAGCGTTCGCTCAGGAGCAATATCCCTTTGCGACCGAAGTG ++ +CCCFFFFFHHHHHJJJJJJJJJHIJJJJIJJJJJJHFHFFCDDBCCDDDD@;BDDDDDDEDDDDDDDDDDDDDDDDDDDDDDEEDDDDDDDDDDDDDDBC +@DRR015910.710 HWI-ST1182:184:D1KRDACXX:3:1101:13391:2568/2 +ATCTTCAATGGCGGCAAGGATGTTGGCGTATGCACCACAGCGACAGATGTTGCCGCTCATACGTTCACGGATCTCATCGGCAGTTGTTTCTGGAGCGGAA ++ +CCCFFFFFHHHHGIIJJJJIIIIJIJJJGHIIIIJGEGGGEHEEHEEFFE>CEEDDDDDDCDDDDDDDDDDDDDDDEDDBDDDDDDDDDCDDDADDDDDD +@DRR015910.711 HWI-ST1182:184:D1KRDACXX:3:1101:13471:2662/2 +TTGCTGCATCAAGCCCGGCCCGGGTACGTTCGATGATCAACTCTCGCTCCATCTCTGCAAGGCTGGCCATCACATGAAAAAAGAAACGCCCCGCCGGTGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJ?GHJIIJJJJJJJJIJJIIJJJJIIHFHHFFFFFFEDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDD5>< +@DRR015910.712 HWI-ST1182:184:D1KRDACXX:3:1101:13341:2700/2 +GTGATGCACCACGCCCTGAATTTGAACTTAATAATCACTCTCTCTCCGGCAGCATAATCACAAACCTTGTCCCCCGCGCATCTGACGTTACTGCAACCGT ++ +@@@FFFFFHBHHHJJIGIGGIJJJGIIJJIJJGIGIGHGIIGFHHIGIIJGGGIIHGGGGHHHEHFEFFEFEEDDDDDDDDDDDCDDBBDDDDDDDDDDB +@DRR015910.713 HWI-ST1182:184:D1KRDACXX:3:1101:13603:2535/2 +GTACAGTAACCCTCATAGCCCCGCTCAATAATATCGCGCATCAGTTCCCGCAGCGGCATTTTGCCTTCTCCAGGAATGTAATGCGTGTCGCTGGCCCCGT ++ +CCCFFFFFHHHHHJJJJHIJIJJJJJIJIJJIIJIIIGIIJIIJJJIJIJHEHFDDDDDDDEDDDDDDDDDCDCD?A@4@@@AACDDDD>BDDE +@DRR015910.716 HWI-ST1182:184:D1KRDACXX:3:1101:13986:2565/2 +TTGCCGTGGATGGTGCCCGGCACGGACGAAATCGGCCAGGCGACCGCACAAGAGATGCAAAAACATTCGCTGGTGTTGTGGCCCTTCCACGGCGTCTTCG ++ +CCCFFFFFHHHHGGIJIJJJJJJJJJJJJJJJJJJIJJHHHFFDDDBDDDABCBDDDDDDDDDDDDDDEDDDD9AABDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.717 HWI-ST1182:184:D1KRDACXX:3:1101:13960:2627/2 +TTATTAACTGGATGCTTGACTACCATTCTTCAGATGATAAAGACGTCATCGCAATTGATGGAAAAATACACCGGCATTCTTATGACAAGAGTCGCCGTAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJHIJJJJJJJJJJJJJJJJJJJHHFFDDDDEEDDDDDDDDDDACDDDDDDD +@DRR015910.718 HWI-ST1182:184:D1KRDACXX:3:1101:13859:2632/2 +TGTTTCTTGCGGGTTGTCTTTAACAATAATCTCATATTTCCCGCGCCATTGCTTATTGACATAAATATCGATGTCATACTGCCCCGGTAAGGGTTGATTA ++ +@@?BBDDDDD?DFEDGHEBGIBEDHHGIGGIEGCGHGGGGEHBD;@GGIGDCEH?EHEDDCDEECCDDEC?BCACDEECCCACBBBBB@BCCB8?BCCAD +@DRR015910.719 HWI-ST1182:184:D1KRDACXX:3:1101:13992:2680/2 +GGCTAGTTACGCAGTGCGGCGGAAATTGACCAGTTCTGGTTGCGCAATGCGCAAATAATCCGCGGTTTTCAAAATAACGGATTTATCCAGCATACCTGCA ++ +CCCFFFFFHHHHHJJJJJJJJJIJJIJ@GHJIIJHGHHHEEFFDDDDDDDBDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDD +@DRR015910.720 HWI-ST1182:184:D1KRDACXX:3:1101:13843:2720/2 +TAACAACACCGCAAACCAACGACGCTGTTTATTTGGCACTTGCAACGGTCGGGCAATCAGCCACAGCATGGCGATTTTGATGATGAGGAAACCGAGCAGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJIHHHBBDDDBDDDDDDDDDDBDDDDDDBDDDDDDDDEEDEDDDDDDDDDDDDDD +@DRR015910.721 HWI-ST1182:184:D1KRDACXX:3:1101:14183:2531/2 +ATGTACTGATGCCCGGTAAAGTCCATGCGGATGATATCCCCGTTCCGGTCCAGGAGCCGGGCAGTGGTAAAACAAGAACTGCCCGGCTGTGGGTCTATGT ++ +@CCDFFFFHHHHHJJJHIIJJHJJIGJJJJJJJJJIJJJJJJJJJJIIIJEHIHHHHFFDDDDDDDDCDDDCDDDDDDDDDDDDDDDDDBDDDDCDDEEE +@DRR015910.722 HWI-ST1182:184:D1KRDACXX:3:1101:14026:2561/2 +TTTCAGCCCCGACCGCTGAAACGCCTGTTCACAGCCAACCAGTGCTGGACGTCCTTCCTGGATGCGGGCGGTCTGCGCGATATCGAGGTTGAGGCTGTCA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIJJJJJJJJIJIJHGHHBFFDDEEDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDBDDCDDDDDDDD +@DRR015910.723 HWI-ST1182:184:D1KRDACXX:3:1101:14144:2592/2 +ACCCGGTAGTACGCGCCCCCACGCAACCGGCCTACATTATCTACACCTCCGGCTCTACCGGTACGCCGAAAGGGGTAGTCATTTCTCACCGGGGAGCGCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJIIJJIJJHHHFFFFFFFEEEDEEDDDDDDDDDDDDDDDDDDDDDDDDDDDD9@DCDEEEEEEDEDDDDDD9BDDDD +@DRR015910.724 HWI-ST1182:184:D1KRDACXX:3:1101:14195:2685/2 +TTCGCCACTGGTTCCGGTTTATCCATCCCCAGAGCACGGTACACCTGCGGCAGCTTCTCTCCACACACCCGGTTGGCAAGGAACCCGAAGTACCTCACCA ++ +CCCFFFFFHHHHHJJJJHIIJJJJIJIJJJJIGIIIJJJDHIIJIJJJJIGEFFFFEEEEEDDDDDDDDDDBBDDDCDDDDDCDDD@DDDBCDDDDDDDD +@DRR015910.725 HWI-ST1182:184:D1KRDACXX:3:1101:14018:2732/2 +GAATGGGGGCCAGATCGAGTAGCGAAAACGCAATGGTTTTATCAGTCATAACAGCTCACTTTGTTACCGATTAATCTTTAATACTGCATTAAAGAGTAGT ++ +CCCFFFFFHHHHHJJJJJJHHIJJJJJJJIJJJJJJIJJJIIIJHHHGHHCDEFFFEEEEEEDDDDDDDDDDDDEDDDDDDDEDDEDDDEDDDDDDCCDE +@DRR015910.726 HWI-ST1182:184:D1KRDACXX:3:1101:14448:2626/2 +ATATATTGGTTTTCTCACTTCCGCAGGTATAAAGTATATTTTTTGAATTGGTTCACCGAGTTGATTACGTTTTCATGGCTAAAAATTGCCGCCCATTGTG ++ +CCCFFFFFHCFHHJJJJJJJJJJJIJJEHIJJJIGHIJJJJJJJFHIIIJHGIIJJIJJIIHHHHHHFFFFFDDEEEEDDDDDDDDDDDDDDDDDDDCCD +@DRR015910.727 HWI-ST1182:184:D1KRDACXX:3:1101:14349:2657/2 +TTCTAACTGGCTATGGCGTAATGAATAGTTCACCAACGACCAGACCGGAGAGCTTAAATAAATCCGCAACAGGTTGCCGTAATATGACACAATATTTTTC ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJIJJJJIJJJIJJJIIJJJJIIJHHHFFFFFFEEEEECDDDDDDDDCDDDDDDDDDEEEEDDDDDDDDEEEDD +@DRR015910.728 HWI-ST1182:184:D1KRDACXX:3:1101:14552:2513/2 +AAATGGAGCATCTGAGTTATCACGTTGAAAGCCTGCTGGAACAGGCAGCTAAAAAAGAGCTGAACTACCGGGAGTTCCTGTGCATGGCGCTACAGCAGGA ++ +CCCFFFFFHHHHHJIJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJHIJJJJIJIJJJHHHHHFFFDDBD@CDDDDDDDEEDDDDDDDDDDDDDDD +@DRR015910.729 HWI-ST1182:184:D1KRDACXX:3:1101:14714:2592/2 +GTCGCAGGTGGAAAACGAACAGAAAGCGATTCTGCTGATTGTGCGCCGCCTTGCCGAAACTGGCGAGATGGTAATTGGCAGCGGCGAGGATACCTATGTC ++ +C@CFFFFFDFHHHJJJJJJJJJJJJJIJJJJJJIJJJIJJIHIJIJJJJHHFFFFDDDDDDDDDDDDDDDDADDEEDDDDDDDDDDDDDBCDDDDDDCCD +@DRR015910.730 HWI-ST1182:184:D1KRDACXX:3:1101:14609:2710/2 +GCCCTTCACGGAACAGATCCGGCAAAATGCCTTCGTAAGAGACATCTACTGAACCTTCAGCGTCGTAAATGGTGAAAGTTACTTTTAGCGAATTGGGATC ++ +CCCFFFFFHFHHHJJJJJJJJIJJIIIJJJIJJJIHIJIJGIGIIJIIJJIIJJIJJJJHHHHFDDEDDFEDCCDDDDCDEDDDEDDDDDDDDDCDDDDD +@DRR015910.731 HWI-ST1182:184:D1KRDACXX:3:1101:14594:2735/2 +ACTGGTTTCAGGTATATCCTTTATTAAAAGAGTTTAATCTCAAAGCACATATTTTTTTAATTACCGGTTTTATTGGGAATGGTCCGGTTCGTCACTCTCC ++ +@CCFFDDFGFHFFHIJJIIJJJIJJIJJJHHIFHGIGIGGIIJJIJFIEIFFIJJJJJJJJIJJGJJEEHFFFFFFDDEEEDCCDDBBDDD?BDDDDDDD +@DRR015910.732 HWI-ST1182:184:D1KRDACXX:3:1101:14655:2736/2 +GTTTATCAACCCTTTAAGTTGCGGACGCTTAATTGCGATAGCGCCTTCAACCGTTTCAGCCAGCGCAGCATGAGGTGGAATGCGGGTATAAAGCAGTTGA ++ +CBCFFFFFHGHHHJJJIJJJIJJJJJIIIJJJJJIJJJIJIJJJJJHFEHDFFBDEEEDDDDDDDDBDDDDDDDD?BBBDDDDDDD9BDEEEDDDDDDDD +@DRR015910.733 HWI-ST1182:184:D1KRDACXX:3:1101:14786:2556/2 +AAGAGAACCGGGGCCGAAACCCCGGTTGTTATGATTAGCTTGCGACGGCCATCCCCACGGTCATATGCAAACCATAGAATACGCCGCGACCGATTAATTC ++ +CCCFFFFFHGHHHJJJJJJIJJJJJHIJJJIJGHHHHHFFFFFDDDDDDD@CCDDDDDDDBDDDEEEDEDDDDDDDDDDDDDDDDDDDDDDD@BDDDEED +@DRR015910.734 HWI-ST1182:184:D1KRDACXX:3:1101:14772:2719/2 +CAATGTCGCCAACGTTGTACTCGTTGTGCCAGCCCGGTTTCAGATACACACCATATTTTCCAGTCCGCGCATGGAAACAGTATTCACCATCGTTTCCTGT ++ +CCCFFFFFHHHHHJJJIJJJJJJJJIIJJJJJJJJJJGHJJJIJJIJJJJGGHJIHHHHHHHFFFFFDDDDDDDDDDDDDCDEEEEDDDDDDDDDDDDDD +@DRR015910.735 HWI-ST1182:184:D1KRDACXX:3:1101:15397:2503/2 +ATTGCGATTATCTCCTTTGCGCTTTGTGGTTTTGCTAACTTTGGTTCTATCGGTGTTGTCGTTGGCGCATTTTCGGCTATTTCGCCAAAACGTGCTCCAG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJHIIHIJJJJJJJJJJJJIIIIJJJGIJHIJIJHHHHFFFFDDDDDDEEDDDDDDDEEDDDDDDDDDDDDDDDDD +@DRR015910.736 HWI-ST1182:184:D1KRDACXX:3:1101:15442:2517/2 +GTCCGAATCTCAATCTCCGCAGTAACATCACGCTGATCGCGATCGGCCTGCCAGAGGAAATAGCCAGCCAGAGCAGAACTTAATGCGAATAGAACTAAGA ++ +CCCFFFFFGHHHHJJJJJIJIJJJJJJJIJIIJJJJJJJJIJJJIJIJHHHHHFEDFEEEEEDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDD +@DRR015910.737 HWI-ST1182:184:D1KRDACXX:3:1101:15477:2667/2 +AATGAGAGATAGCCCGCAGAACCGGCGTACCATTCTCGGGTGAACGGTTCGTGACGGGCGATAAACTGTCGCGCCAGATCGCGCGGTAAGCCAGCAACTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJGHIJJJJIIJJJJ@EHHHFFBDDABBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDD +@DRR015910.738 HWI-ST1182:184:D1KRDACXX:3:1101:15668:2500/2 +ATTCCAGCAAGCGACTAATGGCAGTTCGGTGCTGTTCATCGAAAGCGTTGACGGCAGCGATTTCAAAGATGTGTTCCTCGCGCAAATTCGACCAAAAGGT ++ +@@BFFFFFHHHHHIJJJJJIJJIJHJIJJGHIJJIJJIIJJJJIJJJIJJIIJJHFFDDBDDDDEDDDDDDDDFDDDDDDDDDDDDDDDDDDDDDDDDDA +@DRR015910.739 HWI-ST1182:184:D1KRDACXX:3:1101:15619:2590/2 +GGCCCGGGCCTGCTGAAGCAGTTCCTGAATGTACTGGAGCATGATGTCGTAGCCGATATAGTCCGTCAGCTGGTAAACCACGCTGTTGGACACACCGAGC ++ +CCCFFFFFGHHHHJJJJJJJJIJJJJJJJJJFIJJJJIJIJJIHIIJJJIGIIJJJHHFFFFFFDDEDDDDDDCCDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.740 HWI-ST1182:184:D1KRDACXX:3:1101:15703:2681/2 +GGGTGTGGATCATGCGAATCACTTCCGCGCCCTTCTCGTAAACGGTCAGGGTGTAGACTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGT ++ +BBCBDDDFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJGGHIHIJDHHHHC?BEFEEEEEEEDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDADDD@ +@DRR015910.741 HWI-ST1182:184:D1KRDACXX:3:1101:15564:2736/2 +CTGTAGCGCCTGTTCTTCTGATGTGAAACGCGTGACCACCAGCACCGGACCGAAAATCTCTTCGCGACTTAAGGACTGTCTCTTATACACATCTGACGCT ++ +BCCDFFFFHHGHHJIJJIJJIJJIIJIJJJJJHIJJIJJIIJGIJJIJIHEECDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDD +@DRR015910.742 HWI-ST1182:184:D1KRDACXX:3:1101:15965:2592/2 +GATAAGACGCGTGAGCGTCGCATCAGGCATCGTTCACCATTGCCGGATGCGGCGTTAACGCCTTATCCGGCCTACGGTTGAGCACTCAGCTTACTTCTTC ++ +CCCFFFFFHGHHHHIGIHIJIJJJIJJIJIJJIJJJJGGIEHIGHHBDD>=@>BBBDDCDBDDDCDDDDDDDDDDDDCBDADCCDDDDDDDDDDDDCDDD +@DRR015910.743 HWI-ST1182:184:D1KRDACXX:3:1101:15853:2660/2 +GCTTTGCAGATCCAGCAGGGCCTGACCGTTGCGGTTGTCGCTATCACCCGCATCTTCTTCGCTCGCCATCGCGATTTTCGCTTCGTCGGTGATTAATACA ++ +B@@FFFFFHHHHHIJJIIJJDIJJJJIJIIJFHIDGHGHIJJJJIJIJIJHFFFEEEEEEDDDDDDDDDDDDDBDDDDEDDDDDDCDDDBBDDDEDEEDD +@DRR015910.744 HWI-ST1182:184:D1KRDACXX:3:1101:15816:2706/2 +TCTTTAATCTGCTTCATGGCGGCAGCAAGTTCAGAGGCAGGAACAACCTGTTCTCCGGCGGCCACAGCAGTAAGACTTCCTTCCTGGTATTGCTTACGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJHIIJJIIJIIJICGCGIIJJGECEHEFFDDDDBDDDDDDDB>CDDCCDDDDDDDDDCCCCDEDDDDDCBDB +@DRR015910.745 HWI-ST1182:184:D1KRDACXX:3:1101:16012:2581/2 +ATGTCAATAAGAGACAAAGATGATTAAAACAACGTTACTATTTTTTGCTACTGCGCTGTGTGAAATTATTGGATGCTTTCTGCTCTGGTTGTGGTTAAAA ++ +CCCDFFFFHHHHHIIJJJJJIJIJJJJJJJJJIJGIJJJJJJJJJJJJJIHIIJJJJJJJIGHHHHHFFFFFFFEEEEEEDDD@CDDDCDDDDDDDDDDD +@DRR015910.746 HWI-ST1182:184:D1KRDACXX:3:1101:16049:2639/2 +GATTGATTATTGAGCGCAAATTGCTGGTATTTTGCGCTTTACTGTTCCGATAAGTTCAGTATGATCTTGCCCGGAAAACGGGGAGAGTCATTATGCTGGA ++ +B@@FFDFFGGHGHIIIIJJIIIJJIIJ;EEIIJIGIIJJJIJIIGGHIIGFFHGGHJJJIHHGGHHHFFFFFDDDDDDDDDDDB@CDEEEEDDEDDD +@DRR015910.747 HWI-ST1182:184:D1KRDACXX:3:1101:16101:2671/2 +GTACTTGAGCTACATGGCATCAGCCATGGTTCGGCCGGAGCAAGAAGCATCGCCACAATGGCTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGA ++ +B?BFFFFFHHHHAHIJJJJJJIJJJJIIJHIGIJJJJJGIFIGGHIJFIIIBEHHFFFEEEEEDDDDDDDDCDDEDDDDDDDDDDDDDDDDDDDDD@@?B42@@>:AC>@CC>>AA442(895>5 +@DRR015910.758 HWI-ST1182:184:D1KRDACXX:3:1101:17077:2656/2 +CTGTGTCGCTGCCGCTCTCATATAATAGGCCCGGGTAATGGCATTAAACCGTACTGCCTGTTCGCCAGACCAGGAGAACTCACGCAGTCCGTATTCAATT ++ +@@CDDDFFHGHGGJJEGGIIIIJJJIGHIJJIJJG?DFHIIEGHIEIGGHGHHHHHHFFFFFECCDDDDDB?BBBBDDDCDDDDDDDDCDDA@DDEEDDE +@DRR015910.759 HWI-ST1182:184:D1KRDACXX:3:1101:17377:2654/2 +CTTTAATAGTACGAAGATTGAAATCTCCTCGGCACTCAACTCTACCGATATGCGCCTGGTCTGGCAGGTTCCTTATGGCACCTTATTGCTGGATACGTTG ++ +CCCFFF?DHHFHHIJJJJJJJJIIGGIIGIJIJIJJIIEGFGGGHIIIIGGIJIIJHHHCEFFFCCDDDDDDDDDDDDDDDDDDDDEDDDDDBDEDDDCD +@DRR015910.760 HWI-ST1182:184:D1KRDACXX:3:1101:17282:2694/2 +CTTCAATGGCATACATCCATTTAACGGCAGAGGGCGCGCCCGCCACGTCGTTGACCATAATTGGCAGCATCAGCATCACTTGAACAGCCAGCATGTAGTA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJGIHJJIIJIGJJGJHHFFCDDD@CDDDDDDDDFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEE +@DRR015910.761 HWI-ST1182:184:D1KRDACXX:3:1101:17415:2705/2 +CTCATATCCTGCACGCCCGCACATAATAATGTGCGCCTGACTGTTAACAAATCGATCGGTAAAGCGTCGCCACTCCTGTTTGAGCCACGCCCAGTCTGAA ++ +CCCFFFFFHHHHHJFHIJGAGGGGIIEGGIGFIIIIIIIIIJIJIIJGGIIJIIIIIHHFDFFFFDCDDDDDDDDDDDDDDCDDDDDDBDDDBDDDDDDD +@DRR015910.762 HWI-ST1182:184:D1KRDACXX:3:1101:17341:2733/2 +GATCGCGTACCCGGTTTGCCGGCCAGTCCTGGATATGTTCAATGACGTAACGCAGCCACTTTTCTGGCTCCACATTGTTCAGACGGCATGTGCCGATCAG ++ +CCCFFFFFHGHHGJFGGGGIIIIIGGAACDDDBD>ACBDEDDDDDDDDDDDD +@DRR015910.764 HWI-ST1182:184:D1KRDACXX:3:1101:17512:2619/2 +ATTACAGACACTTATCCGCGAAATGAAAGGGAGCAGCCACTGATGATATCTCTCCCTGCCGGTTCGCGTATCTGGCTGGTTGCCGGTATCACCGACATGC ++ +?@@DFDFFHHHHDHIJJJJIIEDHGHJJIIGHGIIGEIIIIJEHEGHHJIEGGGGHHHHHFFADDDDD?DDDDDCDDDBCDDDDDD@CC +@DRR015910.765 HWI-ST1182:184:D1KRDACXX:3:1101:17674:2668/2 +TCGCTGTGTTGATCAATTTTGTCGTTGTCCATGGTCTCTTCTCTTGAATTAGCACGTATAGCTAAAGCGTAGCGGCTTTTTTGCTCGCAACTGACGGGAG ++ +CCCFFFFFHHHHHJJJJJJJJJJIJJJJIIJJJJIJJIIJGHGIJIJJJJHIJJJJJJJIJJJJIJJJJGIHHFFDDDDDDDDCDDDDDDDDDDDDDDDD +@DRR015910.766 HWI-ST1182:184:D1KRDACXX:3:1101:17844:2644/2 +TACAAAACGTCAGTAAAACCTTCATCCTGCACCAGCAAAACGGCGTGCGCCTGCCCGTCCTCAATCGCGCCTCGCTCACCGTCAACGCGGGCGAATGCGT ++ +CCCFFFFFHHHGHJJJJJEHIJJJJGJJIJIJJIJJJJJJJJJJJGGHJHHHFFFFDCDDDDDDDDBDDDDDDDDDDDDDDDD?BCBBCCCBCCCCBCCCCBCBBB??A>AAAC +@DRR015910.771 HWI-ST1182:184:D1KRDACXX:3:1101:18334:2559/2 +GTATCGACGCCTTTTTTCTCCATCGTTGCCATTTCAGCTTCGGCAACTTTGGTGTTACGGCATTCGTCAATAAAGGCCGCCAGTTCAGGATTATTTTCCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIIJIJJJJJIJJJJJJJJJJJJJIIEHAEDFFFFDDDDDDECDDDFEDDDDDDDDDDDDDDEDDDDDDDEEEEDD +@DRR015910.772 HWI-ST1182:184:D1KRDACXX:3:1101:18405:2564/2 +GCGTTAACGTTGTCGGAAGCTATCACACCCGTTTCGGACCGCAGATCCGCAACGATACCTACCTTGAGTACGAAGCATTCGCTAAAAAAGACTGGTTCGA ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJIJJJJIJJJJIJJIHHHHFFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDD +@DRR015910.773 HWI-ST1182:184:D1KRDACXX:3:1101:18278:2696/2 +GCCAGTCGCTGATCATGGTGATGGTTGATGCCTGACGGTAAATATCGGAACGATGGTGCGCCAGCCAAAGTAATCTGGGGATGGCACTTAAAGCCAGTGT ++ +CCCFFFFFHHHHHJJJJJFHHIJJHHIIJJJJJIJJJJFHIIGIIJJJJJHIIJJJIJGHHFFDDDEDDDCDDDEDEDDDBBDDDDDDDDDDDDDDD>CC +@DRR015910.774 HWI-ST1182:184:D1KRDACXX:3:1101:18934:2657/2 +CCGTTATACCGCCAGTCAGAAATATACCGTCGTCAGGGCGTGGAACTGAGCCGCGCCACGCTGGGGCGCTGGACCGGTGCCGTTGCTGAACTGCTGGAGC ++ +CCCFFFFFHGHHHJIIIJJJJJJJJJJJJJJJJIJJJJJJHHJJJIJJJHHGFFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.775 HWI-ST1182:184:D1KRDACXX:3:1101:18766:2718/2 +GGCAAAATTTTACTCGCGCAACGCCCCGCCCAGCGCGATCAGGCGGGATTATGGGAGTTTGCCGGTGGTAAAGTCGAGCTGGATGAAAGCCAGCAGCAGG ++ +CCCFFFFFHHHGHJIJIJJJJJIIJJJJIIJIJFGEFCDDDDDBDDD88CCCDDDCB?CDDDDDD@DD;CCDDDD?7BBBDEDDDDDDDBDDDDDDDDDDBB@B +@DRR015910.789 HWI-ST1182:184:D1KRDACXX:3:1101:20069:2598/2 +CCGTTGGCAAACTCAACGATGGTGTCGATAAATTCTTCCAGCAACTGCGGCATCGCTTTACCGTGGATCAACTGACCCGCGTCAAAGTCGATCCAGTGTT ++ +@@CFFFFFHHHHHJJJJJIJJJFGHHJJJJJJIJGIJGHJIIJJIJJJJJHIJJJHHHHFFFFDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDD4>AD +@DRR015910.790 HWI-ST1182:184:D1KRDACXX:3:1101:20217:2651/2 +GGGTCATATTGCTCACCCAGCGTTTCCGCCATTTCTTCCTGAAGTGCGCTGATTCGCTCCTGTGCTTCCTGTATCTGTCGTTCGGTTTTAGCGCGAAGTT ++ +BCCDDFFFHHHHGJJJJJJJJJHIJJJJJJHJJJIIJJJJIJIIGGHJJJHIJJIJJGHHHHFFFFFFEEEEDEEEEEDDDDDDBBDDBDCDDDDDDD?C +@DRR015910.791 HWI-ST1182:184:D1KRDACXX:3:1101:20103:2711/2 +CATCATCGTTGGTCGTGACCGACTGGCACGTCTTCGTAAGGAGCTAAGGCTACGCTGTAAGCAGAAACGCAAGTTCAGAGCGACTACGAACTCGAACCAC ++ +CCCFFFFFHHHHHJJJJIJJJIJJJJJCHIJJJJIJIIJJJCHIIJJGJFGHHHHFFFEEEEEEDDDDDDDDDACEEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.792 HWI-ST1182:184:D1KRDACXX:3:1101:20251:2526/2 +CGCCCATAATGCGGGCAGTTGCCCGGCATCCAACGCCATTCATGGCCATATCAATGATTTTCTGGTGCGTACCGGGTTGAGAAGCGGTGTAAGTGAACTG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJGHHHHFFEFFFFEEEEEEEDDDDDDDDDDDDDDBBDDDDDDDDD@BBDEDEDDDDDD +@DRR015910.793 HWI-ST1182:184:D1KRDACXX:3:1101:20424:2595/2 +CAGGAACTCCCGGTAGTTCAGCTCTTTTTTAGCTGCCTGTTCCAGCAGGCTTTCAACGTGATAACTCAGATGCTCCATTTTCAGGCGACTCAGCAGGACT ++ +@@@D=DFFHHHHHFHIEFHIJJJGGFHJJJI>HEHIJ@FHIHJDDGGIGIHHGHHHGG@EHHFHHFFFEFFECEEECDDDDDDDDDDDBDDCCDDBDDDD +@DRR015910.794 HWI-ST1182:184:D1KRDACXX:3:1101:20455:2610/2 +CCTATTTTGAACGCATCTTTAATTTCACTTAGCGCATATGCAGGCAAGAGGGAAAACAATGAATAATCATTATTCTCTGCACTCTTTAAATCAGCATTTT ++ +CCCFFFFFHHHHHJJJJJJJIIJJJJJIIIJJIJIJJIIJGJJJIIIJIIHIIIJJJJJJHHFHFGHFFFEFFFEFEEDEEDDDDDDDDDEDD>@CDDDE +@DRR015910.795 HWI-ST1182:184:D1KRDACXX:3:1101:20394:2655/2 +CCCTCTTCCTTTTATGGTGTAATTGTTTGATTGAATACTTCCGGGGATTTCAGTATGAAATGAAGTATATTTCTGTCTCTTATACACATCTGACGCTGCC ++ +CCCFFFFFHHHHHJJJIEHGHIJJJJJJJHHIIJIIIJJJJJJJJJFHIIHIJJJIJJJJJJIIJHGIJHHHHHHHFFFFFFFEEEEEEDDDDDDDDDDD +@DRR015910.796 HWI-ST1182:184:D1KRDACXX:3:1101:20591:2593/2 +TAGTATGACGGCTCGATTCCAGGTTGTTAGCGCGAGATTATGCGATTTTCCAGATTTATCATCGGATTGACCAGCTGTATAGCGTTCAGTGTTCAGGCCG ++ +CCCFFFFFHGHHHJJGIJJJJJJGHGHIGIGHGIGGHGIGCGHGDHHHHEEFFFFFFEFDEEEEDBDDA@CCCDDDCCDDDDABBB??CB@>CCDDDDDD +@DRR015910.797 HWI-ST1182:184:D1KRDACXX:3:1101:20623:2600/2 +TTACTGGAGCAGTCACACAAGTAGGTATAACGGGTATCGGTGCCAAAAAAACGCATTCAGGGATTAGCGACCAAAAAGGAGCCTTAAGAAAGAACCTTGC ++ +CCCFFFFFHHHHHJJJJJJJJHIJJHIJIJJJJJCFHIJJFHJJJJJJJJIHHHFFFEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.798 HWI-ST1182:184:D1KRDACXX:3:1101:20606:2651/2 +CCCCTGGCTATTATGCAACAGATATTACGCTGGCGACACGCAGTAATCCAGAAACCAATCAGCGCGTTCTTGATCATATTCCGGCAAACCGTTGGGGCGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJJJJIJIJJJJJJJHIJJJJJHHIJHHHHFFFFFDDDDDDDDDDDDEDDEEEEDDDDDDDDDDDDDDDDDD +@DRR015910.799 HWI-ST1182:184:D1KRDACXX:3:1101:20696:2716/2 +AACCTGTTGTCCGGAGTGTGGCGGTGAGCTGGATTATCTGGGGGAAGTCAGCGCAGAACAGCTGGAACTGGTGAGCAGCGCCCTGAAAGTCATCCGCACA ++ +@@CFFFFFHHHHHJHJFGHIGJIJ?GHIJJJJGIIIJIJJJJJIEHFEFE?BCDBBDDDDDDDDDDDDDDDDDDBDDDDBDDDBDCDDDCDEECCDDDDD +@DRR015910.800 HWI-ST1182:184:D1KRDACXX:3:1101:20521:2741/2 +CGCTTACCGGTGTTCGTCACCTGCACGCTGGCCGTCACTTTGCCGTCACGCTTCATGGTCGGCGCAGAAAGTTTCACATCAGAGACGGTGAAAGTGGTAT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJHHHEFFDEEEEEDDDDDDBDDDDDCDEEEDDDDDDDDDDDD>BDDDDCDDCDD +@DRR015910.801 HWI-ST1182:184:D1KRDACXX:3:1101:20804:2532/2 +GAATGAATTATATTATTTGATTTCTCAACACATGTGAAACGATAGTCAAGAGCATGACTATCTTTCTTTTTCACTCGATACTCAGCATTTTGGTACTCAC ++ +CCCFFFFFHHGHHJIJJJIJJJJJJIJJJJJJJJHIIJJIJIHIJJIJJJHIJJJJJJJJJJJJJJJJJJJIJJJJJJHHHHFFFFFFEEEECBDDDDDD +@DRR015910.802 HWI-ST1182:184:D1KRDACXX:3:1101:20894:2543/2 +GCTTTAAGCAGGCGCGTGGACGCGGTGGATTTGTTCGTTCTTCCTGGCAGGAGGTGAACGAACTGATCGCCGCATCTAACGTTTACACCATCAAAAACTA ++ +CCCFFFFFHHHHGJJJHJDIJJIJJEHIGIJJJJJJJJJIHHHHHFFFEDBCDD5=CDDDDDBBDDDDDDDBDDDDDDDDDCDDDDDDDDDDDADDDDDD +@DRR015910.803 HWI-ST1182:184:D1KRDACXX:3:1101:20938:2681/2 +GTCACTTTGACGCTGTCGCCGTCACCGAGAAACAAACCTACGGCCGCAATCTGATGTTTCTTCGCCCATGCCAACAGGGTTTTATTTGCCGTTCCCGCCA ++ +C@@FFFFFHHHGHJJHIIJGJHIDGIJIIJJIJIGIJGGGJJBGIFFDDD>ADDDCFDCCDCCBDDDDD>AC>9>CDDDDCCCCA +@DRR015910.818 HWI-ST1182:184:D1KRDACXX:3:1101:2137:2900/2 +CATGATCAACCGTCTGGGGGAAGGGCGTTCTCTGGGCAATAGCGTTTCGTTCAGTGGACCGAGCGAGTTACGCTCGGTTGGGCAACGTATTCTTTGGTTA ++ +CCCFFFFFHHHHHIJJJJJJIJJJJJIHJJJIJJJJJJJIGJJJHHHFFFCBCEDEEDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDABDDEEEDDDBDD +@DRR015910.819 HWI-ST1182:184:D1KRDACXX:3:1101:2095:2969/2 +ACGCATACCAGAGCCAGTGTTGTGTCAACGACGGATGAAAAGTGATCCACTTATATCTCCACCAACGGCCCAATATTGATCCACCGTTTTACTCAGGATT ++ +CCCFFFFFHHHHHJJJJHIJJJJIJJJJJJJJJJIIGIJJJGBDHIIJJJGHIIJJIJHHHHEFFFFDDDDDDDDDEEDEDCDDDDABDDDDDDDDDDDD +@DRR015910.820 HWI-ST1182:184:D1KRDACXX:3:1101:2049:2993/2 +GCCATACTGAGGCCAGACACGAACACTGGTCTGGAAAAAGGCTGAGTTCACGTTATCGTTTTTAATACGCTTCGCTTCTTCAGCCAGAATAACTTTCATC ++ +CCCFFFFFHHHHHJJJJJIGIJJJJJJIJFHIIJJJJJJIIIIIIG=FHIFHGIIIJJIHHHHEFFFFDDDDDDDDDDDDDEDDDDDDDDDDDDEDDDEE +@DRR015910.821 HWI-ST1182:184:D1KRDACXX:3:1101:2648:2769/2 +TTATTACCGTCGTGCTCATCTGTCTCTCCGGGCTGGCACTGGTTGCAGTGGCATGCCATACGCTGGCCGATTTTGTCGGTTTCCTGATTCTTGGCGGGTT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJJJJJJJJJJJJJJJHIJJJJHIEGIJHHHHHHFFFDDDDDDBDDDDDDDDDBDDDDDDDDDEDEDDDDDDBDDDDDCDDEDEDDDDDD9B +@DRR015910.823 HWI-ST1182:184:D1KRDACXX:3:1101:2690:2837/2 +CTGGAAATCCGTACTCTGCGTGATCGTAATGGCACTTTCGAACCGCAACAGCTGAAGAAAAACCAGCCCTAGATTACTAAATCTGTCGGGCGATGGATTA ++ +CCCFFFFFHHHHGJJJJJJJJJJJJJIJJIIJJIJJJJJJJJJJJJJIJJHIHHHHHFFFFFDDDDDDDDDDDDEDDDEDDDDDEEDDDDDDDDDDDDDD +@DRR015910.824 HWI-ST1182:184:D1KRDACXX:3:1101:2924:2885/2 +GTTTCAGGCGGTTTGCTGGGCCTTTCCGGTATTCTGGCAAGCCAGGCAGAGAGCGTTTGTGAAGCTTATGCCGATAGCTTCGCACTGGACCCGGTCGTGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJGHIJJJJJJJJIJJJJJJJIHHGHFFFDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBBDBDD +@DRR015910.825 HWI-ST1182:184:D1KRDACXX:3:1101:2831:2929/2 +TTGTACAACATTACCGGAAAAATGCGGGTCAGACAGACTGCGGCTGACCCCCTGGTTTTCAAATCCAAGCCCGACAGTTGACGCCAGCGCACGGATAATA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJGHGIJJJJJJJJJJJJHHHFFF@BADDCDDDDDDDDDDDDDDDDDDDDDCDDDD>BDDDDDDDDDDDDDDDD +@DRR015910.826 HWI-ST1182:184:D1KRDACXX:3:1101:2773:2948/2 +CCGGCAACCAGGATTGGAATGCCCATCGCGCCAAATGCCACTGGCGCGGTGTTAACAATCAGGCACAGTCCGGCGGCGTACAGCGGTTTAAAACCCAGGC ++ +CCCFFFFFHHHHGJJJJJGHIJJJIIIIIHIGIJJIJJJEGHJIIGIIH@=ABDECEDDDDDDDDDDDACDDDDDDDD>BDDDDDD<@DCCDDDBDDDDD +@DRR015910.827 HWI-ST1182:184:D1KRDACXX:3:1101:3044:2820/2 +GTTCTCAAACGGGTGAAGTTCATACCACAGTGAATACAGCAGCAGGTTCCCGCGAAACGTCAAAACCGCGGCTCCCGAAACTCAACGGGTGATGTTCTTT ++ +??@DDDFFHHGHHHGBHGBBEFHGJJIJGJHIIEHGGEIJJJJJJI2DBGBAHIHEFFFBDDDDD?BBB?BDDDDDBDDACCCBDD&58>ACCCDDC +@DRR015910.828 HWI-ST1182:184:D1KRDACXX:3:1101:3193:2971/2 +GCCGCTGCTGCTGGGGCCGGAAAGCAAAGTCGCCAGGCGTGAAGATCTCGCCACCGTCGGCGTGAACAGCTACGTCTCACCGGGGATGTGCGCCACCAAA ++ +BCCFFAFFHHHHHJJJIIIJJJJJJJJJJHIFIJIHJII;BHHEEECFFFBDDDDDDDDDDD@DDDDDDDDBCDDDDDEDDBDDDDDDDDDDDDDDDDDD +@DRR015910.829 HWI-ST1182:184:D1KRDACXX:3:1101:3460:2778/2 +GATAAACAGTGATCCCCAGCGCGCCATCGCTATTGAATTCAACATTCTCCACTTCACCATAACGCGTGCTTACGCTAATGCCGGTGGTCTTGCTGACGGC ++ +CCCFFFFFHHHHHJJJJJJJIJJIJJJJJJJIJJIJJJJJJJJIJJJJJJHIJJIJHHHHHHFFFDDDDDDDDDDDDDDDDDDD@BDDDDDDDDDDDDDD +@DRR015910.830 HWI-ST1182:184:D1KRDACXX:3:1101:3367:2790/2 +CCCTGACACCCTGGCAATTGTTCGCCACTTAGGGTCATTTGGCATGTCATGCCATAATCTGAGCCAGGCGTTAGCCATACTCACCTCTTTTGATACCGAA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJHIJJJJIJJJJJIJJJHIIJJJJJJJJJIJJJJJHHFFFDEEEEDDDDDDDDDDDDDDDDEDD9BD +@DRR015910.831 HWI-ST1182:184:D1KRDACXX:3:1101:3300:2842/2 +GCATTCTGGTTGTAAGTAATGGCGGCACTTGGGCCGACTCTTAAAAACCGGAGGCAACATGAACTTCAGACGCCTGAAATACTTCGTAAAAATTGTAGAT ++ +CCCFFFFFHHHHHJJJIIIIIJJJJJJJJJJJJJJJJJIIJJIJJHHEHBCCBDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDCEDEE +@DRR015910.832 HWI-ST1182:184:D1KRDACXX:3:1101:3372:2994/2 +CGTCGTAGCGAAGGATGTTCAATTTGGGTGGTGAAGGCGAGTGAAATTGTTGCCTCGCAACCGGAAGAACGCGGTGAATTTTTTGATCCGGCTGAAAGCA ++ +B@BFFFFFHHGHHJJJJJJJJJJJJIIJCGHDGHJGIIJEH;CGHJGIHH?EHHFFFFCDDDDDDDDDDDDDDDA@CBDDDDACCDDDDD@CD?BCCBB9@C@ +@DRR015910.838 HWI-ST1182:184:D1KRDACXX:3:1101:3555:2966/2 +AAATACAACTTAATTACCAGCGCATTGACGATATCGATAAAGAACGCACCGACCATCGGCACCACCAAAAACGCCATGTGCGACGGGCCAAAGCGTTCAG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJIJJJIJIJJJJJJJJGIJJJJIJIJHHFFEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.839 HWI-ST1182:184:D1KRDACXX:3:1101:3845:2824/2 +GGATCTGCCCCATCGATTTACGTGTGGCTTCGCGAGGAGTGAGTCCTTCCTCACTCATAATACGTTCGACGTTTTCCACCACCACGATGGCGTCATCCAC ++ +CCCFFFFFHHHGHJJGGJJJJJFIIJIJJJJIIHIGJIJFGAHHFHJJGHECHHGHFFFFFFFDEEEDDDDBBDDDDEDBDDDDDDDDDBDDDDDDDCCD +@DRR015910.840 HWI-ST1182:184:D1KRDACXX:3:1101:3905:2846/2 +GTTCAGCAGAACAGCGTCTGGCGGCAAGAAAAGCCAGAGCCGCGCCACTGATGCAGTCACTGTATGACTGGATACAGCAACAGATGAAAACACTGTCGCG ++ +BBBFFFFFHGHGGJJIGHGHJIJJIJJIJHIJCGIGGGIIIGHFFDCDCCCCDDDDDDDDDDDEEECDDDDDDEDCDDDDDDDDDDDDDDDDDDDCA@BB +@DRR015910.841 HWI-ST1182:184:D1KRDACXX:3:1101:3974:2919/2 +GATCCCGCGTTTTGGTATCTCTATTCATCTCGCCATTGACGGGCTGTCGCTGCTGATGGTCGTGCTGACCGGTCTGCTCGGTGTGCTGGCGGTACTATGT ++ +@@?BBDDDD?DFHGIEDHGHIEGIGGFIIDCHHIIGIIEHGGGA@BHGHC=:B@CBCCCCCB?;=8:>??;>9B@9>>@B>8<0<:::@?@B)09C4:>A +@DRR015910.842 HWI-ST1182:184:D1KRDACXX:3:1101:3928:2937/2 +TGCCTGTATGGCGTGCTGTGTCTGAATAATAACCGGATTGTCCGGTACGGATACCTGCCGTTTCAGGGGGACCTGTTTTTTACCGACACGGAGGGGAATA ++ +@BCFFFFFHHHHHJJJJJJJIIJJJJJJJJJJJJJJIJJGIJJJJHIJJJIGIHHHHHFFFDEEFEEDDDBBDDDCDDDDDBDCBDDDDDDBDDDD>BBD +@DRR015910.843 HWI-ST1182:184:D1KRDACXX:3:1101:4095:2858/2 +GGCACGTCAGAATGAGAATCATGAGGCCGGTAATAAATACATCCCTTACGGGAAAATGGCTTCCTGGCTGGTTGAGTGGAAAAATGCCACTGAAACGCAA ++ +CCCFFFFFHHGHHJJIJJIJJJJJIJJJJJFGIIJJJGJIIJJJJJJJJJHJIIIJJIHHHHHFFFFFEDDCCBCD>ADCDDCDACDDCCDCDDDABDBB +@DRR015910.844 HWI-ST1182:184:D1KRDACXX:3:1101:4228:2928/2 +CCTTTCGTGTGCCCGGGCGCACGCTTTTGCATCCGCTGTCGTTAACCTTTCCTGCCGGGAAAGTGACCGGTCTGATTGGTCACAACGGTTCTGGTAAATC ++ +CCCFFFFDFHFHHJJJJDIJJJJJJJJIJJIJJIJIJJIJHHHFFFFFFEEEEEEDDDDDDDB@CDD:>B;@DDDEDDDDDDDCDDDDBDDCDDDDDDED +@DRR015910.845 HWI-ST1182:184:D1KRDACXX:3:1101:4179:2944/2 +CCTATATTTCCAGACATCTGTTATCACTTAACCCATTACAAGCCCGCTGCCGCAGATATTCCCGTGGCGAGCGATAACCCAGCGCACTATGCGGATGCCA ++ +CCCFFFFFGHBHHAGGIIJIJIIJJJIIJJJIJIJJJIJJJGJJJJIIIBDFGIJJJJJEIHHHHFFDDDDDDDDDDDDDDDDDBDDDD@CDDDBDB?@( +@DRR015910.846 HWI-ST1182:184:D1KRDACXX:3:1101:4176:2977/2 +GCATCGACACCCGTCGCAGCTTTCAGCGCTGGAGGCATACCATCCATCATGTCAGCGTCAATAAACGCCACCTGCGGGATATCATGCGGATCAACGCAAA ++ +CCCFFFFFHHHHHJJJIIJJJJJJJJJJJIJJJJJIJJJJJIJJJHHHHHHHFFFFFDDDDEEDDDDDDDDDDDDDDDDDDDDEEDDDDDDDDDDDDDDB +@DRR015910.847 HWI-ST1182:184:D1KRDACXX:3:1101:4006:2988/2 +ATACATACAAGAAAATATTAAGTTAGATAATTTTATTCTAAATAACTGCAGATAAAAACGCACATAATGGGGGATGTTTTATGAAAATACCTGAAGCAGT ++ +CCCFFFFFHHHHHJJJIJJJJJIJJIJJJJJJJJJJJJIJJJJJJJJJJJHIJJIJJJJJJIJIIJJJJJIIHFFDEEEEDDDDEDDDDDCDDDDDDDDD +@DRR015910.848 HWI-ST1182:184:D1KRDACXX:3:1101:4447:2782/2 +CGTCGGGATCATTATCGGTCATAACGGTGAAGACTTCCTGGTTGCAGAAAGCCGGGTTCCCCTCTCAACCATCACTACGCTATCCCGTTTTATTAAACGC ++ +CCCFFFFFGFHHHIJIIJFFIIDHIJIEGIIEHGGGHHEHIDHIIJIGHIEGGEIHDFFFFEEDDCCCDDDDDDDDDCBDDDBDDDDBDDDDDDEEDDDD +@DRR015910.849 HWI-ST1182:184:D1KRDACXX:3:1101:4293:2793/2 +GTATATGCTCGTGGCCCAACACACCGTTTATTTCCCGGACGCCTTTCTGACGCAAATGCGCGAAGCAATGCCTTCGACGCTCTCTTTTGATGATTTTCTT ++ +CBCFFFFFHHHHGJJJJJJJIJJJJJHIJJIJJJJJIJIIGIJJJHGGHGCDFDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEDEDD +@DRR015910.850 HWI-ST1182:184:D1KRDACXX:3:1101:4461:2927/2 +GTCCTGACCGATGCTGTTACCGCAAATCGGCGATTTTCCCGCAGGCACCCACTGTTTTAAAAATTCGAGCGTTGCCAGTTCAGCTTCCCGATCGCCCATC ++ +CCCFFFFFHHHHHJJJGIIJJJJJJJIJJJIIIIIJJJJIIHFFFDDEDDBBBC@CDDDDDDDDDDDCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDBCD +@DRR015910.851 HWI-ST1182:184:D1KRDACXX:3:1101:4576:2802/2 +GTGTAGCAGCCAGCCAGTTATTTCTCTGGCGTAAGCAATACCAGGAAGGAAGTCTTACTGCTGTGGCCGCCGGAGAACAGGTTGTTCCTGCCTCTGAACT ++ +CCCFFFFFHGHHHJJIIGJJJJJIJJJJJJJIJJJJJJIJIJIJJJJIJJGGCHIJJJJJJJJJJJHHHFDDDDDDDDCCD>CC>BDDDDDDDDDDDDDD +@DRR015910.852 HWI-ST1182:184:D1KRDACXX:3:1101:4688:2953/2 +TGTTGGCACCCATCAATGATTTCATCAACACACTGAACGCTTTCTTTCGTGCTGGAGGTAAAGGTGCGAATGTGACGGTGCCTTTTAAAGAAGAGGCTTT ++ +??:B:?DD3CD=3<<<,<<377@CA/54.6;(6>??;8=>5>AA3(5(8(3((8<<> +@DRR015910.853 HWI-ST1182:184:D1KRDACXX:3:1101:4690:2979/2 +GATCAACACCTGATGAATCCTGATCAACAGCAACTGGCTCAATTGAAAGTGACCATATTTCTTTACCATTGACAATACAGGAAAAGTCATCAAAGAAATA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIIJIJJJJJIIJJJJIJJJIDBBFHIHIJJJJJJJJJJJJIJJJJJJHHHHHHFFFF@CEEEEEDDDDDDD +@DRR015910.854 HWI-ST1182:184:D1KRDACXX:3:1101:4828:2792/2 +TTCTGATTCTCTGTCAGTCCGCGTGGTTGCTGGCCTGGCTGATTTCCTGTTGTCAGGCGTTCAACAACCGACTGCAGGTTATAGCCCGGTTCACGAACAC ++ +CCCFFFFFHHHHHIJIJIJJIJJIJIHIJJJJJIIIIJIJJGHIJHIGHIFGHJIJJHJHGGFFFFFDDDDDDDDCDDACDDEDDDDDDDDBCDDDDDDD +@DRR015910.855 HWI-ST1182:184:D1KRDACXX:3:1101:4800:2856/2 +TCATGACACTCACGCTCAATAGACAACTTCTCACCTCACGCCAGATTCTGGTGGCCTTTAGCGGCGGGCTTTACTCCCCCGTTCTGCTGCATCAGTTGGT ++ +CCCFFFFFHHHHGJJJJJGJIJJJJJJJJJJJIJJJJIJIJIIJIJIJJJGGHJIJIJJJJJJHHDD@0&2((+449(09&&838(4((4,:44:+4:>+ +@DRR015910.856 HWI-ST1182:184:D1KRDACXX:3:1101:4977:2993/2 +GTCTTTATATTGATGGTCGTCCTGGCCCCGCACAAAGTGAAAAACGGTTGGCGATCTTTGATCCGGCCACCGGGCAAGAAATTGCGTCTACTGCTGATGC ++ +CBCFFFFFGHHFHJJJHJJJJIIHIJJJJIJIJJJJJ?DHIIJGIIJFHGBEHEFFEEEEEEECDDDDDDDDDDDDDDDDDDDDDDDDDBDEDDDDDDDD +@DRR015910.857 HWI-ST1182:184:D1KRDACXX:3:1101:5200:2789/2 +CGGATGTTGGGACTTGAACCGAAGAACACGGCGGTGCGGAGTCCGGAGAGTAACGGAATAGCAGAGAGCTTCGTGAAAACGATAAAGCGTGACTACATCA ++ +CCCFFFFFHGHFHJIJJJJJJJJJJJJJJIJJJJ@BHFEBD=ACDDDDBBCCCDDDDDDDDDDDDDDBDDDDDDDDDDDDDDBDDDCDDBDDDDDDCCDC +@DRR015910.858 HWI-ST1182:184:D1KRDACXX:3:1101:5224:2871/2 +TCACGGGTGATTGACGGATAACGGAAGTCGATATCCAGCACATTCGCCAGTTCATCGAAGTATTGTTTATCGATCCCTTTTTCACGTAACAAATTGAGGT ++ +CCCFFFFDHHHHHIJJJJJJJJJJEHJHIJJJIJJJIIJGIIJJIJJJJJIEHHHHHFFFBEFEEEEEEDDDDDDDDDDDDDDDDBDDDDDDACDCCDDC +@DRR015910.859 HWI-ST1182:184:D1KRDACXX:3:1101:5068:2905/2 +GCTGGAAACGCAGCGGTGCTGAGTATTCGCTTTCCGGCAGCGGTTCCACGCGTTTGTCTGAAACCCGCAACAGCAGCGGCAAACGGAAATGGCTACCCGA ++ +;1;3(.8;9?8/8(:>-83@1)=).>.))0<79.=3-<4=(-5':(.6;5',',2(,,(((,5(+()8&5:62+2((05-:5;;5(+252:/822(+88& +@DRR015910.860 HWI-ST1182:184:D1KRDACXX:3:1101:5082:2906/2 +GTTATGCCGGAGCGGGGCTTCTGGCTCATATCGTCACCGGGAAGTATGCAGACCATCTGCCGTTATACCGCCAGTCAGAAATATACCGTCGTCAGGGCGT ++ +@?@BDDBDFF1?A@DGHGBGGEGCHICGEHHGGCEHEEECC?>?CCCDCDA@BA?@>A:@C@B;7A@CA9BB@B>>CC@CCCCEEECB?BBBB?BDBBBCDDDDDDDDB>BDB@@ACBCDD??B& +@DRR015910.864 HWI-ST1182:184:D1KRDACXX:3:1101:5045:2983/2 +GCGCAAAGATATCCCGCAGCTCTTCCGGAACCATATCGACCAGTTTTTGCTGAGCGATTTTTTCAATAGCCTTGTACTCCTGAGCGATTTGCGAATTGAA ++ +CCCFFFFFHHHHHJJJJIJJJJJJIJJJIJJJIJJJJJJJJIJIJJJJJHHHFHHEDDDDEEDDDDEEDDDDDDDDEEDDDCDDDDDDDDDDDDDDDDDD +@DRR015910.865 HWI-ST1182:184:D1KRDACXX:3:1101:5309:2923/2 +ATTTTACGCCAGGGATTTCATAACCAGATTATCGGTGCCAACATCACCAATTGTAAGTTCAGTGACTTACAGGGCGACGCCATTGAATGGAATGTGGCGA ++ +@CCFFFFFHHHHHJIJJJJJJJJJJJJJJIJJJIJIIJJIJIIJIJJJJJIIJJJIJIJJJJIJHHHHHHHFFFFDDDDDDDDDDCCCDDDDDDCDDDDB +@DRR015910.866 HWI-ST1182:184:D1KRDACXX:3:1101:5381:2970/2 +ATCGATACGATCGGACATGCTTGTCTTCCTGTTTTATTGTGTCACCCCATCCAATTGGATTTTTGACTTCTGGTTGTGACATTTTTTTGACCTGAACGGC ++ +CCCFFFFFHHHHHJJJJJJJJJJHHIIIIGHHJJJGIJGIIHIGHHJJGHFGGIGIJJIJJJJHFFFFFFFFF@CDDDDDCDDEEDDDDDDDDDDDDDDD +@DRR015910.867 HWI-ST1182:184:D1KRDACXX:3:1101:5315:2977/2 +ATTATGAACGCAATGCTCAGAAAAAACGAAGAATGGAATGAATCGTATTTATGAAAACTGGATTGTGGGCCATAAATATTCCCAAAAAATAGCCCGCTCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJIGIJJJJJJJIJJIJJIJJJJGHIIIJJJJJHHHHHDFFFDDDEDDDEEFFEEDDDDDDDDDDDDDDDDDD +@DRR015910.868 HWI-ST1182:184:D1KRDACXX:3:1101:5487:2993/2 +GGTTTATTGATGGTATGCATGAAGCCGGAATGAAAACGACCGGGAAACACTTCCCAGGACACGGTGCAGTAACGGCAGACTCACACAAAGAAACACCGTG ++ +BC@DFFFFHHHHHGHJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJGHHHFFFFFFDDDEDDDBDDDDDDDDDDDDDDDDDDDDDDBDDDDDCDDDDBD +@DRR015910.869 HWI-ST1182:184:D1KRDACXX:3:1101:5693:2828/2 +AAGTTAACGAAGTTAACTTCGACAAACCTGAAAACGCCCGCAACAAAATCCTCTTTGAGAACTTAACCCCGCTGCACGCAAACTCTCGTCTGCGTATGGA ++ +CCCFFFFFHHHHHIGJJJIJJJJIJJJJJIHIIJGIIJJJIJJJJJJJJJEHHHHHFFFFFEEEDEEDDDDDDDDDDDDDDDDDDDDDBBDDDDBDDDDD +@DRR015910.870 HWI-ST1182:184:D1KRDACXX:3:1101:5528:2920/2 +TGGTAAAGGTGATTCAGGCCATCAGAGTTTTGCTGATGGCCTTTTTTCTTTCCGATAGCACAGGTCTGTCGGGGGGGCGGGATATGTATCCTGTCTCTTA ++ +@@CBDFFFHCFFHJJJIJJJJJJJJIIFHIJIIIJIJJIJJJJJJJJIHIFHIIIIJJIJJJJJHHHHHHFFCDDDDBDDD>@E<9A'3'5?:9?<:?7;@>@BBD5>&9@4>>>>@ACCDC +@DRR015910.873 HWI-ST1182:184:D1KRDACXX:3:1101:5854:2845/2 +GGATCTCACACCTGCTTCATGTGAAACTCTTCCCTGATGATTTCTGCCGGGCTACCGGCTAGTTCTCTTTCGCAGTTTGCCAGGCGGTATCGGTATTTTC ++ +CCCFFFFFHHHHHJJJJJJJJHJIJIJJJJJJJJJJIIJIJJJIIIIJIJFHIJIJJJJIHHEHEFFFFFDDDDDBDECDCCDDDDD<@DDDD@BDDDED +@DRR015910.874 HWI-ST1182:184:D1KRDACXX:3:1101:5797:2930/2 +GTCTGGAGCCGCCGGGTTCCATATGTTTCGCGAGTGCGGATATGTGCCACCTTAATCTCCAGTTTTAGCCGCTCATCACTTTGTTTTCTGTCTGAGGGGG ++ +@@C@>;6;?>-55;>ACCCCCECCCCCBBB;CCCCCCB<GEGCGHIGGIICA@GHJIGHHEDFFFFCEDDEDDDDBDAD>CADDDDAACDCDDDDDB9@B3< +@DRR015910.876 HWI-ST1182:184:D1KRDACXX:3:1101:5853:2954/2 +GGGAAACACCGGGCAGCAGTGCAGTGCGCAGGAGATTAGCCGGAGTGAATACACGAATTACTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGAT ++ +CCCFFFFFHGGHHGIIJIJDHGIJGHGIJFHGCHGIGGIJIIJ:GG>DAGHIBEA8AE@DBCDDDCD??BDDBBDDDDBB@BCDDD@BDCCD:@CC@>ACCBA> +@DRR015910.880 HWI-ST1182:184:D1KRDACXX:3:1101:6175:2774/2 +ATATTACGTTAATATCGCGAGGGAATGGTCCCCATATTCTCATAGAAGAGCCTCTGGCTTATAGCATCAACAAATACGGCTATAAATATTTCCTGTTTAA ++ +CCCDFFFFHHHHHJJJJJJJJJJIIJJJHIJHJIJIJJJJJJJJIIIIIJGHIJIJHHHHHFFFFFFFEEEDDDDDDDDDDDDEDDDDEEEEDDDACDDD +@DRR015910.881 HWI-ST1182:184:D1KRDACXX:3:1101:6005:2802/2 +GCCCTGAGTACGGATGCGGCTGGCGTCCACGCCCTGGGTGATCAACGCGCTGGCAACGGAATCCGCACGCTGCTGGGAGCTGTCTCTTATACACATCTGA ++ +CCCFFFFFDHHHHIIJIJIJHIJBF?FH=BFBHIBB>;?B@CDDBDBDBDDDDBDDB3;@CCDD?BBBCACCCDDCDCDDC>>@CCC +@DRR015910.882 HWI-ST1182:184:D1KRDACXX:3:1101:6187:2880/2 +ATATGGCCATGAATGGCGTTGGATGCCGGGCAACTGCCCGCATTATGGGCGTTGGCCTCAACACGATTTTACGTCACTTAAAAAACTCAGGCCGCAGTCG ++ +@CCFFFFFFHHFHJJJIJIIIJIIJJJJJJIIJJIJJJJJIJIJIIJIJF:BD?BECCDDDDCDDBDDBDDDD?ABDDDDDDDDDDDDDDCDDDDDD@DD +@DRR015910.883 HWI-ST1182:184:D1KRDACXX:3:1101:6119:2883/2 +TCCAGCTTACGTTTCGCCGCTTCTTCGTTCTGCTGTTTACGGAACGCTTCCAGCTCGGTGATATCGGTTTTGTCGAAGTGAGTAACATGCGGGATCATCA ++ +@<=BB:2ABBFBDEEFDGD3?7?BBB9?(8+8>3@>B>A<90&)((:+( +@DRR015910.884 HWI-ST1182:184:D1KRDACXX:3:1101:6169:2978/2 +CTTTACAACGGGTTATATGCGGATGCCAGCGCGTTCCGTTCGTTTCGGGTGCTTCCAGTTGATACCTTCAAGAAGCATAGATAACTGAGCCGGAGTAAGG ++ +BC@FFFFFHHHHFHJJIJJJIJHGIIJJIJIIIGIJJGDGGIGHHHEDF;9?CDCCDDDDDDDDDDDDDCDDDDDDDDDDDEEDCCDDDDDDDDD@DDDD +@DRR015910.885 HWI-ST1182:184:D1KRDACXX:3:1101:6251:2872/2 +GAACAGGATATCGATACCGCCATGCGTCTTGGGGTGAATTATCCATATGGCCCACTTGCCTGGGGAGCGCAACTTGGCTGGCAGCGAATATTAAGGCTCC ++ +@@?DDDDDFFHHHIBGGI?AAF@AGGDBD +@DRR015910.887 HWI-ST1182:184:D1KRDACXX:3:1101:6433:2999/2 +GTTGGTAGCTTCGCTGATCAGATGCTTAAACAGGTCACGGTCCGACTGGGTGACACGAATCGCTTCCAGCGTCATGCGGTTTTCACGCAGCGCCGCTTCC ++ +CBCFFFFFHHHHHJIJJJJJJIJJJJJJJJJJIJFIIJJJEHIJJJIJJJGHHIJJHHFFFFDEDDDDDDDBDDDDDDD5CCCE3;?255;-(:<=@=B->ACCDDDDD2?8:>:CA:>:3@::: +@DRR015910.899 HWI-ST1182:184:D1KRDACXX:3:1101:7166:2978/2 +GAGCTAGCCCGCGCGATGAATGGCGTTGGCCTGAAGAAAGCGCAGGCGATTGTCAGTTATCGCGAAGAGTACGGTCCGTTTAAAACGGTGGAGGATCTAA ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJJJJJJJJJJIJIJIJJJHHFFDDDABDEEDCEDEDDDDDDDDD@CDDDDDDDBDDDDDDDDD?BDBDBBCDDDD +@DRR015910.900 HWI-ST1182:184:D1KRDACXX:3:1101:7371:2837/2 +GTCAGGATGAAATCGGACTGCGTTACAACAGTCACCGAACAAAACGGGAAGAATACCTGTTGATGAGTGGAGATGAGTTCATGGAAAGGTTCTCCTGGCA ++ +CCCFFFFFHHHHHJJJJJJJJJGIJJJIJJJHJEHJJJJJJJJJIIJJIJEEHHHFFFFEFEEEEEECCDCDCDDDDDEDDEDDDDDDDCDDDDDDDDDD +@DRR015910.901 HWI-ST1182:184:D1KRDACXX:3:1101:7448:2851/2 +CCCCACCACGGCCCAGATGCAGTAGAGGAAGCCAATGGTAGTAACTGCCAGATATGCCGGGCGTGCTTTACCAAAGTGACCGTGTCCGAGCAGCAGTAAC ++ +:1??;0)2<2000@;A7A===@84/=,9>55::::(59<((4>>;??2><:>44 +@DRR015910.902 HWI-ST1182:184:D1KRDACXX:3:1101:7412:2897/2 +TTCCTGCATTCTGGGAACGCTTTTCTGGCTGTGGACGGGCTGGACTTCCGGTAGTGGTGCAATGGTGATGATTGCGGTCGTGACGTCACTGGCAATGCGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJIJJHIJJJJJJJGIGIIJIG@BEEHFDEFFEEEECEDDDEEFDDDDBDDDDCDDDDDDDDDDDDDDDDD +@DRR015910.903 HWI-ST1182:184:D1KRDACXX:3:1101:7738:2784/2 +GTGACGTCATCGTCTGCGCGGAAATGGACGAACAGTGGGGCTATGTCGGGGCTAAATCGCGCCAGCGCTGGCTGTTTTACGCGTATGACAGGATACGGAG ++ +CBCFFFFFHHHHHJJJJJJJJJJIJJJJJJJJJIJFGIJHHFFFFFEDDDBBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@BDCDDCCDDDDDDDBD +@DRR015910.904 HWI-ST1182:184:D1KRDACXX:3:1101:7617:2846/2 +CCAGAATATATCTGCATTTGGTAAATCCGGTTTTATTTAAGGCTACAGATGCCCATACCGCATCATTTTGTGTTTCGGCAAGAATATAATTGCACTGTCC ++ +CCCFFFFFHHHHHJJJJJJJJGIJIJJJJJHIJJIJJJJJJJJJJJJJJIHIJJIJJIJJJJJJJJJHHHHHFFFFFDDDDDDDDDEEEEECDDDDDDDD +@DRR015910.905 HWI-ST1182:184:D1KRDACXX:3:1101:7517:2901/2 +TCACAATGCATGTCAATTTCGCCATCTTCCGCCAGGATGCTATCGACTTCTTCATCAGGCAGCGTTTTCAGTGCATCGGCGCAACGTTCACGCGAGCAGG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJHIIJJJJJJJJJJHHFFFFEEFEEEEDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.906 HWI-ST1182:184:D1KRDACXX:3:1101:7800:2837/2 +ACAGCTTTCCGGCTGATGGTCGTACGGACCTTTTTACCCCGGAGAACACCGGCAAGTCCCATAACCGCCATGAGACGTGCCACAGTGCATCTGGCCACTC ++ +CCCFFFFFHHHHHJIJIJIHHIEGHIJEHIIJJJJJJJJJIIHIHHHHHFEDDDDBDDDDDDDDDDDDDDDDDDDDDBDDDDDDDCDDCDDDDDDDDDDD +@DRR015910.907 HWI-ST1182:184:D1KRDACXX:3:1101:7808:2851/2 +ACAGCTTTCCGGCTGATGGTCGTACGGACCTTTTTACCCCGGAGAACACCGGCAAGTCCCATAACCGCCATGAGACGTGCCACAGTGCATCTGGCCACTC ++ +CCCFFFFFHHHHHJJJJJJHIJIJJJJJJJJJJJJIJIJJJJIIHHHHHFFDDDDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDEDDDDDDDDDD +@DRR015910.908 HWI-ST1182:184:D1KRDACXX:3:1101:7946:2930/2 +ATATTACTGTTGTCGATACCAACGGTGAGCGTCTGCGGACCTTACAGGATAAATTTGACCTGCGGGTCGTGCAGGGGCATGGCTCTCATCCACGCGTATT ++ +CCCFFFFFHHHHHJJJJJJIJJJJJHIJJIJJIIJJJJHJJJJJJJJJIJCEHHHHFFFFFFEDDD@BDDDDDDDDDDDDDDDDDDDDEDDCDDDDBDDD +@DRR015910.909 HWI-ST1182:184:D1KRDACXX:3:1101:7850:2973/2 +CTTATAGAGATATCTCAAAACTAAAATTTGGCTCCTCTGACTGGACTCGAACCAGTGACATACGGATTAACAGTCCGCCGTTCTACCGACTGAACTACAG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJIJJJGIJJJJJJJJJDHIJJJJJJJJJJJJJJIJHHHHHHFFFDDDDDDEDDDDDDDDDDDDDDD +@DRR015910.910 HWI-ST1182:184:D1KRDACXX:3:1101:8106:2766/2 +GTCTTATTCCTGAAGCGGATGAACGGGCGAAAATTAATCAGATTATTTTTGAAGAACTGTGTCTGGGGCAATTTACCGAAGCGTCACGCGCTTATTATGC ++ +CCCFFFFFHHHHHJJJJJIGJJJJJJJJJJJJIJJJJJJJJIJJEIJHHHHFFCEFEEEEEEEDDDDDDDDDDDDEDDDDDDDBDBDDDDDDDDDEEEDD +@DRR015910.911 HWI-ST1182:184:D1KRDACXX:3:1101:8192:2816/2 +GTCTTAGGGCCGGAGAAACGCAGACGGCGTACCACACAGGAAAAGATCGCAATTGTTCAGCAGAGCTTTGAACCGGGGATGACGGTCTCCCTCGTTGCCC ++ +C@CFFFFFHHHHHJJJJJJJJJJIJJJJJIJJJIJHHHHFFFFEEDEEDD@BBDDDDDEDDDDDDDDDDDDDDDDDDDBDDDDDDBDDDDDDDDDDDDDD +@DRR015910.912 HWI-ST1182:184:D1KRDACXX:3:1101:8045:2924/2 +GAACGACCAGCTACAAAGCTGGCATGGCACGCCGTATCGTTATGGTGGCATGACGCGGCGCGGTGTGGACTGCTGTCTCTTATACACATCTGACGCTGCC ++ +CCCFFFFFHHHHGJJJJJJJJJJJJJJIIIIJJJHIIJJJJEGGJ@EHGIEHFHHFDDDDDDD7BBDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDD +@DRR015910.913 HWI-ST1182:184:D1KRDACXX:3:1101:8269:2779/2 +GCAGTGTGTCCACCAGTTTGCTGTAGCTGCGGTTGGGGTCATTACGCATCAGATACGCCGCTTCCGCAAAAATGGTACGTCCTGAACCCTGCCAGAACGG ++ +CCCFFFFFHHHHHJJJIJJJJJJJJJJJJJJIIJJJJJ@GHJJJJJJJJJFHIIIJHHHFDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.914 HWI-ST1182:184:D1KRDACXX:3:1101:8336:2819/2 +CCATCACCAGGAAAACGAAGCCGTTTTTGGTGATTTGGTAGGCGTTATAAGAATTGCCGCGGTGTTCGAATTTAACCCGCGAAAAGTTGCTGGTTAAAAA ++ +CCCFFFFFHHHFHJJJIIIIJJJGIJJJJJIHEGGIII@FCHIIIIIIIIGGGEFFHHFFDD?@@DDDDDDDDDEDDDDDDDDDDDCCDDDCDCDCDCC@ +@DRR015910.915 HWI-ST1182:184:D1KRDACXX:3:1101:8361:2931/2 +CTGGCGCTCGGCGTATGCTTTATTCTCCCCGTACACGCCTCGTCACCTAAACCTGGCGATTTTGCTAATACTCAGGCACGACATATTGCTACTTTCTTTC ++ +CCCFFFFFHHHGHGIJJJJJJIJJGIHJJJJHJIGIIJJIJJIHGFHFFF@CECABDDDDDDDDCDECDDDDDDDDDDDDDDDDDEEEDDEDDDEDDDDD +@DRR015910.916 HWI-ST1182:184:D1KRDACXX:3:1101:8402:2932/2 +TATAATAAGAGCGGAAATGCAGACAAGAACTTCGAAAGAAGTCATACTTCTTCTGTAAACCCTGATAATCTGCTAGAATCTGATAATAGAAATGGTCAAA ++ +1+:=AABD??C3@E)@CBEF@>A9?BC;DD<<@@DDDDD;D*899==BB4/=)8=C:7)77@AC;??D;;@AAA>A<@A3.>;A>>AD>5>A5>>AAA>A +@DRR015910.917 HWI-ST1182:184:D1KRDACXX:3:1101:8291:2974/2 +TCCTTGAAGTATTTAGGGTTGGGGCCGGCGTGTACTGTATGCACAGGAACAACAAATCGCATACCATCGGCTGACGCGACCTCACCACCACCCCAGAGAT ++ +@CCFFFDDHDHFHJIJJJFHIJJIJIIIJIEGFHGFGFFHIIIIIGHCHGBBDDDEEEDDDDDDCDDDDDDDD?< +@DRR015910.918 HWI-ST1182:184:D1KRDACXX:3:1101:8997:2885/2 +CAGAAAACCCATCATGTCAAAGCGCATTCCTTCTGCAGTTAACCAGCGCAATCCTCGCCAGTGAACCCGGACGATATAATCAGCTTCTCCAAAAGCAAGT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJIIJJJJJHHHFFFFEEDDDDDDDDDDDEEEDDDDDDDDDDDDDDDDDDDC +@DRR015910.919 HWI-ST1182:184:D1KRDACXX:3:1101:8760:2911/2 +ATTTATTACTATTGGTTCACTCTGTGGTAGCCATGATTCAGCCATTTTTAGAAAATCATTTTTACTTTTTTCATTTTTAAAAACATAATCATATAACATC ++ +BBCFFFFFHHHHHJJIJJJJJJJJJJJHJJJJJJJJJJJJJJJIJJJJJJHJJJJJJJJJJJJJJJJJJJJJJJJJHHHHHHFFFFEEEEEEEFEEDDDD +@DRR015910.920 HWI-ST1182:184:D1KRDACXX:3:1101:8968:2952/2 +TCTGATAACTGGATGAACCATCGTGTGAATTAAGCAGGATAATTTCAGGAACTTCCTGCCCGTTAATATGCCCTTCCCTGCGAAGACGTAACATATGTTT ++ +CCCFFFFFHHHHGJJJJJIJJJJGJIIJJJJJJJJJIJIIJIJJJJJJJJHIJJJJJJJJJJHIJJJJJJHGHHHFFFFFDDDDDDDDBBBDDDDEEDEE +@DRR015910.921 HWI-ST1182:184:D1KRDACXX:3:1101:9221:2876/2 +GAGATGGCGCGTAACCAGATCTTCCTGATAAATGAACGCCAGCTCTCCGTCAATCAACAAAACTGGCTTCGTCATTATTTTAAGCAGTATCTGCGTCAGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJIJIJIJJIJJJIJJJJJEGHHHHHFFFFDEEEEDDDDDDDDDEEEEEEEDDDDDDDEEEEDDDDDDD +@DRR015910.922 HWI-ST1182:184:D1KRDACXX:3:1101:9161:2943/2 +ACTGAGGTCACCACCACAGGCCGGACAGCATTCCTCTTCCGGCCGGATGACCCGGGTTTCACGGGGAAGTGAGGTCGGTAACGGTTTACGGGCTGAAGAC ++ +CCCFFFFAHHHHHJJJIJJJJJJJJJJIJIJJIJIIJJJJJJJJJHHEFFCCEDDD?@DDEDDDDD@BBCCDDDACDD>ADDDD<@BCDD@>BBBDDDDD +@DRR015910.923 HWI-ST1182:184:D1KRDACXX:3:1101:9041:2992/2 +ATAATATCCTTTCCCCTTTACCGCTTTGCCACCCAACGCCACTCTCGCCCCTTCTTCTACTGCGCGCGCCACTTTTTGCTCAACCCTTTCCAGCGCCGCG ++ +8?;:BD>D?FHDBBBAG+A4?FC6CGG+1?E*))1?B))0)09)98@7;4;(.=;AA)=C73.'3>B:69B;>>C>C<@(+::9+)((::@@:9<9.9.9 +@DRR015910.924 HWI-ST1182:184:D1KRDACXX:3:1101:9312:2799/2 +CTATTGGCGTTGACGATGTAATATTTAACGGTAATACATATGGCCTTCGTTCACGTTTCTCTGTCGGTAGTAATGGGCTGGGACGCAGCGGAATGATCGC ++ +C@@DFDFDFFHDAGHEFECFHBEFHH@FBDH8?FBBAD??<@FEHEHADCB=BAEFGIDHGGEHEEH9?D>BDACCEBCBBC?<@BB@BBCBDDEDD +@DRR015910.931 HWI-ST1182:184:D1KRDACXX:3:1101:10137:2930/2 +ATCATTGATATGGCCATGAATGGCGTTGGATGCCGGGCAACTGCCCGCATTATGGGCGTTGGCCTCAACACGATTTTACGTTACTTAAAAAACTCAGGCC ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJIIJJJJJJJJJJJIJJJJJJBHHGHHFFDDDDDDDDDDDDDDDDDDDEDDDDDDDDEDDDDDDDDDDDDD +@DRR015910.932 HWI-ST1182:184:D1KRDACXX:3:1101:10382:2793/2 +GAGAGCTCAGATCAACTTTCCAGGGCAACAGATCGCGTACCCGGTTTGCCGGCCAGTCCTGGATATGTTCAATGACGTAACGCAGCCACTTTTCTGGCTC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJHHIJIJJJFJJJJJIJJJJJIHFFDDEEEDDDDDEDDFEEEEEDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.933 HWI-ST1182:184:D1KRDACXX:3:1101:10343:2835/2 +GGTTTATCCCCCCTGGCGCGGGGGTAAACCGAAAAGCAATAGTCCATAGATTTTCGAAAAAAGGGGTTCCCCGCGCCCGCGGGGGTAAAACGGAGCCCGA ++ +;;(=@4;)4?@(<((8(1-5;=?/,7;=(8',1&6((+8(3((+62/8(6+8:(()(27:(0&2(005(+:;-8008&&))05:&&)8;(+&+()&+()0 +@DRR015910.934 HWI-ST1182:184:D1KRDACXX:3:1101:10252:2883/2 +GTGATGACCAGCGTCGTATTGAAAAGCTGGGACAGGACAATGCAGCCCTGGCAGAGCAGGTGAAAGCCCTGGGTGCAAATCCTGTCACCGCGACCGGTGA ++ +CBCFFEDFGHHHHIIIHHJJJJJJJIIJGJJJIGJIJIIIJJJJJJIJJJGGIJIHHGHHBFEFFBEEDEDDD5;@DDDDDDDDCDDDDDBDDDDDDC<7&5->>@ADCCA@7@@B5?<@ADC@BDB>C>CD@@C>@C4@CCCDD +@DRR015910.942 HWI-ST1182:184:D1KRDACXX:3:1101:10532:2983/2 +ACCTGGACCAATGTCCAGCGCAACATCCATGGGGCTTACAGCGTGATCGTAATGGCGTTGGCTGCCATCAGGAAGAGTTATAACAGGCATTTTATATCCT ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJIJIJJJJJJJJIJFGHIJJIEHJHHHFFFDDEEDDDDDDDDDDDDDDCDDEEEDDDDDDDDDEEDEEEEE +@DRR015910.943 HWI-ST1182:184:D1KRDACXX:3:1101:10874:2848/2 +CCGGTAAAGTCCATGCGGATGATATCCCCGTTCCGGTCCAGGAGCCGGGCAGTGGTAAAACAAGAACTGCCCGGCTGTGGGTCTATGTCCGTGATGACCG ++ +@@CFBDFFHHHHGIGEIIGGIIIIIJIIJJJJJIJJJJIJIJAGEIIHHHEEEFEECEEEDDDDDDDDDDDDDDDDDDDDDBCDDEEEEEDDDDDCDDDD +@DRR015910.944 HWI-ST1182:184:D1KRDACXX:3:1101:11148:2792/2 +GTCCACGTATTGTTCATTCGTCAGGGCAAAGTGCTCGGCAGCCGCAGCTATTTCCCGAAAGAGCCTGGCGGTACGGAACTGCGCGAGGGGGCGGAAACCT ++ +;:=B?;=2=CDDE>@(6@=5;>?::)55>9??>>>(59509;&59&0;3>99>3 +@DRR015910.945 HWI-ST1182:184:D1KRDACXX:3:1101:11226:2819/2 +GAGCCGCTGTATGACGTGGTGCGCCAGGATGTAATGGTGGCCCGGAAAAGTCCTGGGGGGGGTATTCCCCGTTCCCGGCCCCGGGCCCGGGGGTGTTGTG ++ +<<<88:>8-(.2)((1(((()).).0))).(0<(53'-:))).)).),33&&&&)((43:2&&+8((&&&&&&&)&)&&)&)&&&))(((( +@DRR015910.946 HWI-ST1182:184:D1KRDACXX:3:1101:11007:2869/2 +CGCCAGTGTCTGCGCATCCACGCCGGCGCTGCGCATCTCCCCGACCGCGCGGTGCGTGGGACCCAGCCCAACGACACGGGGACGCTCACTCGCCGGCAGC ++ +CCCFFFFFHHHHHJJIJJJJJJJJJJJJJJJJJGHFFFFFEDDDDDDDDDBD@BDDDDDDDDDDDDDDDDDDDDDDDDDDD@DDDDDDDDDDDDDDDDDB +@DRR015910.947 HWI-ST1182:184:D1KRDACXX:3:1101:11172:2896/2 +GAAGCTCCCGTTGCAAAAGCAGAAGCTAAACCTGAAACACCTGCGCAACCGGTGGTCGATGAACAAGCGGTTTTCGACGAAAAAATGGATGTCTATATCA ++ +CCCFFFFFHHGHHJJJJGIJIIJIJJJJJJJJJJJJJIJJIJJIIJIJJJHJHHHFFFDDECDDDDDDDD;BDDDDDDDDDDDDDDDCDDDDDEEEEEEE +@DRR015910.948 HWI-ST1182:184:D1KRDACXX:3:1101:11071:2917/2 +GTTCGATATGCTGCTGACCTGGTGTGAAGGTTTCGCCGACGCCACGCCGGAAAACCTGCGCGCAGTGATGCTTTCCGGCGACTGGATCGGGCTTGACCTC ++ +C@CFFDFFHGHHHJJJJJJJJIIIHHHHIIFHIGIJJJJJJJJJJIJHFDABDDDDDDDDDDDDDBDCEDDDEDDDBDDDDDDDDDDDDDDBDDDBCDCC +@DRR015910.949 HWI-ST1182:184:D1KRDACXX:3:1101:11243:2990/2 +TTACCATCCAGAACTGAAAGAGAAAATACCATTCCTTGTTGGTATAATTTGTGGAGGACTCAAAAGTCGATATTACACTGATTATTTATCACAGTCTGCT ++ +@@@FFFFEFDHGFJJJIJIJJJIIJJJJJIIIIJIJJIGIHIBFGIIGIIGGHIIJJHIJJIJIJJHIJIJHGFGHFFFFFEEDEEEEEDED@CCDDDDD +@DRR015910.950 HWI-ST1182:184:D1KRDACXX:3:1101:11265:2992/2 +GTGTATGGATGTGCAGGTGCCGTCAGCACCTGCTGCGCGTCGCCCAGTTCTACAATCTGCCCGAGATACATCACCGCCACCCGATCGCTCATATGACGTA ++ +@@CDFFFFGHHFHJIJJEHIJIGJJJJJJJJJIIGIIIIIJJJJJJGHHE=ADFFFFFEEEDCDDDDDDDEDCDDDDDDDDDDDDDDDDDDCCDDDDDBD +@DRR015910.951 HWI-ST1182:184:D1KRDACXX:3:1101:11607:2893/2 +GTTCGCGTATCTGGCTGGTTGCCGGTATCACCGACATGCGAAATGGTTTTAACGGCCTGGCATCAAAAGTTCAGAACGTCCTGAAGGATGACCCGTTCTC ++ +CBCFFFFFGHHHHJJJJJGHIJJJJFHIIJJJJJJJJJFIIJHGGH?DEFFFEDDDDDDDDCDDDDDDDCDDEDDCDDDDDBDDDDDBCCDDDDDDDDDD +@DRR015910.952 HWI-ST1182:184:D1KRDACXX:3:1101:11631:2905/2 +GAAATCCGCAATGAAGCAGGTATGCCGGTCGCGGAACGTGTGGTAGGCCATATTTGCATCTCCGGTCCCAGTCTGATGAGCGGTTACTTTGGCGACCAGG ++ +??;D;BDAD:DD?B?4A+;;88-2>>:>>AAEADAA;0&)5>AAE>>>??>>3>< +@DRR015910.953 HWI-ST1182:184:D1KRDACXX:3:1101:11502:2961/2 +GTATGCGGACGTTAAAAAGCGTATTGGTGAGATTTATCATGAGAATAGAGGCCGATACGGATACCGTAGGGTAACGCTGTCTCTTCATCGAGAAGGGAAA ++ +C@CFFFFFHHHHHIJJIHIJJHGIJJJ?FGIGGIJIIJJJICHGEIGIIIFHIJGGFDDDDDDDDD@DBDD?CCDDBDDBDDDDDDEEDDDBDDCDDBBD +@DRR015910.954 HWI-ST1182:184:D1KRDACXX:3:1101:11810:2815/2 +GACGCCCTTAATCTGTGTGCTCAGGGTACCGGTAATCCCTGTGTCCCTGTCTCTTATACACATCTGACGCTGCCGACGAAGAGGATAGTGTAGATCTCGG ++ +CCCFFFFFHHHHGJJIJJJJJJJJJJHHIJJJFHHIJJJJJIJJJJJJJJHHJJJJJJJJJJJJJJJJHHHFFFDDDDDDDDDDBDDDCDCCDDEDEDDD +@DRR015910.955 HWI-ST1182:184:D1KRDACXX:3:1101:11771:2930/2 +GCTTCCACCCGATGAATATTCTGATGGCGTGATACCAAACCATGACATCAGTTGTCGTGGATGTTCAAAACGGGTCAGATCACCCAGTTCAGAAATTAAT ++ +CCCFFFFFGHHHHJJJJIIJGHGIIIJIICGHHIIIIJJJIJIJJJJJIIFHGIIIJIJJIHHEHHHFFFFECDBDDDDDDDDDDDDDDCEDDDDDDDDE +@DRR015910.956 HWI-ST1182:184:D1KRDACXX:3:1101:12367:2914/2 +CATGTATATCATTTGGGGTTGCGATGACGACGAACACGCATTTTAGAGGTGAAGAATTGAAGAAGGTTTGGCTTAACCGTTATCCCGCGGACGTTCCGAC ++ +BBCFFFFFHHHHHJJJJJGIJIJJIJIJJJJJJJJJJIJJIJJJGHFHH=;@DFFEEEDEEDDDDDACDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.957 HWI-ST1182:184:D1KRDACXX:3:1101:12332:2971/2 +GGATCTTATCGATGGAGGGATCATAGTAACTTTTAACAAATTCCCCTGAACGGTCATAAATCACCACCATATCACCACGCTGACGGGCGTAGTTGGCCAG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJGIJJJJJJJJJJJJJJJJJJJJJJHIIHIJJJJIJJJJJJHHHHHFFFFFFDDDDDDDDDDDDDDDDEDDDDDD +@DRR015910.958 HWI-ST1182:184:D1KRDACXX:3:1101:12604:2892/2 +ACTTGGGTCTGAGCGCACCGGGCGACCGTACTGCTGCTAAGATCGAGAAACTGCTGGCATGGCTGGAAACGCTGAAAGCTGAACTGGGTATTCCGAAATC ++ +CCCFFFFDHHHHHJJJJJJJJJJJJJJJIIJJHHHHHHFFFFFFDDDDDDDDDDDDDDDDDDDDDDBDDCDDDDDDDDCDDDDDDDDD?CDEDEDDDDDD +@DRR015910.959 HWI-ST1182:184:D1KRDACXX:3:1101:12688:2901/2 +CCAATAAACGGCCCGAAGAAAGCGTATTGCAGAATCTGAACATCCGGGAACTGTGTTTTTGACAGCATCGCAAAGCCTGCGGAGAAGCCGATAAAGGAGC ++ +B;@DFFFFHHHHHJJJJJJJJJJJHIJIJJJJJIIIJJJJIIFIJFIJHHEFEBDFFEEDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@BDDDCDDB +@DRR015910.960 HWI-ST1182:184:D1KRDACXX:3:1101:12547:2972/2 +CAATACCGCATTGATTCTCAGCGCGGTGGCTATCGCTATTGCTCTGGCGGCGGGCGTCGGTTTGTATGGCTGGGGTAAACAACAGGCCGTCAATCAGACC ++ +CCCFFFFFHHHHHJJJJJJJJIJJJJFHIJIIIJJIJJJJJJIHJJJJJFDDDD8@:BDDBDEDDCC:A +@DRR015910.961 HWI-ST1182:184:D1KRDACXX:3:1101:12726:2987/2 +TACATACTGAGAACCTTTATCACTGTGATGGACCGTGCCGGACGGTCGACGGGCCCATAACGCCTGCTCCAGTGCATCCAGCACGAATGTCGTTTCCATG ++ +CCCFFFFFHHHHHJJJJJIJJJJJJJJJJJJJJJJHJJJJJGGJIHIIHHFDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDEDDDDDDEED +@DRR015910.962 HWI-ST1182:184:D1KRDACXX:3:1101:12766:2830/2 +ATATCGATGAGCAAATTTACGCGCGCCTGCGCAATAATAGTCGGGAAAAATTAGTCGGCGTAAGAAAGACACCGCGTATTCCTGCCGTTCCGCTCACGGA ++ +CCCFFFFFHHHHHJJJJJJJJJJJJIJJIJJJJIIJJJJJIIJHHFFFEEEEEDDDDDDDBDDDDDDDDD?CBDDDBBDDEEDDDDDDBDCDDDDBDDDD +@DRR015910.963 HWI-ST1182:184:D1KRDACXX:3:1101:13000:2833/2 +CGCCTTTACGCGGTACGATCACCGAATGGCTTGGCAAAGATTGACCAATTGGCATTGAACAGACCGCCAGACGGTGGCCGTCGGTTGCCACGGTGCGCAG ++ +CCCFFFFFHHHHHHIJJJJJJJJJJJJIJJJJIJIJJJIGGICGIJIJGHEHEHFFEFFFDEEEDDDDDDDDDD@DDDDDDDDD>BDDDDDDD?BDDDDD +@DRR015910.964 HWI-ST1182:184:D1KRDACXX:3:1101:12954:2902/2 +ACGCAGCAACGTAAACATCGGCGTTTGCCGGACCGGTAGATCATTCACTTCTGTTAGCGTAAAGCGCAGCCGTGGTTCGCGACGCAGTGCGGTAGTCAGC ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJEHFFFFFFFDEEDECEDDDDDDDDDDDDCDDDDDDDDDDBDDDDDDDDDDDBDDDDBDDDEEDD +@DRR015910.965 HWI-ST1182:184:D1KRDACXX:3:1101:12919:2952/2 +GCCCCTATGCCACTGACAGATGTCGCGCTGAAGAACCGGCGCTGAATATGCTCGCTGACGGGCGTCAGTCCAAATGCCATTACCCACTTGATGATGCCGG ++ +?@BFFFFFHHHHHJIJJJJJJJGIJJJIJFIJGIGIJJJGIIGGFFFFFECDEDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDCDDDEEDDDDD +@DRR015910.966 HWI-ST1182:184:D1KRDACXX:3:1101:13166:2847/2 +GATTACTATCGCGCCGCTAAGCTGGAAAAACAGTCAGGGTGAAAGTGCGCTGAATCTGTCGCTGTTCCTGAAAGATCCGGCAACGACTAAAGAAGCGCCG ++ +CCCFFFFFHHHHHJJJJJJJJJIJJJJJJJJJJIJJJJJBFHIJJHHIJJHHEFFFFFEEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.967 HWI-ST1182:184:D1KRDACXX:3:1101:13176:2890/2 +GGTTCTACCAACATTAAACTTGCCTGGTTGGAGGATGGTGACGTGAAAACGTTAATCAGCCCTAACAGCTTTAAACCGGAATGGTCTCTGTCTCTTATAC ++ +@@@DFFFFHHGHHGHIIJJJJJJJJJJGHIIEIJEHIJDHEHIEGGIJJJFBFHGIJJIJJJIFHHHHFFFFFFDEEDDDDDDDCCDDDDCDDDDDDDDD +@DRR015910.968 HWI-ST1182:184:D1KRDACXX:3:1101:13339:2752/2 +GTATATACGTTCATGTTCTTATTGAAGTAATACCAGGTACCGATTTCAATGTAGTTCAGACGATCAGAATCTTTGTAACCTGCTACGTCCAGTGCTTTAG ++ +CCCFFFFFHHHHHJJJIIJJIJJJJJJJIJIJJJJJJEEHJJHIJJJIIJGIJIJJHIIIJIIJJJJJJIJHHHFHGFFFFFFEEEDEDDDDCCDEDDCD +@DRR015910.969 HWI-ST1182:184:D1KRDACXX:3:1101:13326:2796/2 +GATCACATCGGCACATTGCTGCTTGCGGCTTCCTGGCTGGAAGATCAGTCAACGGAAGATGAGAGCGAAGCACTGGAAACACTGTTCAGTGAGTATCTGT ++ +CCCFFFFFHHHHHJIJJJJJJJJJJJJJJJJIJIIJIIJJGIGCGGGH@DDDHHHFFFFFDEECCCDDDDBDDDDDDDDCCBDDDDDEDEDDD@CDEEEE +@DRR015910.970 HWI-ST1182:184:D1KRDACXX:3:1101:13301:2825/2 +CCATCAGGGTGACGGGGATTAAGCCCACTTTGTGAGCATCAGCATCCGAAGACATAATTAAACTCCTGCGAAGGCGAGCTTCGTGACAATAAATTACGTC ++ +CCCFFFFFHCFFHIJJJIJJJJJIJJHIJJJJGIJJJJJJJJJJIJJJIIGGIJJHHHHHHHFFFFFFEDDDDDBDDDDDDDDDDDDDDDDDDEEDDDBD +@DRR015910.971 HWI-ST1182:184:D1KRDACXX:3:1101:13719:2782/2 +GACCCGTATGAAGCGCCATAAGTTCATTCATGCGCCCTTTAACTTTCAGAATTTCACGGGCATGAATTTCGATATCGGTCGCCTGGCCCTGGTAGCCGCC ++ +CCCFFFFFGHHDHJJJJIJJJJHIJJJIJJJJJJJJJJJJJJJJJJIIJJGGIJJJJJJHHFFFFFEEEEEDFDDDDDDBDDDDDDDDDDDDCDDDDDDD +@DRR015910.972 HWI-ST1182:184:D1KRDACXX:3:1101:13723:2836/2 +CCCTGTTGCCGAAAGGCATTAAAAGCGTGACTGGCAATTTCTCGCGTGGTGAAGTCATCCGCATTTGCAACCTCGAAGGCCGCGATATCGCCCACGGCGT ++ +CCCFFFFFHHHHHJIJJJIJJJJJJJJGHIJJJJJJIIJJIIJIGIFHICDEHHEHHHFFFFDDDDEDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDB +@DRR015910.973 HWI-ST1182:184:D1KRDACXX:3:1101:13719:2903/2 +GGTAATTCGTTTTCAGGGCAAATCGCGAAAGTTCGCGTTCAGGTGGATCGATAGCCATGGCCATCGTGGGTAAAAATAGTGAAATTAACAGGTATAGCGG ++ +?@=DDDFDHHFHHGEGEIDEIIHHIGEGIJG?GGGFIGGCCGG.=;==?BABDBBCEDDEECCDAB:@@<@A@CEDCCCDDCD><@>ADC:9@ +@DRR015910.974 HWI-ST1182:184:D1KRDACXX:3:1101:13639:2913/2 +CACTAGCTTAAAAAAACTCGGCGCATATCGCTAGTCCGGATGAAAAATCCCGATCACTTGCTCATCTTTGCGAACGTGATCGCGGGCTTCTTTGTCTGCT ++ +?@?DDFBBHFDFHIHII@BBEEDABGA>GIGIGH@CFGIGBHHFGFFDB@@BA?BBDCCDDD::>:>>@CCB>D>B8ABDA?75@B@@BCACCCCCCDDD +@DRR015910.975 HWI-ST1182:184:D1KRDACXX:3:1101:13726:2948/2 +GTATTACCTCCGCTTTGTAAAGACCATTGATGCTCTCCGCCATCGCGTTGTCATACGAGTCGCCTGTACTTCCTGTTGATGCCAGTAATCCGGCTTCCTT ++ +CBCFFFFFHHHHHJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJHJJIHJJJJJJHHHFFFDDEEEFEDDDDDDDDDDDDDDDDDEEDDDDDDDDDD +@DRR015910.976 HWI-ST1182:184:D1KRDACXX:3:1101:13540:2988/2 +GCATCGGGAAGCGATATTTCAGGTTGATGCCGTACATTGCAGGCTCAGTGACCCCAAGCCAGGCGGAGATAGCGGCAGGCACGGAGATCTCGCGTTCATT ++ +C@@FFFFFHFHHHJIIJIJJJJJFIIJICHIJDGIJIJIJJIIJGIIJHIHIIJJJHHHHFFFFDD@BDCDDCDDBDBD5AA>BB>->AAABDD0EEBEFEDF@DED@@?>?=?AAAA5>A>>AA=>?>5> +@DRR015910.982 HWI-ST1182:184:D1KRDACXX:3:1101:13824:2911/2 +GGGTAAAGCAGCGTTCTCCCAGTGTATCAAGCAACGGCAGCGGTCGAGCTGCCGCGCCGGTTGCTATAAAAAGCTGATCCCAATGCCAGCTTTCGCCGTT ++ +BB@BDFFFHHHHHJJJJJJJJJHIIIGIJJJIJJJJIFGGEHF@FHBDDDDCDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.987 HWI-ST1182:184:D1KRDACXX:3:1101:14064:2865/2 +CACTACCATTATCGTAACTAAAGAAAGCCTCTCTGGGCTTGATTATCTGGCTTACAGTTATGGGTTCGTATGTGCTGCTTTATATAATTCGTTTATTGCC ++ +CCCFFFFFHHHHHJJJJJJJJJJJIJJIJIJJJJJJJJJJJJJJIJJJJJGIJJJJJGHJJJJJGHJJHHHHHFFFFFFEEEEEFEEFEEDDDDDDDDDD +@DRR015910.988 HWI-ST1182:184:D1KRDACXX:3:1101:14104:2970/2 +GGTTACCGGGCGTTGTACGAATCCGGCAGAATAACGGAAGCCGCGTGTATGGCTCATGCCCGGAGAAAAATCCACGATGTGCATGCAAGAGTGCCCACCG ++ +B@?DFFFFHHHHHIJHJJJJJJJJJJJJJHIIIIJJJJJHHHBDDBDDDECDDDDDDACCDDDBDDDDDD?CDDDBDDDDDDEEDDDDDD@>CCCDCDDD +@DRR015910.989 HWI-ST1182:184:D1KRDACXX:3:1101:14498:2799/2 +ACCCAGACGAGGCGCAAGTTTGCAGAGCTGGGCTGCCAGCTTCTTCTCACCCAGCGAAGCGAGTTTTTCTGGTGAGGGATATCGCTGGAGAAGATCGAGT ++ +C@CFFFFFHGHGGJIJJJIJIJJIJIIIIJJJJIJJIJIJIJIJJIIGFHEABEFDDCDDDBD8?CDDDDDD@CCBDDDDDCDDDDDBABCBDDDDDDD@ +@DRR015910.990 HWI-ST1182:184:D1KRDACXX:3:1101:14379:2925/2 +CAACAACGTCACGATTAATAAGAACTGTCGGGTTCTGGGAAAATTGTCCGCGAACCAGATTGAAGGCGATCTCGTTAAAACAGTGGGCAAACCTTTCCCA ++ +CCCFFFFFHHHHHJJJJJJJJJJIJIJJJJJJHIGIIJJJJJJIIIJJIJGHHFFDEDDDDDDDDDDDDDDDDDDDDDDDCDDACDBDDDDDDDDDDDDD +@DRR015910.991 HWI-ST1182:184:D1KRDACXX:3:1101:14264:2967/2 +GTGTTTATCGTCCCCGTTGCCGACAAGGAGTTTGGTCATCGACCGGTGGCGGTGATGGAGTATGACCACGAGAGCGTTGATCTTAGTGAATGGGTGAAAG ++ +B@BDFFFFGHHHHJJJJJJJJIIJGJJJGIHHIJJAHGIJIGIJJHEHFFCB;BBDDDDDCCDEDDDDDDDDDDDDDDDDDDEDEDDDEEDCDDCBDDDD +@DRR015910.992 HWI-ST1182:184:D1KRDACXX:3:1101:14425:2974/2 +CTTACAATCATTACAAGGCTACGATCCCAGCGAATTTACATTCGCTAACGGTGTATTTTGCGATGTTAAAGAAAAATTATGTCGTGATGATCGTTATTTT ++ +CCCFFFFFGHGHHJJJJJJJJJJJIJJJJJFIJIIIJJJIIJIIJJIJJJFFHHIIIJHHHHFFFEEFEEEEDDDDDDDEDEEBDDDCDDEDDCDDDDEE +@DRR015910.993 HWI-ST1182:184:D1KRDACXX:3:1101:14581:2870/2 +CGTATGCGCAGTACTGTGAACCTCGATCAGAGTGGTGGATTAGCCCGGCAGGTGGGCGCTGGCTCCTGAGCGCCATAAACAGGGCTTTACCTGTCAGCTC ++ +@@@;DDDDHFHHHJIJIJJFIIIJJEHIGICG?FHBDCDDCACCC>BDBBDCDACCB@???A>CDD<>AACD:: +@DRR015910.994 HWI-ST1182:184:D1KRDACXX:3:1101:14752:2761/2 +GCTTATAAGTATCGAAAGCATCAAGCGTTGTGTCGCGGCGAATATCGGGGTCAGCTACCTACCGCGCTTTGCGGTGGCAAAAGAGTTGGAGTGCGGAGAA ++ +CCCFFFFFHHHHHJJJJJJIJJJJJJJIJJJJJJJJJJJJHFFFEEDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDCDDDCD>ACDDDDDD +@DRR015910.995 HWI-ST1182:184:D1KRDACXX:3:1101:14922:2941/2 +CTATGACAGCACTCACTTTCTTTATATCAACGGGTCAATGTGACTGCGATGAAATAGCAGAATCAAACTTTAATTATATGATTGCCTATATGTCTAACAT ++ +CCBFFFFFHHHHHJJJJJJJJJJJJIJIJJJIJJHGHIJIHIIJJJJJIJHIJJJJJJJJJJJJJJJHHHHHHHFFFFFFFEFEEEEEDDEFFFEFDDDD +@DRR015910.996 HWI-ST1182:184:D1KRDACXX:3:1101:14931:2959/2 +CTTCATGGCAGGTTTCACGCATTACGGTGGCGCGCGGGTCGTAATTTTTGTACACGCGGTGACCGAAGCCCATCAGGCGGAAAGAATCATTTTTATCTTT ++ +@@@DFDFFHFDACEEG@GGFHIIIG?E9CGGEE@@:FH8A?B5@5B@DDDDACC:A?>B5>BDCBCCCADDDC83>@CD +@DRR015910.997 HWI-ST1182:184:D1KRDACXX:3:1101:14825:2963/2 +ATTTAAATCGCATGTGGCGAAGGGATTTAACAAGGATGCCGTAGCAAGAGCCCTTCACGAAGCCGGAATGCTGAAAAAGCCAGCCAGCGGGGAAGGATGG ++ +CCCFFFFFHHHHHJIJJJJIIJJJGIIJJJJJJJJJJJJJJJJJIIJIJJIHIJHHHHHFFDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +@DRR015910.998 HWI-ST1182:184:D1KRDACXX:3:1101:14896:2993/2 +ATTGATACCATACTTTTCACCAATAACTCCCAGTGATGGTTCCCGTGAAATACTGGAGCAGGCACCAACGGCCTCTCTGCGCATTCCCAATAAAATAGCG ++ +CCCFFFFFHHHHHJJJJJJJJJJJJJJIJJJJJHIJJJJIJJJJJJJJJJHIJJJJJJJJJJJJJJJJHHHFDDEEEDDDDDDDDDFDDCDDDDDEDCDD +@DRR015910.999 HWI-ST1182:184:D1KRDACXX:3:1101:15223:2789/2 +ATGCTGGGTAAAGACGGCAAACCGTTCAAAACCCGCGCGGGTGGTACAGTGAAACTGGCCGATCTGCTGGATGAAGCCCTGGAACGTGCACGCCGTCTGG ++ +CCCFFFFFFHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJF9?D=CDDED>CDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@BBDD +@DRR015910.1000 HWI-ST1182:184:D1KRDACXX:3:1101:15012:2865/2 +CTGCATGATGAAGTAAAAAACTTTCCGTTACAGCACTGGCTGCGCAGTACGATTATCGCTGCGGGCTCGCTGCTGGTGCTGTTTATGCTGTTATTCTGGA ++ +CCCFFFFFHHHHHIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJHIJJJJHHHHFFDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDEDEEDDD diff --git a/tests/gtest.mk b/tests/gtest.mk new file mode 100644 index 00000000..ac8583d4 --- /dev/null +++ b/tests/gtest.mk @@ -0,0 +1,17 @@ +############################## +# Gtest build. +############################## +# Build rules for libraries. +check_LTLIBRARIES = libgtest.la libgtest_main.la + +libgtest_la_SOURCES = gtest/src/gtest-all.cc +libgtest_main_la_SOURCES = gtest/src/gtest_main.cc +libgtest_main_la_LIBADD = libgtest.la +libgtest_la_CXXFLAGS = -I$(srcdir) +libgtest_main_la_CXXFLAGS = -I$(srcdir) + +GTEST_SRC = gtest/src/gtest-all.cc \ + gtest/src/gtest_main.cc \ + gtest/gtest.h + + diff --git a/tests/gtest/gtest.h b/tests/gtest/gtest.h new file mode 100644 index 00000000..d1dcf268 --- /dev/null +++ b/tests/gtest/gtest.h @@ -0,0 +1,20061 @@ +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) +// +// The Google C++ Testing Framework (Google Test) +// +// This header file defines the public API for Google Test. It should be +// included by any test program that uses Google Test. +// +// IMPORTANT NOTE: Due to limitation of the C++ language, we have to +// leave some internal implementation details in this header file. +// They are clearly marked by comments like this: +// +// // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +// +// Such code is NOT meant to be used by a user directly, and is subject +// to CHANGE WITHOUT NOTICE. Therefore DO NOT DEPEND ON IT in a user +// program! +// +// Acknowledgment: Google Test borrowed the idea of automatic test +// registration from Barthelemy Dagenais' (barthelemy@prologique.com) +// easyUnit framework. + +#ifndef GTEST_INCLUDE_GTEST_GTEST_H_ +#define GTEST_INCLUDE_GTEST_GTEST_H_ + +#include +#include +#include + +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: wan@google.com (Zhanyong Wan), eefacm@gmail.com (Sean Mcafee) +// +// The Google C++ Testing Framework (Google Test) +// +// This header file declares functions and macros used internally by +// Google Test. They are subject to change without notice. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ + +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: wan@google.com (Zhanyong Wan) +// +// Low-level types and utilities for porting Google Test to various +// platforms. They are subject to change without notice. DO NOT USE +// THEM IN USER CODE. +// +// This file is fundamental to Google Test. All other Google Test source +// files are expected to #include this. Therefore, it cannot #include +// any other Google Test header. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ + +// The user can define the following macros in the build script to +// control Google Test's behavior. If the user doesn't define a macro +// in this list, Google Test will define it. +// +// GTEST_HAS_CLONE - Define it to 1/0 to indicate that clone(2) +// is/isn't available. +// GTEST_HAS_EXCEPTIONS - Define it to 1/0 to indicate that exceptions +// are enabled. +// GTEST_HAS_GLOBAL_STRING - Define it to 1/0 to indicate that ::string +// is/isn't available (some systems define +// ::string, which is different to std::string). +// GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string +// is/isn't available (some systems define +// ::wstring, which is different to std::wstring). +// GTEST_HAS_POSIX_RE - Define it to 1/0 to indicate that POSIX regular +// expressions are/aren't available. +// GTEST_HAS_PTHREAD - Define it to 1/0 to indicate that +// is/isn't available. +// GTEST_HAS_RTTI - Define it to 1/0 to indicate that RTTI is/isn't +// enabled. +// GTEST_HAS_STD_WSTRING - Define it to 1/0 to indicate that +// std::wstring does/doesn't work (Google Test can +// be used where std::wstring is unavailable). +// GTEST_HAS_TR1_TUPLE - Define it to 1/0 to indicate tr1::tuple +// is/isn't available. +// GTEST_HAS_SEH - Define it to 1/0 to indicate whether the +// compiler supports Microsoft's "Structured +// Exception Handling". +// GTEST_HAS_STREAM_REDIRECTION +// - Define it to 1/0 to indicate whether the +// platform supports I/O stream redirection using +// dup() and dup2(). +// GTEST_USE_OWN_TR1_TUPLE - Define it to 1/0 to indicate whether Google +// Test's own tr1 tuple implementation should be +// used. Unused when the user sets +// GTEST_HAS_TR1_TUPLE to 0. +// GTEST_LANG_CXX11 - Define it to 1/0 to indicate that Google Test +// is building in C++11/C++98 mode. +// GTEST_LINKED_AS_SHARED_LIBRARY +// - Define to 1 when compiling tests that use +// Google Test as a shared library (known as +// DLL on Windows). +// GTEST_CREATE_SHARED_LIBRARY +// - Define to 1 when compiling Google Test itself +// as a shared library. + +// This header defines the following utilities: +// +// Macros indicating the current platform (defined to 1 if compiled on +// the given platform; otherwise undefined): +// GTEST_OS_AIX - IBM AIX +// GTEST_OS_CYGWIN - Cygwin +// GTEST_OS_HPUX - HP-UX +// GTEST_OS_LINUX - Linux +// GTEST_OS_LINUX_ANDROID - Google Android +// GTEST_OS_MAC - Mac OS X +// GTEST_OS_IOS - iOS +// GTEST_OS_IOS_SIMULATOR - iOS simulator +// GTEST_OS_NACL - Google Native Client (NaCl) +// GTEST_OS_OPENBSD - OpenBSD +// GTEST_OS_QNX - QNX +// GTEST_OS_SOLARIS - Sun Solaris +// GTEST_OS_SYMBIAN - Symbian +// GTEST_OS_WINDOWS - Windows (Desktop, MinGW, or Mobile) +// GTEST_OS_WINDOWS_DESKTOP - Windows Desktop +// GTEST_OS_WINDOWS_MINGW - MinGW +// GTEST_OS_WINDOWS_MOBILE - Windows Mobile +// GTEST_OS_ZOS - z/OS +// +// Among the platforms, Cygwin, Linux, Max OS X, and Windows have the +// most stable support. Since core members of the Google Test project +// don't have access to other platforms, support for them may be less +// stable. If you notice any problems on your platform, please notify +// googletestframework@googlegroups.com (patches for fixing them are +// even more welcome!). +// +// Note that it is possible that none of the GTEST_OS_* macros are defined. +// +// Macros indicating available Google Test features (defined to 1 if +// the corresponding feature is supported; otherwise undefined): +// GTEST_HAS_COMBINE - the Combine() function (for value-parameterized +// tests) +// GTEST_HAS_DEATH_TEST - death tests +// GTEST_HAS_PARAM_TEST - value-parameterized tests +// GTEST_HAS_TYPED_TEST - typed tests +// GTEST_HAS_TYPED_TEST_P - type-parameterized tests +// GTEST_USES_POSIX_RE - enhanced POSIX regex is used. Do not confuse with +// GTEST_HAS_POSIX_RE (see above) which users can +// define themselves. +// GTEST_USES_SIMPLE_RE - our own simple regex is used; +// the above two are mutually exclusive. +// GTEST_CAN_COMPARE_NULL - accepts untyped NULL in EXPECT_EQ(). +// +// Macros for basic C++ coding: +// GTEST_AMBIGUOUS_ELSE_BLOCKER_ - for disabling a gcc warning. +// GTEST_ATTRIBUTE_UNUSED_ - declares that a class' instances or a +// variable don't have to be used. +// GTEST_DISALLOW_ASSIGN_ - disables operator=. +// GTEST_DISALLOW_COPY_AND_ASSIGN_ - disables copy ctor and operator=. +// GTEST_MUST_USE_RESULT_ - declares that a function's result must be used. +// +// Synchronization: +// Mutex, MutexLock, ThreadLocal, GetThreadCount() +// - synchronization primitives. +// GTEST_IS_THREADSAFE - defined to 1 to indicate that the above +// synchronization primitives have real implementations +// and Google Test is thread-safe; or 0 otherwise. +// +// Template meta programming: +// is_pointer - as in TR1; needed on Symbian and IBM XL C/C++ only. +// IteratorTraits - partial implementation of std::iterator_traits, which +// is not available in libCstd when compiled with Sun C++. +// +// Smart pointers: +// scoped_ptr - as in TR2. +// +// Regular expressions: +// RE - a simple regular expression class using the POSIX +// Extended Regular Expression syntax on UNIX-like +// platforms, or a reduced regular exception syntax on +// other platforms, including Windows. +// +// Logging: +// GTEST_LOG_() - logs messages at the specified severity level. +// LogToStderr() - directs all log messages to stderr. +// FlushInfoLog() - flushes informational log messages. +// +// Stdout and stderr capturing: +// CaptureStdout() - starts capturing stdout. +// GetCapturedStdout() - stops capturing stdout and returns the captured +// string. +// CaptureStderr() - starts capturing stderr. +// GetCapturedStderr() - stops capturing stderr and returns the captured +// string. +// +// Integer types: +// TypeWithSize - maps an integer to a int type. +// Int32, UInt32, Int64, UInt64, TimeInMillis +// - integers of known sizes. +// BiggestInt - the biggest signed integer type. +// +// Command-line utilities: +// GTEST_FLAG() - references a flag. +// GTEST_DECLARE_*() - declares a flag. +// GTEST_DEFINE_*() - defines a flag. +// GetInjectableArgvs() - returns the command line as a vector of strings. +// +// Environment variable utilities: +// GetEnv() - gets the value of an environment variable. +// BoolFromGTestEnv() - parses a bool environment variable. +// Int32FromGTestEnv() - parses an Int32 environment variable. +// StringFromGTestEnv() - parses a string environment variable. + +#include // for isspace, etc +#include // for ptrdiff_t +#include +#include +#include +#ifndef _WIN32_WCE +# include +# include +#endif // !_WIN32_WCE + +#if defined __APPLE__ +# include +# include +#endif + +#include // NOLINT +#include // NOLINT +#include // NOLINT + +#define GTEST_DEV_EMAIL_ "googletestframework@@googlegroups.com" +#define GTEST_FLAG_PREFIX_ "gtest_" +#define GTEST_FLAG_PREFIX_DASH_ "gtest-" +#define GTEST_FLAG_PREFIX_UPPER_ "GTEST_" +#define GTEST_NAME_ "Google Test" +#define GTEST_PROJECT_URL_ "http://code.google.com/p/googletest/" + +// Determines the version of gcc that is used to compile this. +#ifdef __GNUC__ +// 40302 means version 4.3.2. +# define GTEST_GCC_VER_ \ + (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__) +#endif // __GNUC__ + +// Determines the platform on which Google Test is compiled. +#ifdef __CYGWIN__ +# define GTEST_OS_CYGWIN 1 +#elif defined __SYMBIAN32__ +# define GTEST_OS_SYMBIAN 1 +#elif defined _WIN32 +# define GTEST_OS_WINDOWS 1 +# ifdef _WIN32_WCE +# define GTEST_OS_WINDOWS_MOBILE 1 +# elif defined(__MINGW__) || defined(__MINGW32__) +# define GTEST_OS_WINDOWS_MINGW 1 +# else +# define GTEST_OS_WINDOWS_DESKTOP 1 +# endif // _WIN32_WCE +#elif defined __APPLE__ +# define GTEST_OS_MAC 1 +# if TARGET_OS_IPHONE +# define GTEST_OS_IOS 1 +# if TARGET_IPHONE_SIMULATOR +# define GTEST_OS_IOS_SIMULATOR 1 +# endif +# endif +#elif defined __linux__ +# define GTEST_OS_LINUX 1 +# if defined __ANDROID__ +# define GTEST_OS_LINUX_ANDROID 1 +# endif +#elif defined __MVS__ +# define GTEST_OS_ZOS 1 +#elif defined(__sun) && defined(__SVR4) +# define GTEST_OS_SOLARIS 1 +#elif defined(_AIX) +# define GTEST_OS_AIX 1 +#elif defined(__hpux) +# define GTEST_OS_HPUX 1 +#elif defined __native_client__ +# define GTEST_OS_NACL 1 +#elif defined __OpenBSD__ +# define GTEST_OS_OPENBSD 1 +#elif defined __QNX__ +# define GTEST_OS_QNX 1 +#endif // __CYGWIN__ + +#ifndef GTEST_LANG_CXX11 +// gcc and clang define __GXX_EXPERIMENTAL_CXX0X__ when +// -std={c,gnu}++{0x,11} is passed. The C++11 standard specifies a +// value for __cplusplus, and recent versions of clang, gcc, and +// probably other compilers set that too in C++11 mode. +# if __GXX_EXPERIMENTAL_CXX0X__ || __cplusplus >= 201103L +// Compiling in at least C++11 mode. +# define GTEST_LANG_CXX11 1 +# else +# define GTEST_LANG_CXX11 0 +# endif +#endif + +// Brings in definitions for functions used in the testing::internal::posix +// namespace (read, write, close, chdir, isatty, stat). We do not currently +// use them on Windows Mobile. +#if !GTEST_OS_WINDOWS +// This assumes that non-Windows OSes provide unistd.h. For OSes where this +// is not the case, we need to include headers that provide the functions +// mentioned above. +# include +# include +#elif !GTEST_OS_WINDOWS_MOBILE +# include +# include +#endif + +#if GTEST_OS_LINUX_ANDROID +// Used to define __ANDROID_API__ matching the target NDK API level. +# include // NOLINT +#endif + +// Defines this to true iff Google Test can use POSIX regular expressions. +#ifndef GTEST_HAS_POSIX_RE +# if GTEST_OS_LINUX_ANDROID +// On Android, is only available starting with Gingerbread. +# define GTEST_HAS_POSIX_RE (__ANDROID_API__ >= 9) +# else +# define GTEST_HAS_POSIX_RE (!GTEST_OS_WINDOWS) +# endif +#endif + +#if GTEST_HAS_POSIX_RE + +// On some platforms, needs someone to define size_t, and +// won't compile otherwise. We can #include it here as we already +// included , which is guaranteed to define size_t through +// . +# include // NOLINT + +# define GTEST_USES_POSIX_RE 1 + +#elif GTEST_OS_WINDOWS + +// is not available on Windows. Use our own simple regex +// implementation instead. +# define GTEST_USES_SIMPLE_RE 1 + +#else + +// may not be available on this platform. Use our own +// simple regex implementation instead. +# define GTEST_USES_SIMPLE_RE 1 + +#endif // GTEST_HAS_POSIX_RE + +#ifndef GTEST_HAS_EXCEPTIONS +// The user didn't tell us whether exceptions are enabled, so we need +// to figure it out. +# if defined(_MSC_VER) || defined(__BORLANDC__) +// MSVC's and C++Builder's implementations of the STL use the _HAS_EXCEPTIONS +// macro to enable exceptions, so we'll do the same. +// Assumes that exceptions are enabled by default. +# ifndef _HAS_EXCEPTIONS +# define _HAS_EXCEPTIONS 1 +# endif // _HAS_EXCEPTIONS +# define GTEST_HAS_EXCEPTIONS _HAS_EXCEPTIONS +# elif defined(__GNUC__) && __EXCEPTIONS +// gcc defines __EXCEPTIONS to 1 iff exceptions are enabled. +# define GTEST_HAS_EXCEPTIONS 1 +# elif defined(__SUNPRO_CC) +// Sun Pro CC supports exceptions. However, there is no compile-time way of +// detecting whether they are enabled or not. Therefore, we assume that +// they are enabled unless the user tells us otherwise. +# define GTEST_HAS_EXCEPTIONS 1 +# elif defined(__IBMCPP__) && __EXCEPTIONS +// xlC defines __EXCEPTIONS to 1 iff exceptions are enabled. +# define GTEST_HAS_EXCEPTIONS 1 +# elif defined(__HP_aCC) +// Exception handling is in effect by default in HP aCC compiler. It has to +// be turned of by +noeh compiler option if desired. +# define GTEST_HAS_EXCEPTIONS 1 +# else +// For other compilers, we assume exceptions are disabled to be +// conservative. +# define GTEST_HAS_EXCEPTIONS 0 +# endif // defined(_MSC_VER) || defined(__BORLANDC__) +#endif // GTEST_HAS_EXCEPTIONS + +#if !defined(GTEST_HAS_STD_STRING) +// Even though we don't use this macro any longer, we keep it in case +// some clients still depend on it. +# define GTEST_HAS_STD_STRING 1 +#elif !GTEST_HAS_STD_STRING +// The user told us that ::std::string isn't available. +# error "Google Test cannot be used where ::std::string isn't available." +#endif // !defined(GTEST_HAS_STD_STRING) + +#ifndef GTEST_HAS_GLOBAL_STRING +// The user didn't tell us whether ::string is available, so we need +// to figure it out. + +# define GTEST_HAS_GLOBAL_STRING 0 + +#endif // GTEST_HAS_GLOBAL_STRING + +#ifndef GTEST_HAS_STD_WSTRING +// The user didn't tell us whether ::std::wstring is available, so we need +// to figure it out. +// TODO(wan@google.com): uses autoconf to detect whether ::std::wstring +// is available. + +// Cygwin 1.7 and below doesn't support ::std::wstring. +// Solaris' libc++ doesn't support it either. Android has +// no support for it at least as recent as Froyo (2.2). +# define GTEST_HAS_STD_WSTRING \ + (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS)) + +#endif // GTEST_HAS_STD_WSTRING + +#ifndef GTEST_HAS_GLOBAL_WSTRING +// The user didn't tell us whether ::wstring is available, so we need +// to figure it out. +# define GTEST_HAS_GLOBAL_WSTRING \ + (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING) +#endif // GTEST_HAS_GLOBAL_WSTRING + +// Determines whether RTTI is available. +#ifndef GTEST_HAS_RTTI +// The user didn't tell us whether RTTI is enabled, so we need to +// figure it out. + +# ifdef _MSC_VER + +# ifdef _CPPRTTI // MSVC defines this macro iff RTTI is enabled. +# define GTEST_HAS_RTTI 1 +# else +# define GTEST_HAS_RTTI 0 +# endif + +// Starting with version 4.3.2, gcc defines __GXX_RTTI iff RTTI is enabled. +# elif defined(__GNUC__) && (GTEST_GCC_VER_ >= 40302) + +# ifdef __GXX_RTTI +// When building against STLport with the Android NDK and with +// -frtti -fno-exceptions, the build fails at link time with undefined +// references to __cxa_bad_typeid. Note sure if STL or toolchain bug, +// so disable RTTI when detected. +# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR) && \ + !defined(__EXCEPTIONS) +# define GTEST_HAS_RTTI 0 +# else +# define GTEST_HAS_RTTI 1 +# endif // GTEST_OS_LINUX_ANDROID && __STLPORT_MAJOR && !__EXCEPTIONS +# else +# define GTEST_HAS_RTTI 0 +# endif // __GXX_RTTI + +// Clang defines __GXX_RTTI starting with version 3.0, but its manual recommends +// using has_feature instead. has_feature(cxx_rtti) is supported since 2.7, the +// first version with C++ support. +# elif defined(__clang__) + +# define GTEST_HAS_RTTI __has_feature(cxx_rtti) + +// Starting with version 9.0 IBM Visual Age defines __RTTI_ALL__ to 1 if +// both the typeid and dynamic_cast features are present. +# elif defined(__IBMCPP__) && (__IBMCPP__ >= 900) + +# ifdef __RTTI_ALL__ +# define GTEST_HAS_RTTI 1 +# else +# define GTEST_HAS_RTTI 0 +# endif + +# else + +// For all other compilers, we assume RTTI is enabled. +# define GTEST_HAS_RTTI 1 + +# endif // _MSC_VER + +#endif // GTEST_HAS_RTTI + +// It's this header's responsibility to #include when RTTI +// is enabled. +#if GTEST_HAS_RTTI +# include +#endif + +// Determines whether Google Test can use the pthreads library. +#ifndef GTEST_HAS_PTHREAD +// The user didn't tell us explicitly, so we assume pthreads support is +// available on Linux and Mac. +// +// To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0 +// to your compiler flags. +# define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX \ + || GTEST_OS_QNX) +#endif // GTEST_HAS_PTHREAD + +#if GTEST_HAS_PTHREAD +// gtest-port.h guarantees to #include when GTEST_HAS_PTHREAD is +// true. +# include // NOLINT + +// For timespec and nanosleep, used below. +# include // NOLINT +#endif + +// Determines whether Google Test can use tr1/tuple. You can define +// this macro to 0 to prevent Google Test from using tuple (any +// feature depending on tuple with be disabled in this mode). +#ifndef GTEST_HAS_TR1_TUPLE +# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR) +// STLport, provided with the Android NDK, has neither or . +# define GTEST_HAS_TR1_TUPLE 0 +# else +// The user didn't tell us not to do it, so we assume it's OK. +# define GTEST_HAS_TR1_TUPLE 1 +# endif +#endif // GTEST_HAS_TR1_TUPLE + +// Determines whether Google Test's own tr1 tuple implementation +// should be used. +#ifndef GTEST_USE_OWN_TR1_TUPLE +// The user didn't tell us, so we need to figure it out. + +// We use our own TR1 tuple if we aren't sure the user has an +// implementation of it already. At this time, libstdc++ 4.0.0+ and +// MSVC 2010 are the only mainstream standard libraries that come +// with a TR1 tuple implementation. NVIDIA's CUDA NVCC compiler +// pretends to be GCC by defining __GNUC__ and friends, but cannot +// compile GCC's tuple implementation. MSVC 2008 (9.0) provides TR1 +// tuple in a 323 MB Feature Pack download, which we cannot assume the +// user has. QNX's QCC compiler is a modified GCC but it doesn't +// support TR1 tuple. libc++ only provides std::tuple, in C++11 mode, +// and it can be used with some compilers that define __GNUC__. +# if (defined(__GNUC__) && !defined(__CUDACC__) && (GTEST_GCC_VER_ >= 40000) \ + && !GTEST_OS_QNX && !defined(_LIBCPP_VERSION)) || _MSC_VER >= 1600 +# define GTEST_ENV_HAS_TR1_TUPLE_ 1 +# endif + +// C++11 specifies that provides std::tuple. Use that if gtest is used +// in C++11 mode and libstdc++ isn't very old (binaries targeting OS X 10.6 +// can build with clang but need to use gcc4.2's libstdc++). +# if GTEST_LANG_CXX11 && (!defined(__GLIBCXX__) || __GLIBCXX__ > 20110325) +# define GTEST_ENV_HAS_STD_TUPLE_ 1 +# endif + +# if GTEST_ENV_HAS_TR1_TUPLE_ || GTEST_ENV_HAS_STD_TUPLE_ +# define GTEST_USE_OWN_TR1_TUPLE 0 +# else +# define GTEST_USE_OWN_TR1_TUPLE 1 +# endif + +#endif // GTEST_USE_OWN_TR1_TUPLE + +// To avoid conditional compilation everywhere, we make it +// gtest-port.h's responsibility to #include the header implementing +// tr1/tuple. +#if GTEST_HAS_TR1_TUPLE + +# if GTEST_USE_OWN_TR1_TUPLE +// This file was GENERATED by command: +// pump.py gtest-tuple.h.pump +// DO NOT EDIT BY HAND!!! + +// Copyright 2009 Google Inc. +// All Rights Reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + +// Implements a subset of TR1 tuple needed by Google Test and Google Mock. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_ + +#include // For ::std::pair. + +// The compiler used in Symbian has a bug that prevents us from declaring the +// tuple template as a friend (it complains that tuple is redefined). This +// hack bypasses the bug by declaring the members that should otherwise be +// private as public. +// Sun Studio versions < 12 also have the above bug. +#if defined(__SYMBIAN32__) || (defined(__SUNPRO_CC) && __SUNPRO_CC < 0x590) +# define GTEST_DECLARE_TUPLE_AS_FRIEND_ public: +#else +# define GTEST_DECLARE_TUPLE_AS_FRIEND_ \ + template friend class tuple; \ + private: +#endif + +// GTEST_n_TUPLE_(T) is the type of an n-tuple. +#define GTEST_0_TUPLE_(T) tuple<> +#define GTEST_1_TUPLE_(T) tuple +#define GTEST_2_TUPLE_(T) tuple +#define GTEST_3_TUPLE_(T) tuple +#define GTEST_4_TUPLE_(T) tuple +#define GTEST_5_TUPLE_(T) tuple +#define GTEST_6_TUPLE_(T) tuple +#define GTEST_7_TUPLE_(T) tuple +#define GTEST_8_TUPLE_(T) tuple +#define GTEST_9_TUPLE_(T) tuple +#define GTEST_10_TUPLE_(T) tuple + +// GTEST_n_TYPENAMES_(T) declares a list of n typenames. +#define GTEST_0_TYPENAMES_(T) +#define GTEST_1_TYPENAMES_(T) typename T##0 +#define GTEST_2_TYPENAMES_(T) typename T##0, typename T##1 +#define GTEST_3_TYPENAMES_(T) typename T##0, typename T##1, typename T##2 +#define GTEST_4_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3 +#define GTEST_5_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3, typename T##4 +#define GTEST_6_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3, typename T##4, typename T##5 +#define GTEST_7_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3, typename T##4, typename T##5, typename T##6 +#define GTEST_8_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3, typename T##4, typename T##5, typename T##6, typename T##7 +#define GTEST_9_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3, typename T##4, typename T##5, typename T##6, \ + typename T##7, typename T##8 +#define GTEST_10_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \ + typename T##3, typename T##4, typename T##5, typename T##6, \ + typename T##7, typename T##8, typename T##9 + +// In theory, defining stuff in the ::std namespace is undefined +// behavior. We can do this as we are playing the role of a standard +// library vendor. +namespace std { +namespace tr1 { + +template +class tuple; + +// Anything in namespace gtest_internal is Google Test's INTERNAL +// IMPLEMENTATION DETAIL and MUST NOT BE USED DIRECTLY in user code. +namespace gtest_internal { + +// ByRef::type is T if T is a reference; otherwise it's const T&. +template +struct ByRef { typedef const T& type; }; // NOLINT +template +struct ByRef { typedef T& type; }; // NOLINT + +// A handy wrapper for ByRef. +#define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef::type + +// AddRef::type is T if T is a reference; otherwise it's T&. This +// is the same as tr1::add_reference::type. +template +struct AddRef { typedef T& type; }; // NOLINT +template +struct AddRef { typedef T& type; }; // NOLINT + +// A handy wrapper for AddRef. +#define GTEST_ADD_REF_(T) typename ::std::tr1::gtest_internal::AddRef::type + +// A helper for implementing get(). +template class Get; + +// A helper for implementing tuple_element. kIndexValid is true +// iff k < the number of fields in tuple type T. +template +struct TupleElement; + +template +struct TupleElement { + typedef T0 type; +}; + +template +struct TupleElement { + typedef T1 type; +}; + +template +struct TupleElement { + typedef T2 type; +}; + +template +struct TupleElement { + typedef T3 type; +}; + +template +struct TupleElement { + typedef T4 type; +}; + +template +struct TupleElement { + typedef T5 type; +}; + +template +struct TupleElement { + typedef T6 type; +}; + +template +struct TupleElement { + typedef T7 type; +}; + +template +struct TupleElement { + typedef T8 type; +}; + +template +struct TupleElement { + typedef T9 type; +}; + +} // namespace gtest_internal + +template <> +class tuple<> { + public: + tuple() {} + tuple(const tuple& /* t */) {} + tuple& operator=(const tuple& /* t */) { return *this; } +}; + +template +class GTEST_1_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0) : f0_(f0) {} + + tuple(const tuple& t) : f0_(t.f0_) {} + + template + tuple(const GTEST_1_TUPLE_(U)& t) : f0_(t.f0_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_1_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_1_TUPLE_(U)& t) { + f0_ = t.f0_; + return *this; + } + + T0 f0_; +}; + +template +class GTEST_2_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1) : f0_(f0), + f1_(f1) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_) {} + + template + tuple(const GTEST_2_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_) {} + template + tuple(const ::std::pair& p) : f0_(p.first), f1_(p.second) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_2_TUPLE_(U)& t) { + return CopyFrom(t); + } + template + tuple& operator=(const ::std::pair& p) { + f0_ = p.first; + f1_ = p.second; + return *this; + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_2_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + return *this; + } + + T0 f0_; + T1 f1_; +}; + +template +class GTEST_3_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2) : f0_(f0), f1_(f1), f2_(f2) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_) {} + + template + tuple(const GTEST_3_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_3_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_3_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; +}; + +template +class GTEST_4_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3) : f0_(f0), f1_(f1), f2_(f2), + f3_(f3) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_) {} + + template + tuple(const GTEST_4_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_4_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_4_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; +}; + +template +class GTEST_5_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_(), f4_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3, + GTEST_BY_REF_(T4) f4) : f0_(f0), f1_(f1), f2_(f2), f3_(f3), f4_(f4) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), + f4_(t.f4_) {} + + template + tuple(const GTEST_5_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_), f4_(t.f4_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_5_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_5_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + f4_ = t.f4_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; + T4 f4_; +}; + +template +class GTEST_6_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3, GTEST_BY_REF_(T4) f4, + GTEST_BY_REF_(T5) f5) : f0_(f0), f1_(f1), f2_(f2), f3_(f3), f4_(f4), + f5_(f5) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), + f4_(t.f4_), f5_(t.f5_) {} + + template + tuple(const GTEST_6_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_), f4_(t.f4_), f5_(t.f5_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_6_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_6_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + f4_ = t.f4_; + f5_ = t.f5_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; + T4 f4_; + T5 f5_; +}; + +template +class GTEST_7_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3, GTEST_BY_REF_(T4) f4, + GTEST_BY_REF_(T5) f5, GTEST_BY_REF_(T6) f6) : f0_(f0), f1_(f1), f2_(f2), + f3_(f3), f4_(f4), f5_(f5), f6_(f6) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), + f4_(t.f4_), f5_(t.f5_), f6_(t.f6_) {} + + template + tuple(const GTEST_7_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_), f4_(t.f4_), f5_(t.f5_), f6_(t.f6_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_7_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_7_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + f4_ = t.f4_; + f5_ = t.f5_; + f6_ = t.f6_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; + T4 f4_; + T5 f5_; + T6 f6_; +}; + +template +class GTEST_8_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3, GTEST_BY_REF_(T4) f4, + GTEST_BY_REF_(T5) f5, GTEST_BY_REF_(T6) f6, + GTEST_BY_REF_(T7) f7) : f0_(f0), f1_(f1), f2_(f2), f3_(f3), f4_(f4), + f5_(f5), f6_(f6), f7_(f7) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), + f4_(t.f4_), f5_(t.f5_), f6_(t.f6_), f7_(t.f7_) {} + + template + tuple(const GTEST_8_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_), f4_(t.f4_), f5_(t.f5_), f6_(t.f6_), f7_(t.f7_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_8_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_8_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + f4_ = t.f4_; + f5_ = t.f5_; + f6_ = t.f6_; + f7_ = t.f7_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; + T4 f4_; + T5 f5_; + T6 f6_; + T7 f7_; +}; + +template +class GTEST_9_TUPLE_(T) { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3, GTEST_BY_REF_(T4) f4, + GTEST_BY_REF_(T5) f5, GTEST_BY_REF_(T6) f6, GTEST_BY_REF_(T7) f7, + GTEST_BY_REF_(T8) f8) : f0_(f0), f1_(f1), f2_(f2), f3_(f3), f4_(f4), + f5_(f5), f6_(f6), f7_(f7), f8_(f8) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), + f4_(t.f4_), f5_(t.f5_), f6_(t.f6_), f7_(t.f7_), f8_(t.f8_) {} + + template + tuple(const GTEST_9_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_), f4_(t.f4_), f5_(t.f5_), f6_(t.f6_), f7_(t.f7_), f8_(t.f8_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_9_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_9_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + f4_ = t.f4_; + f5_ = t.f5_; + f6_ = t.f6_; + f7_ = t.f7_; + f8_ = t.f8_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; + T4 f4_; + T5 f5_; + T6 f6_; + T7 f7_; + T8 f8_; +}; + +template +class tuple { + public: + template friend class gtest_internal::Get; + + tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_(), + f9_() {} + + explicit tuple(GTEST_BY_REF_(T0) f0, GTEST_BY_REF_(T1) f1, + GTEST_BY_REF_(T2) f2, GTEST_BY_REF_(T3) f3, GTEST_BY_REF_(T4) f4, + GTEST_BY_REF_(T5) f5, GTEST_BY_REF_(T6) f6, GTEST_BY_REF_(T7) f7, + GTEST_BY_REF_(T8) f8, GTEST_BY_REF_(T9) f9) : f0_(f0), f1_(f1), f2_(f2), + f3_(f3), f4_(f4), f5_(f5), f6_(f6), f7_(f7), f8_(f8), f9_(f9) {} + + tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), + f4_(t.f4_), f5_(t.f5_), f6_(t.f6_), f7_(t.f7_), f8_(t.f8_), f9_(t.f9_) {} + + template + tuple(const GTEST_10_TUPLE_(U)& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), + f3_(t.f3_), f4_(t.f4_), f5_(t.f5_), f6_(t.f6_), f7_(t.f7_), f8_(t.f8_), + f9_(t.f9_) {} + + tuple& operator=(const tuple& t) { return CopyFrom(t); } + + template + tuple& operator=(const GTEST_10_TUPLE_(U)& t) { + return CopyFrom(t); + } + + GTEST_DECLARE_TUPLE_AS_FRIEND_ + + template + tuple& CopyFrom(const GTEST_10_TUPLE_(U)& t) { + f0_ = t.f0_; + f1_ = t.f1_; + f2_ = t.f2_; + f3_ = t.f3_; + f4_ = t.f4_; + f5_ = t.f5_; + f6_ = t.f6_; + f7_ = t.f7_; + f8_ = t.f8_; + f9_ = t.f9_; + return *this; + } + + T0 f0_; + T1 f1_; + T2 f2_; + T3 f3_; + T4 f4_; + T5 f5_; + T6 f6_; + T7 f7_; + T8 f8_; + T9 f9_; +}; + +// 6.1.3.2 Tuple creation functions. + +// Known limitations: we don't support passing an +// std::tr1::reference_wrapper to make_tuple(). And we don't +// implement tie(). + +inline tuple<> make_tuple() { return tuple<>(); } + +template +inline GTEST_1_TUPLE_(T) make_tuple(const T0& f0) { + return GTEST_1_TUPLE_(T)(f0); +} + +template +inline GTEST_2_TUPLE_(T) make_tuple(const T0& f0, const T1& f1) { + return GTEST_2_TUPLE_(T)(f0, f1); +} + +template +inline GTEST_3_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2) { + return GTEST_3_TUPLE_(T)(f0, f1, f2); +} + +template +inline GTEST_4_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3) { + return GTEST_4_TUPLE_(T)(f0, f1, f2, f3); +} + +template +inline GTEST_5_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3, const T4& f4) { + return GTEST_5_TUPLE_(T)(f0, f1, f2, f3, f4); +} + +template +inline GTEST_6_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3, const T4& f4, const T5& f5) { + return GTEST_6_TUPLE_(T)(f0, f1, f2, f3, f4, f5); +} + +template +inline GTEST_7_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3, const T4& f4, const T5& f5, const T6& f6) { + return GTEST_7_TUPLE_(T)(f0, f1, f2, f3, f4, f5, f6); +} + +template +inline GTEST_8_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3, const T4& f4, const T5& f5, const T6& f6, const T7& f7) { + return GTEST_8_TUPLE_(T)(f0, f1, f2, f3, f4, f5, f6, f7); +} + +template +inline GTEST_9_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3, const T4& f4, const T5& f5, const T6& f6, const T7& f7, + const T8& f8) { + return GTEST_9_TUPLE_(T)(f0, f1, f2, f3, f4, f5, f6, f7, f8); +} + +template +inline GTEST_10_TUPLE_(T) make_tuple(const T0& f0, const T1& f1, const T2& f2, + const T3& f3, const T4& f4, const T5& f5, const T6& f6, const T7& f7, + const T8& f8, const T9& f9) { + return GTEST_10_TUPLE_(T)(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9); +} + +// 6.1.3.3 Tuple helper classes. + +template struct tuple_size; + +template +struct tuple_size { + static const int value = 0; +}; + +template +struct tuple_size { + static const int value = 1; +}; + +template +struct tuple_size { + static const int value = 2; +}; + +template +struct tuple_size { + static const int value = 3; +}; + +template +struct tuple_size { + static const int value = 4; +}; + +template +struct tuple_size { + static const int value = 5; +}; + +template +struct tuple_size { + static const int value = 6; +}; + +template +struct tuple_size { + static const int value = 7; +}; + +template +struct tuple_size { + static const int value = 8; +}; + +template +struct tuple_size { + static const int value = 9; +}; + +template +struct tuple_size { + static const int value = 10; +}; + +template +struct tuple_element { + typedef typename gtest_internal::TupleElement< + k < (tuple_size::value), k, Tuple>::type type; +}; + +#define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element::type + +// 6.1.3.4 Element access. + +namespace gtest_internal { + +template <> +class Get<0> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple)) + Field(Tuple& t) { return t.f0_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple)) + ConstField(const Tuple& t) { return t.f0_; } +}; + +template <> +class Get<1> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(1, Tuple)) + Field(Tuple& t) { return t.f1_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(1, Tuple)) + ConstField(const Tuple& t) { return t.f1_; } +}; + +template <> +class Get<2> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(2, Tuple)) + Field(Tuple& t) { return t.f2_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(2, Tuple)) + ConstField(const Tuple& t) { return t.f2_; } +}; + +template <> +class Get<3> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(3, Tuple)) + Field(Tuple& t) { return t.f3_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(3, Tuple)) + ConstField(const Tuple& t) { return t.f3_; } +}; + +template <> +class Get<4> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(4, Tuple)) + Field(Tuple& t) { return t.f4_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(4, Tuple)) + ConstField(const Tuple& t) { return t.f4_; } +}; + +template <> +class Get<5> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(5, Tuple)) + Field(Tuple& t) { return t.f5_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(5, Tuple)) + ConstField(const Tuple& t) { return t.f5_; } +}; + +template <> +class Get<6> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(6, Tuple)) + Field(Tuple& t) { return t.f6_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(6, Tuple)) + ConstField(const Tuple& t) { return t.f6_; } +}; + +template <> +class Get<7> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(7, Tuple)) + Field(Tuple& t) { return t.f7_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(7, Tuple)) + ConstField(const Tuple& t) { return t.f7_; } +}; + +template <> +class Get<8> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(8, Tuple)) + Field(Tuple& t) { return t.f8_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(8, Tuple)) + ConstField(const Tuple& t) { return t.f8_; } +}; + +template <> +class Get<9> { + public: + template + static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(9, Tuple)) + Field(Tuple& t) { return t.f9_; } // NOLINT + + template + static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(9, Tuple)) + ConstField(const Tuple& t) { return t.f9_; } +}; + +} // namespace gtest_internal + +template +GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(k, GTEST_10_TUPLE_(T))) +get(GTEST_10_TUPLE_(T)& t) { + return gtest_internal::Get::Field(t); +} + +template +GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(k, GTEST_10_TUPLE_(T))) +get(const GTEST_10_TUPLE_(T)& t) { + return gtest_internal::Get::ConstField(t); +} + +// 6.1.3.5 Relational operators + +// We only implement == and !=, as we don't have a need for the rest yet. + +namespace gtest_internal { + +// SameSizeTuplePrefixComparator::Eq(t1, t2) returns true if the +// first k fields of t1 equals the first k fields of t2. +// SameSizeTuplePrefixComparator(k1, k2) would be a compiler error if +// k1 != k2. +template +struct SameSizeTuplePrefixComparator; + +template <> +struct SameSizeTuplePrefixComparator<0, 0> { + template + static bool Eq(const Tuple1& /* t1 */, const Tuple2& /* t2 */) { + return true; + } +}; + +template +struct SameSizeTuplePrefixComparator { + template + static bool Eq(const Tuple1& t1, const Tuple2& t2) { + return SameSizeTuplePrefixComparator::Eq(t1, t2) && + ::std::tr1::get(t1) == ::std::tr1::get(t2); + } +}; + +} // namespace gtest_internal + +template +inline bool operator==(const GTEST_10_TUPLE_(T)& t, + const GTEST_10_TUPLE_(U)& u) { + return gtest_internal::SameSizeTuplePrefixComparator< + tuple_size::value, + tuple_size::value>::Eq(t, u); +} + +template +inline bool operator!=(const GTEST_10_TUPLE_(T)& t, + const GTEST_10_TUPLE_(U)& u) { return !(t == u); } + +// 6.1.4 Pairs. +// Unimplemented. + +} // namespace tr1 +} // namespace std + +#undef GTEST_0_TUPLE_ +#undef GTEST_1_TUPLE_ +#undef GTEST_2_TUPLE_ +#undef GTEST_3_TUPLE_ +#undef GTEST_4_TUPLE_ +#undef GTEST_5_TUPLE_ +#undef GTEST_6_TUPLE_ +#undef GTEST_7_TUPLE_ +#undef GTEST_8_TUPLE_ +#undef GTEST_9_TUPLE_ +#undef GTEST_10_TUPLE_ + +#undef GTEST_0_TYPENAMES_ +#undef GTEST_1_TYPENAMES_ +#undef GTEST_2_TYPENAMES_ +#undef GTEST_3_TYPENAMES_ +#undef GTEST_4_TYPENAMES_ +#undef GTEST_5_TYPENAMES_ +#undef GTEST_6_TYPENAMES_ +#undef GTEST_7_TYPENAMES_ +#undef GTEST_8_TYPENAMES_ +#undef GTEST_9_TYPENAMES_ +#undef GTEST_10_TYPENAMES_ + +#undef GTEST_DECLARE_TUPLE_AS_FRIEND_ +#undef GTEST_BY_REF_ +#undef GTEST_ADD_REF_ +#undef GTEST_TUPLE_ELEMENT_ + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_ +# elif GTEST_ENV_HAS_STD_TUPLE_ +# include +// C++11 puts its tuple into the ::std namespace rather than +// ::std::tr1. gtest expects tuple to live in ::std::tr1, so put it there. +// This causes undefined behavior, but supported compilers react in +// the way we intend. +namespace std { +namespace tr1 { +using ::std::get; +using ::std::make_tuple; +using ::std::tuple; +using ::std::tuple_element; +using ::std::tuple_size; +} +} + +# elif GTEST_OS_SYMBIAN + +// On Symbian, BOOST_HAS_TR1_TUPLE causes Boost's TR1 tuple library to +// use STLport's tuple implementation, which unfortunately doesn't +// work as the copy of STLport distributed with Symbian is incomplete. +// By making sure BOOST_HAS_TR1_TUPLE is undefined, we force Boost to +// use its own tuple implementation. +# ifdef BOOST_HAS_TR1_TUPLE +# undef BOOST_HAS_TR1_TUPLE +# endif // BOOST_HAS_TR1_TUPLE + +// This prevents , which defines +// BOOST_HAS_TR1_TUPLE, from being #included by Boost's . +# define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED +# include + +# elif defined(__GNUC__) && (GTEST_GCC_VER_ >= 40000) +// GCC 4.0+ implements tr1/tuple in the header. This does +// not conform to the TR1 spec, which requires the header to be . + +# if !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302 +// Until version 4.3.2, gcc has a bug that causes , +// which is #included by , to not compile when RTTI is +// disabled. _TR1_FUNCTIONAL is the header guard for +// . Hence the following #define is a hack to prevent +// from being included. +# define _TR1_FUNCTIONAL 1 +# include +# undef _TR1_FUNCTIONAL // Allows the user to #include + // if he chooses to. +# else +# include // NOLINT +# endif // !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302 + +# else +// If the compiler is not GCC 4.0+, we assume the user is using a +// spec-conforming TR1 implementation. +# include // NOLINT +# endif // GTEST_USE_OWN_TR1_TUPLE + +#endif // GTEST_HAS_TR1_TUPLE + +// Determines whether clone(2) is supported. +// Usually it will only be available on Linux, excluding +// Linux on the Itanium architecture. +// Also see http://linux.die.net/man/2/clone. +#ifndef GTEST_HAS_CLONE +// The user didn't tell us, so we need to figure it out. + +# if GTEST_OS_LINUX && !defined(__ia64__) +# if GTEST_OS_LINUX_ANDROID +// On Android, clone() is only available on ARM starting with Gingerbread. +# if defined(__arm__) && __ANDROID_API__ >= 9 +# define GTEST_HAS_CLONE 1 +# else +# define GTEST_HAS_CLONE 0 +# endif +# else +# define GTEST_HAS_CLONE 1 +# endif +# else +# define GTEST_HAS_CLONE 0 +# endif // GTEST_OS_LINUX && !defined(__ia64__) + +#endif // GTEST_HAS_CLONE + +// Determines whether to support stream redirection. This is used to test +// output correctness and to implement death tests. +#ifndef GTEST_HAS_STREAM_REDIRECTION +// By default, we assume that stream redirection is supported on all +// platforms except known mobile ones. +# if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN +# define GTEST_HAS_STREAM_REDIRECTION 0 +# else +# define GTEST_HAS_STREAM_REDIRECTION 1 +# endif // !GTEST_OS_WINDOWS_MOBILE && !GTEST_OS_SYMBIAN +#endif // GTEST_HAS_STREAM_REDIRECTION + +// Determines whether to support death tests. +// Google Test does not support death tests for VC 7.1 and earlier as +// abort() in a VC 7.1 application compiled as GUI in debug config +// pops up a dialog window that cannot be suppressed programmatically. +#if (GTEST_OS_LINUX || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \ + (GTEST_OS_MAC && !GTEST_OS_IOS) || GTEST_OS_IOS_SIMULATOR || \ + (GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \ + GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX || \ + GTEST_OS_OPENBSD || GTEST_OS_QNX) +# define GTEST_HAS_DEATH_TEST 1 +# include // NOLINT +#endif + +// We don't support MSVC 7.1 with exceptions disabled now. Therefore +// all the compilers we care about are adequate for supporting +// value-parameterized tests. +#define GTEST_HAS_PARAM_TEST 1 + +// Determines whether to support type-driven tests. + +// Typed tests need and variadic macros, which GCC, VC++ 8.0, +// Sun Pro CC, IBM Visual Age, and HP aCC support. +#if defined(__GNUC__) || (_MSC_VER >= 1400) || defined(__SUNPRO_CC) || \ + defined(__IBMCPP__) || defined(__HP_aCC) +# define GTEST_HAS_TYPED_TEST 1 +# define GTEST_HAS_TYPED_TEST_P 1 +#endif + +// Determines whether to support Combine(). This only makes sense when +// value-parameterized tests are enabled. The implementation doesn't +// work on Sun Studio since it doesn't understand templated conversion +// operators. +#if GTEST_HAS_PARAM_TEST && GTEST_HAS_TR1_TUPLE && !defined(__SUNPRO_CC) +# define GTEST_HAS_COMBINE 1 +#endif + +// Determines whether the system compiler uses UTF-16 for encoding wide strings. +#define GTEST_WIDE_STRING_USES_UTF16_ \ + (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX) + +// Determines whether test results can be streamed to a socket. +#if GTEST_OS_LINUX +# define GTEST_CAN_STREAM_RESULTS_ 1 +#endif + +// Defines some utility macros. + +// The GNU compiler emits a warning if nested "if" statements are followed by +// an "else" statement and braces are not used to explicitly disambiguate the +// "else" binding. This leads to problems with code like: +// +// if (gate) +// ASSERT_*(condition) << "Some message"; +// +// The "switch (0) case 0:" idiom is used to suppress this. +#ifdef __INTEL_COMPILER +# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ +#else +# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: // NOLINT +#endif + +// Use this annotation at the end of a struct/class definition to +// prevent the compiler from optimizing away instances that are never +// used. This is useful when all interesting logic happens inside the +// c'tor and / or d'tor. Example: +// +// struct Foo { +// Foo() { ... } +// } GTEST_ATTRIBUTE_UNUSED_; +// +// Also use it after a variable or parameter declaration to tell the +// compiler the variable/parameter does not have to be used. +#if defined(__GNUC__) && !defined(COMPILER_ICC) +# define GTEST_ATTRIBUTE_UNUSED_ __attribute__ ((unused)) +#else +# define GTEST_ATTRIBUTE_UNUSED_ +#endif + +// A macro to disallow operator= +// This should be used in the private: declarations for a class. +#define GTEST_DISALLOW_ASSIGN_(type)\ + void operator=(type const &) + +// A macro to disallow copy constructor and operator= +// This should be used in the private: declarations for a class. +#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)\ + type(type const &);\ + GTEST_DISALLOW_ASSIGN_(type) + +// Tell the compiler to warn about unused return values for functions declared +// with this macro. The macro should be used on function declarations +// following the argument list: +// +// Sprocket* AllocateSprocket() GTEST_MUST_USE_RESULT_; +#if defined(__GNUC__) && (GTEST_GCC_VER_ >= 30400) && !defined(COMPILER_ICC) +# define GTEST_MUST_USE_RESULT_ __attribute__ ((warn_unused_result)) +#else +# define GTEST_MUST_USE_RESULT_ +#endif // __GNUC__ && (GTEST_GCC_VER_ >= 30400) && !COMPILER_ICC + +// Determine whether the compiler supports Microsoft's Structured Exception +// Handling. This is supported by several Windows compilers but generally +// does not exist on any other system. +#ifndef GTEST_HAS_SEH +// The user didn't tell us, so we need to figure it out. + +# if defined(_MSC_VER) || defined(__BORLANDC__) +// These two compilers are known to support SEH. +# define GTEST_HAS_SEH 1 +# else +// Assume no SEH. +# define GTEST_HAS_SEH 0 +# endif + +#endif // GTEST_HAS_SEH + +#ifdef _MSC_VER + +# if GTEST_LINKED_AS_SHARED_LIBRARY +# define GTEST_API_ __declspec(dllimport) +# elif GTEST_CREATE_SHARED_LIBRARY +# define GTEST_API_ __declspec(dllexport) +# endif + +#endif // _MSC_VER + +#ifndef GTEST_API_ +# define GTEST_API_ +#endif + +#ifdef __GNUC__ +// Ask the compiler to never inline a given function. +# define GTEST_NO_INLINE_ __attribute__((noinline)) +#else +# define GTEST_NO_INLINE_ +#endif + +// _LIBCPP_VERSION is defined by the libc++ library from the LLVM project. +#if defined(__GLIBCXX__) || defined(_LIBCPP_VERSION) +# define GTEST_HAS_CXXABI_H_ 1 +#else +# define GTEST_HAS_CXXABI_H_ 0 +#endif + +namespace testing { + +class Message; + +namespace internal { + +// A secret type that Google Test users don't know about. It has no +// definition on purpose. Therefore it's impossible to create a +// Secret object, which is what we want. +class Secret; + +// The GTEST_COMPILE_ASSERT_ macro can be used to verify that a compile time +// expression is true. For example, you could use it to verify the +// size of a static array: +// +// GTEST_COMPILE_ASSERT_(ARRAYSIZE(content_type_names) == CONTENT_NUM_TYPES, +// content_type_names_incorrect_size); +// +// or to make sure a struct is smaller than a certain size: +// +// GTEST_COMPILE_ASSERT_(sizeof(foo) < 128, foo_too_large); +// +// The second argument to the macro is the name of the variable. If +// the expression is false, most compilers will issue a warning/error +// containing the name of the variable. + +template +struct CompileAssert { +}; + +#define GTEST_COMPILE_ASSERT_(expr, msg) \ + typedef ::testing::internal::CompileAssert<(static_cast(expr))> \ + msg[static_cast(expr) ? 1 : -1] GTEST_ATTRIBUTE_UNUSED_ + +// Implementation details of GTEST_COMPILE_ASSERT_: +// +// - GTEST_COMPILE_ASSERT_ works by defining an array type that has -1 +// elements (and thus is invalid) when the expression is false. +// +// - The simpler definition +// +// #define GTEST_COMPILE_ASSERT_(expr, msg) typedef char msg[(expr) ? 1 : -1] +// +// does not work, as gcc supports variable-length arrays whose sizes +// are determined at run-time (this is gcc's extension and not part +// of the C++ standard). As a result, gcc fails to reject the +// following code with the simple definition: +// +// int foo; +// GTEST_COMPILE_ASSERT_(foo, msg); // not supposed to compile as foo is +// // not a compile-time constant. +// +// - By using the type CompileAssert<(bool(expr))>, we ensures that +// expr is a compile-time constant. (Template arguments must be +// determined at compile-time.) +// +// - The outter parentheses in CompileAssert<(bool(expr))> are necessary +// to work around a bug in gcc 3.4.4 and 4.0.1. If we had written +// +// CompileAssert +// +// instead, these compilers will refuse to compile +// +// GTEST_COMPILE_ASSERT_(5 > 0, some_message); +// +// (They seem to think the ">" in "5 > 0" marks the end of the +// template argument list.) +// +// - The array size is (bool(expr) ? 1 : -1), instead of simply +// +// ((expr) ? 1 : -1). +// +// This is to avoid running into a bug in MS VC 7.1, which +// causes ((0.0) ? 1 : -1) to incorrectly evaluate to 1. + +// StaticAssertTypeEqHelper is used by StaticAssertTypeEq defined in gtest.h. +// +// This template is declared, but intentionally undefined. +template +struct StaticAssertTypeEqHelper; + +template +struct StaticAssertTypeEqHelper {}; + +#if GTEST_HAS_GLOBAL_STRING +typedef ::string string; +#else +typedef ::std::string string; +#endif // GTEST_HAS_GLOBAL_STRING + +#if GTEST_HAS_GLOBAL_WSTRING +typedef ::wstring wstring; +#elif GTEST_HAS_STD_WSTRING +typedef ::std::wstring wstring; +#endif // GTEST_HAS_GLOBAL_WSTRING + +// A helper for suppressing warnings on constant condition. It just +// returns 'condition'. +GTEST_API_ bool IsTrue(bool condition); + +// Defines scoped_ptr. + +// This implementation of scoped_ptr is PARTIAL - it only contains +// enough stuff to satisfy Google Test's need. +template +class scoped_ptr { + public: + typedef T element_type; + + explicit scoped_ptr(T* p = NULL) : ptr_(p) {} + ~scoped_ptr() { reset(); } + + T& operator*() const { return *ptr_; } + T* operator->() const { return ptr_; } + T* get() const { return ptr_; } + + T* release() { + T* const ptr = ptr_; + ptr_ = NULL; + return ptr; + } + + void reset(T* p = NULL) { + if (p != ptr_) { + if (IsTrue(sizeof(T) > 0)) { // Makes sure T is a complete type. + delete ptr_; + } + ptr_ = p; + } + } + + private: + T* ptr_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr); +}; + +// Defines RE. + +// A simple C++ wrapper for . It uses the POSIX Extended +// Regular Expression syntax. +class GTEST_API_ RE { + public: + // A copy constructor is required by the Standard to initialize object + // references from r-values. + RE(const RE& other) { Init(other.pattern()); } + + // Constructs an RE from a string. + RE(const ::std::string& regex) { Init(regex.c_str()); } // NOLINT + +#if GTEST_HAS_GLOBAL_STRING + + RE(const ::string& regex) { Init(regex.c_str()); } // NOLINT + +#endif // GTEST_HAS_GLOBAL_STRING + + RE(const char* regex) { Init(regex); } // NOLINT + ~RE(); + + // Returns the string representation of the regex. + const char* pattern() const { return pattern_; } + + // FullMatch(str, re) returns true iff regular expression re matches + // the entire str. + // PartialMatch(str, re) returns true iff regular expression re + // matches a substring of str (including str itself). + // + // TODO(wan@google.com): make FullMatch() and PartialMatch() work + // when str contains NUL characters. + static bool FullMatch(const ::std::string& str, const RE& re) { + return FullMatch(str.c_str(), re); + } + static bool PartialMatch(const ::std::string& str, const RE& re) { + return PartialMatch(str.c_str(), re); + } + +#if GTEST_HAS_GLOBAL_STRING + + static bool FullMatch(const ::string& str, const RE& re) { + return FullMatch(str.c_str(), re); + } + static bool PartialMatch(const ::string& str, const RE& re) { + return PartialMatch(str.c_str(), re); + } + +#endif // GTEST_HAS_GLOBAL_STRING + + static bool FullMatch(const char* str, const RE& re); + static bool PartialMatch(const char* str, const RE& re); + + private: + void Init(const char* regex); + + // We use a const char* instead of an std::string, as Google Test used to be + // used where std::string is not available. TODO(wan@google.com): change to + // std::string. + const char* pattern_; + bool is_valid_; + +#if GTEST_USES_POSIX_RE + + regex_t full_regex_; // For FullMatch(). + regex_t partial_regex_; // For PartialMatch(). + +#else // GTEST_USES_SIMPLE_RE + + const char* full_pattern_; // For FullMatch(); + +#endif + + GTEST_DISALLOW_ASSIGN_(RE); +}; + +// Formats a source file path and a line number as they would appear +// in an error message from the compiler used to compile this code. +GTEST_API_ ::std::string FormatFileLocation(const char* file, int line); + +// Formats a file location for compiler-independent XML output. +// Although this function is not platform dependent, we put it next to +// FormatFileLocation in order to contrast the two functions. +GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file, + int line); + +// Defines logging utilities: +// GTEST_LOG_(severity) - logs messages at the specified severity level. The +// message itself is streamed into the macro. +// LogToStderr() - directs all log messages to stderr. +// FlushInfoLog() - flushes informational log messages. + +enum GTestLogSeverity { + GTEST_INFO, + GTEST_WARNING, + GTEST_ERROR, + GTEST_FATAL +}; + +// Formats log entry severity, provides a stream object for streaming the +// log message, and terminates the message with a newline when going out of +// scope. +class GTEST_API_ GTestLog { + public: + GTestLog(GTestLogSeverity severity, const char* file, int line); + + // Flushes the buffers and, if severity is GTEST_FATAL, aborts the program. + ~GTestLog(); + + ::std::ostream& GetStream() { return ::std::cerr; } + + private: + const GTestLogSeverity severity_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestLog); +}; + +#define GTEST_LOG_(severity) \ + ::testing::internal::GTestLog(::testing::internal::GTEST_##severity, \ + __FILE__, __LINE__).GetStream() + +inline void LogToStderr() {} +inline void FlushInfoLog() { fflush(NULL); } + +// INTERNAL IMPLEMENTATION - DO NOT USE. +// +// GTEST_CHECK_ is an all-mode assert. It aborts the program if the condition +// is not satisfied. +// Synopsys: +// GTEST_CHECK_(boolean_condition); +// or +// GTEST_CHECK_(boolean_condition) << "Additional message"; +// +// This checks the condition and if the condition is not satisfied +// it prints message about the condition violation, including the +// condition itself, plus additional message streamed into it, if any, +// and then it aborts the program. It aborts the program irrespective of +// whether it is built in the debug mode or not. +#define GTEST_CHECK_(condition) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::IsTrue(condition)) \ + ; \ + else \ + GTEST_LOG_(FATAL) << "Condition " #condition " failed. " + +// An all-mode assert to verify that the given POSIX-style function +// call returns 0 (indicating success). Known limitation: this +// doesn't expand to a balanced 'if' statement, so enclose the macro +// in {} if you need to use it as the only statement in an 'if' +// branch. +#define GTEST_CHECK_POSIX_SUCCESS_(posix_call) \ + if (const int gtest_error = (posix_call)) \ + GTEST_LOG_(FATAL) << #posix_call << "failed with error " \ + << gtest_error + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Use ImplicitCast_ as a safe version of static_cast for upcasting in +// the type hierarchy (e.g. casting a Foo* to a SuperclassOfFoo* or a +// const Foo*). When you use ImplicitCast_, the compiler checks that +// the cast is safe. Such explicit ImplicitCast_s are necessary in +// surprisingly many situations where C++ demands an exact type match +// instead of an argument type convertable to a target type. +// +// The syntax for using ImplicitCast_ is the same as for static_cast: +// +// ImplicitCast_(expr) +// +// ImplicitCast_ would have been part of the C++ standard library, +// but the proposal was submitted too late. It will probably make +// its way into the language in the future. +// +// This relatively ugly name is intentional. It prevents clashes with +// similar functions users may have (e.g., implicit_cast). The internal +// namespace alone is not enough because the function can be found by ADL. +template +inline To ImplicitCast_(To x) { return x; } + +// When you upcast (that is, cast a pointer from type Foo to type +// SuperclassOfFoo), it's fine to use ImplicitCast_<>, since upcasts +// always succeed. When you downcast (that is, cast a pointer from +// type Foo to type SubclassOfFoo), static_cast<> isn't safe, because +// how do you know the pointer is really of type SubclassOfFoo? It +// could be a bare Foo, or of type DifferentSubclassOfFoo. Thus, +// when you downcast, you should use this macro. In debug mode, we +// use dynamic_cast<> to double-check the downcast is legal (we die +// if it's not). In normal mode, we do the efficient static_cast<> +// instead. Thus, it's important to test in debug mode to make sure +// the cast is legal! +// This is the only place in the code we should use dynamic_cast<>. +// In particular, you SHOULDN'T be using dynamic_cast<> in order to +// do RTTI (eg code like this: +// if (dynamic_cast(foo)) HandleASubclass1Object(foo); +// if (dynamic_cast(foo)) HandleASubclass2Object(foo); +// You should design the code some other way not to need this. +// +// This relatively ugly name is intentional. It prevents clashes with +// similar functions users may have (e.g., down_cast). The internal +// namespace alone is not enough because the function can be found by ADL. +template // use like this: DownCast_(foo); +inline To DownCast_(From* f) { // so we only accept pointers + // Ensures that To is a sub-type of From *. This test is here only + // for compile-time type checking, and has no overhead in an + // optimized build at run-time, as it will be optimized away + // completely. + if (false) { + const To to = NULL; + ::testing::internal::ImplicitCast_(to); + } + +#if GTEST_HAS_RTTI + // RTTI: debug mode only! + GTEST_CHECK_(f == NULL || dynamic_cast(f) != NULL); +#endif + return static_cast(f); +} + +// Downcasts the pointer of type Base to Derived. +// Derived must be a subclass of Base. The parameter MUST +// point to a class of type Derived, not any subclass of it. +// When RTTI is available, the function performs a runtime +// check to enforce this. +template +Derived* CheckedDowncastToActualType(Base* base) { +#if GTEST_HAS_RTTI + GTEST_CHECK_(typeid(*base) == typeid(Derived)); + return dynamic_cast(base); // NOLINT +#else + return static_cast(base); // Poor man's downcast. +#endif +} + +#if GTEST_HAS_STREAM_REDIRECTION + +// Defines the stderr capturer: +// CaptureStdout - starts capturing stdout. +// GetCapturedStdout - stops capturing stdout and returns the captured string. +// CaptureStderr - starts capturing stderr. +// GetCapturedStderr - stops capturing stderr and returns the captured string. +// +GTEST_API_ void CaptureStdout(); +GTEST_API_ std::string GetCapturedStdout(); +GTEST_API_ void CaptureStderr(); +GTEST_API_ std::string GetCapturedStderr(); + +#endif // GTEST_HAS_STREAM_REDIRECTION + + +#if GTEST_HAS_DEATH_TEST + +const ::std::vector& GetInjectableArgvs(); +void SetInjectableArgvs(const ::std::vector* + new_argvs); + +// A copy of all command line arguments. Set by InitGoogleTest(). +extern ::std::vector g_argvs; + +#endif // GTEST_HAS_DEATH_TEST + +// Defines synchronization primitives. + +#if GTEST_HAS_PTHREAD + +// Sleeps for (roughly) n milli-seconds. This function is only for +// testing Google Test's own constructs. Don't use it in user tests, +// either directly or indirectly. +inline void SleepMilliseconds(int n) { + const timespec time = { + 0, // 0 seconds. + n * 1000L * 1000L, // And n ms. + }; + nanosleep(&time, NULL); +} + +// Allows a controller thread to pause execution of newly created +// threads until notified. Instances of this class must be created +// and destroyed in the controller thread. +// +// This class is only for testing Google Test's own constructs. Do not +// use it in user tests, either directly or indirectly. +class Notification { + public: + Notification() : notified_(false) { + GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL)); + } + ~Notification() { + pthread_mutex_destroy(&mutex_); + } + + // Notifies all threads created with this notification to start. Must + // be called from the controller thread. + void Notify() { + pthread_mutex_lock(&mutex_); + notified_ = true; + pthread_mutex_unlock(&mutex_); + } + + // Blocks until the controller thread notifies. Must be called from a test + // thread. + void WaitForNotification() { + for (;;) { + pthread_mutex_lock(&mutex_); + const bool notified = notified_; + pthread_mutex_unlock(&mutex_); + if (notified) + break; + SleepMilliseconds(10); + } + } + + private: + pthread_mutex_t mutex_; + bool notified_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(Notification); +}; + +// As a C-function, ThreadFuncWithCLinkage cannot be templated itself. +// Consequently, it cannot select a correct instantiation of ThreadWithParam +// in order to call its Run(). Introducing ThreadWithParamBase as a +// non-templated base class for ThreadWithParam allows us to bypass this +// problem. +class ThreadWithParamBase { + public: + virtual ~ThreadWithParamBase() {} + virtual void Run() = 0; +}; + +// pthread_create() accepts a pointer to a function type with the C linkage. +// According to the Standard (7.5/1), function types with different linkages +// are different even if they are otherwise identical. Some compilers (for +// example, SunStudio) treat them as different types. Since class methods +// cannot be defined with C-linkage we need to define a free C-function to +// pass into pthread_create(). +extern "C" inline void* ThreadFuncWithCLinkage(void* thread) { + static_cast(thread)->Run(); + return NULL; +} + +// Helper class for testing Google Test's multi-threading constructs. +// To use it, write: +// +// void ThreadFunc(int param) { /* Do things with param */ } +// Notification thread_can_start; +// ... +// // The thread_can_start parameter is optional; you can supply NULL. +// ThreadWithParam thread(&ThreadFunc, 5, &thread_can_start); +// thread_can_start.Notify(); +// +// These classes are only for testing Google Test's own constructs. Do +// not use them in user tests, either directly or indirectly. +template +class ThreadWithParam : public ThreadWithParamBase { + public: + typedef void (*UserThreadFunc)(T); + + ThreadWithParam( + UserThreadFunc func, T param, Notification* thread_can_start) + : func_(func), + param_(param), + thread_can_start_(thread_can_start), + finished_(false) { + ThreadWithParamBase* const base = this; + // The thread can be created only after all fields except thread_ + // have been initialized. + GTEST_CHECK_POSIX_SUCCESS_( + pthread_create(&thread_, 0, &ThreadFuncWithCLinkage, base)); + } + ~ThreadWithParam() { Join(); } + + void Join() { + if (!finished_) { + GTEST_CHECK_POSIX_SUCCESS_(pthread_join(thread_, 0)); + finished_ = true; + } + } + + virtual void Run() { + if (thread_can_start_ != NULL) + thread_can_start_->WaitForNotification(); + func_(param_); + } + + private: + const UserThreadFunc func_; // User-supplied thread function. + const T param_; // User-supplied parameter to the thread function. + // When non-NULL, used to block execution until the controller thread + // notifies. + Notification* const thread_can_start_; + bool finished_; // true iff we know that the thread function has finished. + pthread_t thread_; // The native thread object. + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam); +}; + +// MutexBase and Mutex implement mutex on pthreads-based platforms. They +// are used in conjunction with class MutexLock: +// +// Mutex mutex; +// ... +// MutexLock lock(&mutex); // Acquires the mutex and releases it at the end +// // of the current scope. +// +// MutexBase implements behavior for both statically and dynamically +// allocated mutexes. Do not use MutexBase directly. Instead, write +// the following to define a static mutex: +// +// GTEST_DEFINE_STATIC_MUTEX_(g_some_mutex); +// +// You can forward declare a static mutex like this: +// +// GTEST_DECLARE_STATIC_MUTEX_(g_some_mutex); +// +// To create a dynamic mutex, just define an object of type Mutex. +class MutexBase { + public: + // Acquires this mutex. + void Lock() { + GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_)); + owner_ = pthread_self(); + has_owner_ = true; + } + + // Releases this mutex. + void Unlock() { + // Since the lock is being released the owner_ field should no longer be + // considered valid. We don't protect writing to has_owner_ here, as it's + // the caller's responsibility to ensure that the current thread holds the + // mutex when this is called. + has_owner_ = false; + GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&mutex_)); + } + + // Does nothing if the current thread holds the mutex. Otherwise, crashes + // with high probability. + void AssertHeld() const { + GTEST_CHECK_(has_owner_ && pthread_equal(owner_, pthread_self())) + << "The current thread is not holding the mutex @" << this; + } + + // A static mutex may be used before main() is entered. It may even + // be used before the dynamic initialization stage. Therefore we + // must be able to initialize a static mutex object at link time. + // This means MutexBase has to be a POD and its member variables + // have to be public. + public: + pthread_mutex_t mutex_; // The underlying pthread mutex. + // has_owner_ indicates whether the owner_ field below contains a valid thread + // ID and is therefore safe to inspect (e.g., to use in pthread_equal()). All + // accesses to the owner_ field should be protected by a check of this field. + // An alternative might be to memset() owner_ to all zeros, but there's no + // guarantee that a zero'd pthread_t is necessarily invalid or even different + // from pthread_self(). + bool has_owner_; + pthread_t owner_; // The thread holding the mutex. +}; + +// Forward-declares a static mutex. +# define GTEST_DECLARE_STATIC_MUTEX_(mutex) \ + extern ::testing::internal::MutexBase mutex + +// Defines and statically (i.e. at link time) initializes a static mutex. +// The initialization list here does not explicitly initialize each field, +// instead relying on default initialization for the unspecified fields. In +// particular, the owner_ field (a pthread_t) is not explicitly initialized. +// This allows initialization to work whether pthread_t is a scalar or struct. +// The flag -Wmissing-field-initializers must not be specified for this to work. +# define GTEST_DEFINE_STATIC_MUTEX_(mutex) \ + ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, false } + +// The Mutex class can only be used for mutexes created at runtime. It +// shares its API with MutexBase otherwise. +class Mutex : public MutexBase { + public: + Mutex() { + GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL)); + has_owner_ = false; + } + ~Mutex() { + GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&mutex_)); + } + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex); +}; + +// We cannot name this class MutexLock as the ctor declaration would +// conflict with a macro named MutexLock, which is defined on some +// platforms. Hence the typedef trick below. +class GTestMutexLock { + public: + explicit GTestMutexLock(MutexBase* mutex) + : mutex_(mutex) { mutex_->Lock(); } + + ~GTestMutexLock() { mutex_->Unlock(); } + + private: + MutexBase* const mutex_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestMutexLock); +}; + +typedef GTestMutexLock MutexLock; + +// Helpers for ThreadLocal. + +// pthread_key_create() requires DeleteThreadLocalValue() to have +// C-linkage. Therefore it cannot be templatized to access +// ThreadLocal. Hence the need for class +// ThreadLocalValueHolderBase. +class ThreadLocalValueHolderBase { + public: + virtual ~ThreadLocalValueHolderBase() {} +}; + +// Called by pthread to delete thread-local data stored by +// pthread_setspecific(). +extern "C" inline void DeleteThreadLocalValue(void* value_holder) { + delete static_cast(value_holder); +} + +// Implements thread-local storage on pthreads-based systems. +// +// // Thread 1 +// ThreadLocal tl(100); // 100 is the default value for each thread. +// +// // Thread 2 +// tl.set(150); // Changes the value for thread 2 only. +// EXPECT_EQ(150, tl.get()); +// +// // Thread 1 +// EXPECT_EQ(100, tl.get()); // In thread 1, tl has the original value. +// tl.set(200); +// EXPECT_EQ(200, tl.get()); +// +// The template type argument T must have a public copy constructor. +// In addition, the default ThreadLocal constructor requires T to have +// a public default constructor. +// +// An object managed for a thread by a ThreadLocal instance is deleted +// when the thread exits. Or, if the ThreadLocal instance dies in +// that thread, when the ThreadLocal dies. It's the user's +// responsibility to ensure that all other threads using a ThreadLocal +// have exited when it dies, or the per-thread objects for those +// threads will not be deleted. +// +// Google Test only uses global ThreadLocal objects. That means they +// will die after main() has returned. Therefore, no per-thread +// object managed by Google Test will be leaked as long as all threads +// using Google Test have exited when main() returns. +template +class ThreadLocal { + public: + ThreadLocal() : key_(CreateKey()), + default_() {} + explicit ThreadLocal(const T& value) : key_(CreateKey()), + default_(value) {} + + ~ThreadLocal() { + // Destroys the managed object for the current thread, if any. + DeleteThreadLocalValue(pthread_getspecific(key_)); + + // Releases resources associated with the key. This will *not* + // delete managed objects for other threads. + GTEST_CHECK_POSIX_SUCCESS_(pthread_key_delete(key_)); + } + + T* pointer() { return GetOrCreateValue(); } + const T* pointer() const { return GetOrCreateValue(); } + const T& get() const { return *pointer(); } + void set(const T& value) { *pointer() = value; } + + private: + // Holds a value of type T. + class ValueHolder : public ThreadLocalValueHolderBase { + public: + explicit ValueHolder(const T& value) : value_(value) {} + + T* pointer() { return &value_; } + + private: + T value_; + GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder); + }; + + static pthread_key_t CreateKey() { + pthread_key_t key; + // When a thread exits, DeleteThreadLocalValue() will be called on + // the object managed for that thread. + GTEST_CHECK_POSIX_SUCCESS_( + pthread_key_create(&key, &DeleteThreadLocalValue)); + return key; + } + + T* GetOrCreateValue() const { + ThreadLocalValueHolderBase* const holder = + static_cast(pthread_getspecific(key_)); + if (holder != NULL) { + return CheckedDowncastToActualType(holder)->pointer(); + } + + ValueHolder* const new_holder = new ValueHolder(default_); + ThreadLocalValueHolderBase* const holder_base = new_holder; + GTEST_CHECK_POSIX_SUCCESS_(pthread_setspecific(key_, holder_base)); + return new_holder->pointer(); + } + + // A key pthreads uses for looking up per-thread values. + const pthread_key_t key_; + const T default_; // The default value for each thread. + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal); +}; + +# define GTEST_IS_THREADSAFE 1 + +#else // GTEST_HAS_PTHREAD + +// A dummy implementation of synchronization primitives (mutex, lock, +// and thread-local variable). Necessary for compiling Google Test where +// mutex is not supported - using Google Test in multiple threads is not +// supported on such platforms. + +class Mutex { + public: + Mutex() {} + void Lock() {} + void Unlock() {} + void AssertHeld() const {} +}; + +# define GTEST_DECLARE_STATIC_MUTEX_(mutex) \ + extern ::testing::internal::Mutex mutex + +# define GTEST_DEFINE_STATIC_MUTEX_(mutex) ::testing::internal::Mutex mutex + +class GTestMutexLock { + public: + explicit GTestMutexLock(Mutex*) {} // NOLINT +}; + +typedef GTestMutexLock MutexLock; + +template +class ThreadLocal { + public: + ThreadLocal() : value_() {} + explicit ThreadLocal(const T& value) : value_(value) {} + T* pointer() { return &value_; } + const T* pointer() const { return &value_; } + const T& get() const { return value_; } + void set(const T& value) { value_ = value; } + private: + T value_; +}; + +// The above synchronization primitives have dummy implementations. +// Therefore Google Test is not thread-safe. +# define GTEST_IS_THREADSAFE 0 + +#endif // GTEST_HAS_PTHREAD + +// Returns the number of threads running in the process, or 0 to indicate that +// we cannot detect it. +GTEST_API_ size_t GetThreadCount(); + +// Passing non-POD classes through ellipsis (...) crashes the ARM +// compiler and generates a warning in Sun Studio. The Nokia Symbian +// and the IBM XL C/C++ compiler try to instantiate a copy constructor +// for objects passed through ellipsis (...), failing for uncopyable +// objects. We define this to ensure that only POD is passed through +// ellipsis on these systems. +#if defined(__SYMBIAN32__) || defined(__IBMCPP__) || defined(__SUNPRO_CC) +// We lose support for NULL detection where the compiler doesn't like +// passing non-POD classes through ellipsis (...). +# define GTEST_ELLIPSIS_NEEDS_POD_ 1 +#else +# define GTEST_CAN_COMPARE_NULL 1 +#endif + +// The Nokia Symbian and IBM XL C/C++ compilers cannot decide between +// const T& and const T* in a function template. These compilers +// _can_ decide between class template specializations for T and T*, +// so a tr1::type_traits-like is_pointer works. +#if defined(__SYMBIAN32__) || defined(__IBMCPP__) +# define GTEST_NEEDS_IS_POINTER_ 1 +#endif + +template +struct bool_constant { + typedef bool_constant type; + static const bool value = bool_value; +}; +template const bool bool_constant::value; + +typedef bool_constant false_type; +typedef bool_constant true_type; + +template +struct is_pointer : public false_type {}; + +template +struct is_pointer : public true_type {}; + +template +struct IteratorTraits { + typedef typename Iterator::value_type value_type; +}; + +template +struct IteratorTraits { + typedef T value_type; +}; + +template +struct IteratorTraits { + typedef T value_type; +}; + +#if GTEST_OS_WINDOWS +# define GTEST_PATH_SEP_ "\\" +# define GTEST_HAS_ALT_PATH_SEP_ 1 +// The biggest signed integer type the compiler supports. +typedef __int64 BiggestInt; +#else +# define GTEST_PATH_SEP_ "/" +# define GTEST_HAS_ALT_PATH_SEP_ 0 +typedef long long BiggestInt; // NOLINT +#endif // GTEST_OS_WINDOWS + +// Utilities for char. + +// isspace(int ch) and friends accept an unsigned char or EOF. char +// may be signed, depending on the compiler (or compiler flags). +// Therefore we need to cast a char to unsigned char before calling +// isspace(), etc. + +inline bool IsAlpha(char ch) { + return isalpha(static_cast(ch)) != 0; +} +inline bool IsAlNum(char ch) { + return isalnum(static_cast(ch)) != 0; +} +inline bool IsDigit(char ch) { + return isdigit(static_cast(ch)) != 0; +} +inline bool IsLower(char ch) { + return islower(static_cast(ch)) != 0; +} +inline bool IsSpace(char ch) { + return isspace(static_cast(ch)) != 0; +} +inline bool IsUpper(char ch) { + return isupper(static_cast(ch)) != 0; +} +inline bool IsXDigit(char ch) { + return isxdigit(static_cast(ch)) != 0; +} +inline bool IsXDigit(wchar_t ch) { + const unsigned char low_byte = static_cast(ch); + return ch == low_byte && isxdigit(low_byte) != 0; +} + +inline char ToLower(char ch) { + return static_cast(tolower(static_cast(ch))); +} +inline char ToUpper(char ch) { + return static_cast(toupper(static_cast(ch))); +} + +// The testing::internal::posix namespace holds wrappers for common +// POSIX functions. These wrappers hide the differences between +// Windows/MSVC and POSIX systems. Since some compilers define these +// standard functions as macros, the wrapper cannot have the same name +// as the wrapped function. + +namespace posix { + +// Functions with a different name on Windows. + +#if GTEST_OS_WINDOWS + +typedef struct _stat StatStruct; + +# ifdef __BORLANDC__ +inline int IsATTY(int fd) { return isatty(fd); } +inline int StrCaseCmp(const char* s1, const char* s2) { + return stricmp(s1, s2); +} +inline char* StrDup(const char* src) { return strdup(src); } +# else // !__BORLANDC__ +# if GTEST_OS_WINDOWS_MOBILE +inline int IsATTY(int /* fd */) { return 0; } +# else +inline int IsATTY(int fd) { return _isatty(fd); } +# endif // GTEST_OS_WINDOWS_MOBILE +inline int StrCaseCmp(const char* s1, const char* s2) { + return _stricmp(s1, s2); +} +inline char* StrDup(const char* src) { return _strdup(src); } +# endif // __BORLANDC__ + +# if GTEST_OS_WINDOWS_MOBILE +inline int FileNo(FILE* file) { return reinterpret_cast(_fileno(file)); } +// Stat(), RmDir(), and IsDir() are not needed on Windows CE at this +// time and thus not defined there. +# else +inline int FileNo(FILE* file) { return _fileno(file); } +inline int Stat(const char* path, StatStruct* buf) { return _stat(path, buf); } +inline int RmDir(const char* dir) { return _rmdir(dir); } +inline bool IsDir(const StatStruct& st) { + return (_S_IFDIR & st.st_mode) != 0; +} +# endif // GTEST_OS_WINDOWS_MOBILE + +#else + +typedef struct stat StatStruct; + +inline int FileNo(FILE* file) { return fileno(file); } +inline int IsATTY(int fd) { return isatty(fd); } +inline int Stat(const char* path, StatStruct* buf) { return stat(path, buf); } +inline int StrCaseCmp(const char* s1, const char* s2) { + return strcasecmp(s1, s2); +} +inline char* StrDup(const char* src) { return strdup(src); } +inline int RmDir(const char* dir) { return rmdir(dir); } +inline bool IsDir(const StatStruct& st) { return S_ISDIR(st.st_mode); } + +#endif // GTEST_OS_WINDOWS + +// Functions deprecated by MSVC 8.0. + +#ifdef _MSC_VER +// Temporarily disable warning 4996 (deprecated function). +# pragma warning(push) +# pragma warning(disable:4996) +#endif + +inline const char* StrNCpy(char* dest, const char* src, size_t n) { + return strncpy(dest, src, n); +} + +// ChDir(), FReopen(), FDOpen(), Read(), Write(), Close(), and +// StrError() aren't needed on Windows CE at this time and thus not +// defined there. + +#if !GTEST_OS_WINDOWS_MOBILE +inline int ChDir(const char* dir) { return chdir(dir); } +#endif +inline FILE* FOpen(const char* path, const char* mode) { + return fopen(path, mode); +} +#if !GTEST_OS_WINDOWS_MOBILE +inline FILE *FReopen(const char* path, const char* mode, FILE* stream) { + return freopen(path, mode, stream); +} +inline FILE* FDOpen(int fd, const char* mode) { return fdopen(fd, mode); } +#endif +inline int FClose(FILE* fp) { return fclose(fp); } +#if !GTEST_OS_WINDOWS_MOBILE +inline int Read(int fd, void* buf, unsigned int count) { + return static_cast(read(fd, buf, count)); +} +inline int Write(int fd, const void* buf, unsigned int count) { + return static_cast(write(fd, buf, count)); +} +inline int Close(int fd) { return close(fd); } +inline const char* StrError(int errnum) { return strerror(errnum); } +#endif +inline const char* GetEnv(const char* name) { +#if GTEST_OS_WINDOWS_MOBILE + // We are on Windows CE, which has no environment variables. + return NULL; +#elif defined(__BORLANDC__) || defined(__SunOS_5_8) || defined(__SunOS_5_9) + // Environment variables which we programmatically clear will be set to the + // empty string rather than unset (NULL). Handle that case. + const char* const env = getenv(name); + return (env != NULL && env[0] != '\0') ? env : NULL; +#else + return getenv(name); +#endif +} + +#ifdef _MSC_VER +# pragma warning(pop) // Restores the warning state. +#endif + +#if GTEST_OS_WINDOWS_MOBILE +// Windows CE has no C library. The abort() function is used in +// several places in Google Test. This implementation provides a reasonable +// imitation of standard behaviour. +void Abort(); +#else +inline void Abort() { abort(); } +#endif // GTEST_OS_WINDOWS_MOBILE + +} // namespace posix + +// MSVC "deprecates" snprintf and issues warnings wherever it is used. In +// order to avoid these warnings, we need to use _snprintf or _snprintf_s on +// MSVC-based platforms. We map the GTEST_SNPRINTF_ macro to the appropriate +// function in order to achieve that. We use macro definition here because +// snprintf is a variadic function. +#if _MSC_VER >= 1400 && !GTEST_OS_WINDOWS_MOBILE +// MSVC 2005 and above support variadic macros. +# define GTEST_SNPRINTF_(buffer, size, format, ...) \ + _snprintf_s(buffer, size, size, format, __VA_ARGS__) +#elif defined(_MSC_VER) +// Windows CE does not define _snprintf_s and MSVC prior to 2005 doesn't +// complain about _snprintf. +# define GTEST_SNPRINTF_ _snprintf +#else +# define GTEST_SNPRINTF_ snprintf +#endif + +// The maximum number a BiggestInt can represent. This definition +// works no matter BiggestInt is represented in one's complement or +// two's complement. +// +// We cannot rely on numeric_limits in STL, as __int64 and long long +// are not part of standard C++ and numeric_limits doesn't need to be +// defined for them. +const BiggestInt kMaxBiggestInt = + ~(static_cast(1) << (8*sizeof(BiggestInt) - 1)); + +// This template class serves as a compile-time function from size to +// type. It maps a size in bytes to a primitive type with that +// size. e.g. +// +// TypeWithSize<4>::UInt +// +// is typedef-ed to be unsigned int (unsigned integer made up of 4 +// bytes). +// +// Such functionality should belong to STL, but I cannot find it +// there. +// +// Google Test uses this class in the implementation of floating-point +// comparison. +// +// For now it only handles UInt (unsigned int) as that's all Google Test +// needs. Other types can be easily added in the future if need +// arises. +template +class TypeWithSize { + public: + // This prevents the user from using TypeWithSize with incorrect + // values of N. + typedef void UInt; +}; + +// The specialization for size 4. +template <> +class TypeWithSize<4> { + public: + // unsigned int has size 4 in both gcc and MSVC. + // + // As base/basictypes.h doesn't compile on Windows, we cannot use + // uint32, uint64, and etc here. + typedef int Int; + typedef unsigned int UInt; +}; + +// The specialization for size 8. +template <> +class TypeWithSize<8> { + public: +#if GTEST_OS_WINDOWS + typedef __int64 Int; + typedef unsigned __int64 UInt; +#else + typedef long long Int; // NOLINT + typedef unsigned long long UInt; // NOLINT +#endif // GTEST_OS_WINDOWS +}; + +// Integer types of known sizes. +typedef TypeWithSize<4>::Int Int32; +typedef TypeWithSize<4>::UInt UInt32; +typedef TypeWithSize<8>::Int Int64; +typedef TypeWithSize<8>::UInt UInt64; +typedef TypeWithSize<8>::Int TimeInMillis; // Represents time in milliseconds. + +// Utilities for command line flags and environment variables. + +// Macro for referencing flags. +#define GTEST_FLAG(name) FLAGS_gtest_##name + +// Macros for declaring flags. +#define GTEST_DECLARE_bool_(name) GTEST_API_ extern bool GTEST_FLAG(name) +#define GTEST_DECLARE_int32_(name) \ + GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name) +#define GTEST_DECLARE_string_(name) \ + GTEST_API_ extern ::std::string GTEST_FLAG(name) + +// Macros for defining flags. +#define GTEST_DEFINE_bool_(name, default_val, doc) \ + GTEST_API_ bool GTEST_FLAG(name) = (default_val) +#define GTEST_DEFINE_int32_(name, default_val, doc) \ + GTEST_API_ ::testing::internal::Int32 GTEST_FLAG(name) = (default_val) +#define GTEST_DEFINE_string_(name, default_val, doc) \ + GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val) + +// Thread annotations +#define GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks) +#define GTEST_LOCK_EXCLUDED_(locks) + +// Parses 'str' for a 32-bit signed integer. If successful, writes the result +// to *value and returns true; otherwise leaves *value unchanged and returns +// false. +// TODO(chandlerc): Find a better way to refactor flag and environment parsing +// out of both gtest-port.cc and gtest.cc to avoid exporting this utility +// function. +bool ParseInt32(const Message& src_text, const char* str, Int32* value); + +// Parses a bool/Int32/string from the environment variable +// corresponding to the given Google Test flag. +bool BoolFromGTestEnv(const char* flag, bool default_val); +GTEST_API_ Int32 Int32FromGTestEnv(const char* flag, Int32 default_val); +const char* StringFromGTestEnv(const char* flag, const char* default_val); + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ + +#if GTEST_OS_LINUX +# include +# include +# include +# include +#endif // GTEST_OS_LINUX + +#if GTEST_HAS_EXCEPTIONS +# include +#endif + +#include +#include +#include +#include +#include +#include + +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) +// +// The Google C++ Testing Framework (Google Test) +// +// This header file defines the Message class. +// +// IMPORTANT NOTE: Due to limitation of the C++ language, we have to +// leave some internal implementation details in this header file. +// They are clearly marked by comments like this: +// +// // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +// +// Such code is NOT meant to be used by a user directly, and is subject +// to CHANGE WITHOUT NOTICE. Therefore DO NOT DEPEND ON IT in a user +// program! + +#ifndef GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ +#define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ + +#include + + +// Ensures that there is at least one operator<< in the global namespace. +// See Message& operator<<(...) below for why. +void operator<<(const testing::internal::Secret&, int); + +namespace testing { + +// The Message class works like an ostream repeater. +// +// Typical usage: +// +// 1. You stream a bunch of values to a Message object. +// It will remember the text in a stringstream. +// 2. Then you stream the Message object to an ostream. +// This causes the text in the Message to be streamed +// to the ostream. +// +// For example; +// +// testing::Message foo; +// foo << 1 << " != " << 2; +// std::cout << foo; +// +// will print "1 != 2". +// +// Message is not intended to be inherited from. In particular, its +// destructor is not virtual. +// +// Note that stringstream behaves differently in gcc and in MSVC. You +// can stream a NULL char pointer to it in the former, but not in the +// latter (it causes an access violation if you do). The Message +// class hides this difference by treating a NULL char pointer as +// "(null)". +class GTEST_API_ Message { + private: + // The type of basic IO manipulators (endl, ends, and flush) for + // narrow streams. + typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&); + + public: + // Constructs an empty Message. + Message(); + + // Copy constructor. + Message(const Message& msg) : ss_(new ::std::stringstream) { // NOLINT + *ss_ << msg.GetString(); + } + + // Constructs a Message from a C-string. + explicit Message(const char* str) : ss_(new ::std::stringstream) { + *ss_ << str; + } + +#if GTEST_OS_SYMBIAN + // Streams a value (either a pointer or not) to this object. + template + inline Message& operator <<(const T& value) { + StreamHelper(typename internal::is_pointer::type(), value); + return *this; + } +#else + // Streams a non-pointer value to this object. + template + inline Message& operator <<(const T& val) { + // Some libraries overload << for STL containers. These + // overloads are defined in the global namespace instead of ::std. + // + // C++'s symbol lookup rule (i.e. Koenig lookup) says that these + // overloads are visible in either the std namespace or the global + // namespace, but not other namespaces, including the testing + // namespace which Google Test's Message class is in. + // + // To allow STL containers (and other types that has a << operator + // defined in the global namespace) to be used in Google Test + // assertions, testing::Message must access the custom << operator + // from the global namespace. With this using declaration, + // overloads of << defined in the global namespace and those + // visible via Koenig lookup are both exposed in this function. + using ::operator <<; + *ss_ << val; + return *this; + } + + // Streams a pointer value to this object. + // + // This function is an overload of the previous one. When you + // stream a pointer to a Message, this definition will be used as it + // is more specialized. (The C++ Standard, section + // [temp.func.order].) If you stream a non-pointer, then the + // previous definition will be used. + // + // The reason for this overload is that streaming a NULL pointer to + // ostream is undefined behavior. Depending on the compiler, you + // may get "0", "(nil)", "(null)", or an access violation. To + // ensure consistent result across compilers, we always treat NULL + // as "(null)". + template + inline Message& operator <<(T* const& pointer) { // NOLINT + if (pointer == NULL) { + *ss_ << "(null)"; + } else { + *ss_ << pointer; + } + return *this; + } +#endif // GTEST_OS_SYMBIAN + + // Since the basic IO manipulators are overloaded for both narrow + // and wide streams, we have to provide this specialized definition + // of operator <<, even though its body is the same as the + // templatized version above. Without this definition, streaming + // endl or other basic IO manipulators to Message will confuse the + // compiler. + Message& operator <<(BasicNarrowIoManip val) { + *ss_ << val; + return *this; + } + + // Instead of 1/0, we want to see true/false for bool values. + Message& operator <<(bool b) { + return *this << (b ? "true" : "false"); + } + + // These two overloads allow streaming a wide C string to a Message + // using the UTF-8 encoding. + Message& operator <<(const wchar_t* wide_c_str); + Message& operator <<(wchar_t* wide_c_str); + +#if GTEST_HAS_STD_WSTRING + // Converts the given wide string to a narrow string using the UTF-8 + // encoding, and streams the result to this Message object. + Message& operator <<(const ::std::wstring& wstr); +#endif // GTEST_HAS_STD_WSTRING + +#if GTEST_HAS_GLOBAL_WSTRING + // Converts the given wide string to a narrow string using the UTF-8 + // encoding, and streams the result to this Message object. + Message& operator <<(const ::wstring& wstr); +#endif // GTEST_HAS_GLOBAL_WSTRING + + // Gets the text streamed to this object so far as an std::string. + // Each '\0' character in the buffer is replaced with "\\0". + // + // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. + std::string GetString() const; + + private: + +#if GTEST_OS_SYMBIAN + // These are needed as the Nokia Symbian Compiler cannot decide between + // const T& and const T* in a function template. The Nokia compiler _can_ + // decide between class template specializations for T and T*, so a + // tr1::type_traits-like is_pointer works, and we can overload on that. + template + inline void StreamHelper(internal::true_type /*is_pointer*/, T* pointer) { + if (pointer == NULL) { + *ss_ << "(null)"; + } else { + *ss_ << pointer; + } + } + template + inline void StreamHelper(internal::false_type /*is_pointer*/, + const T& value) { + // See the comments in Message& operator <<(const T&) above for why + // we need this using statement. + using ::operator <<; + *ss_ << value; + } +#endif // GTEST_OS_SYMBIAN + + // We'll hold the text streamed to this object here. + const internal::scoped_ptr< ::std::stringstream> ss_; + + // We declare (but don't implement) this to prevent the compiler + // from implementing the assignment operator. + void operator=(const Message&); +}; + +// Streams a Message to an ostream. +inline std::ostream& operator <<(std::ostream& os, const Message& sb) { + return os << sb.GetString(); +} + +namespace internal { + +// Converts a streamable value to an std::string. A NULL pointer is +// converted to "(null)". When the input value is a ::string, +// ::std::string, ::wstring, or ::std::wstring object, each NUL +// character in it is replaced with "\\0". +template +std::string StreamableToString(const T& streamable) { + return (Message() << streamable).GetString(); +} + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: wan@google.com (Zhanyong Wan), eefacm@gmail.com (Sean Mcafee) +// +// The Google C++ Testing Framework (Google Test) +// +// This header file declares the String class and functions used internally by +// Google Test. They are subject to change without notice. They should not used +// by code external to Google Test. +// +// This header file is #included by . +// It should not be #included by other files. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_ + +#ifdef __BORLANDC__ +// string.h is not guaranteed to provide strcpy on C++ Builder. +# include +#endif + +#include +#include + + +namespace testing { +namespace internal { + +// String - an abstract class holding static string utilities. +class GTEST_API_ String { + public: + // Static utility methods + + // Clones a 0-terminated C string, allocating memory using new. The + // caller is responsible for deleting the return value using + // delete[]. Returns the cloned string, or NULL if the input is + // NULL. + // + // This is different from strdup() in string.h, which allocates + // memory using malloc(). + static const char* CloneCString(const char* c_str); + +#if GTEST_OS_WINDOWS_MOBILE + // Windows CE does not have the 'ANSI' versions of Win32 APIs. To be + // able to pass strings to Win32 APIs on CE we need to convert them + // to 'Unicode', UTF-16. + + // Creates a UTF-16 wide string from the given ANSI string, allocating + // memory using new. The caller is responsible for deleting the return + // value using delete[]. Returns the wide string, or NULL if the + // input is NULL. + // + // The wide string is created using the ANSI codepage (CP_ACP) to + // match the behaviour of the ANSI versions of Win32 calls and the + // C runtime. + static LPCWSTR AnsiToUtf16(const char* c_str); + + // Creates an ANSI string from the given wide string, allocating + // memory using new. The caller is responsible for deleting the return + // value using delete[]. Returns the ANSI string, or NULL if the + // input is NULL. + // + // The returned string is created using the ANSI codepage (CP_ACP) to + // match the behaviour of the ANSI versions of Win32 calls and the + // C runtime. + static const char* Utf16ToAnsi(LPCWSTR utf16_str); +#endif + + // Compares two C strings. Returns true iff they have the same content. + // + // Unlike strcmp(), this function can handle NULL argument(s). A + // NULL C string is considered different to any non-NULL C string, + // including the empty string. + static bool CStringEquals(const char* lhs, const char* rhs); + + // Converts a wide C string to a String using the UTF-8 encoding. + // NULL will be converted to "(null)". If an error occurred during + // the conversion, "(failed to convert from wide string)" is + // returned. + static std::string ShowWideCString(const wchar_t* wide_c_str); + + // Compares two wide C strings. Returns true iff they have the same + // content. + // + // Unlike wcscmp(), this function can handle NULL argument(s). A + // NULL C string is considered different to any non-NULL C string, + // including the empty string. + static bool WideCStringEquals(const wchar_t* lhs, const wchar_t* rhs); + + // Compares two C strings, ignoring case. Returns true iff they + // have the same content. + // + // Unlike strcasecmp(), this function can handle NULL argument(s). + // A NULL C string is considered different to any non-NULL C string, + // including the empty string. + static bool CaseInsensitiveCStringEquals(const char* lhs, + const char* rhs); + + // Compares two wide C strings, ignoring case. Returns true iff they + // have the same content. + // + // Unlike wcscasecmp(), this function can handle NULL argument(s). + // A NULL C string is considered different to any non-NULL wide C string, + // including the empty string. + // NB: The implementations on different platforms slightly differ. + // On windows, this method uses _wcsicmp which compares according to LC_CTYPE + // environment variable. On GNU platform this method uses wcscasecmp + // which compares according to LC_CTYPE category of the current locale. + // On MacOS X, it uses towlower, which also uses LC_CTYPE category of the + // current locale. + static bool CaseInsensitiveWideCStringEquals(const wchar_t* lhs, + const wchar_t* rhs); + + // Returns true iff the given string ends with the given suffix, ignoring + // case. Any string is considered to end with an empty suffix. + static bool EndsWithCaseInsensitive( + const std::string& str, const std::string& suffix); + + // Formats an int value as "%02d". + static std::string FormatIntWidth2(int value); // "%02d" for width == 2 + + // Formats an int value as "%X". + static std::string FormatHexInt(int value); + + // Formats a byte as "%02X". + static std::string FormatByte(unsigned char value); + + private: + String(); // Not meant to be instantiated. +}; // class String + +// Gets the content of the stringstream's buffer as an std::string. Each '\0' +// character in the buffer is replaced with "\\0". +GTEST_API_ std::string StringStreamToString(::std::stringstream* stream); + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_ +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: keith.ray@gmail.com (Keith Ray) +// +// Google Test filepath utilities +// +// This header file declares classes and functions used internally by +// Google Test. They are subject to change without notice. +// +// This file is #included in . +// Do not include this header file separately! + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ + + +namespace testing { +namespace internal { + +// FilePath - a class for file and directory pathname manipulation which +// handles platform-specific conventions (like the pathname separator). +// Used for helper functions for naming files in a directory for xml output. +// Except for Set methods, all methods are const or static, which provides an +// "immutable value object" -- useful for peace of mind. +// A FilePath with a value ending in a path separator ("like/this/") represents +// a directory, otherwise it is assumed to represent a file. In either case, +// it may or may not represent an actual file or directory in the file system. +// Names are NOT checked for syntax correctness -- no checking for illegal +// characters, malformed paths, etc. + +class GTEST_API_ FilePath { + public: + FilePath() : pathname_("") { } + FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } + + explicit FilePath(const std::string& pathname) : pathname_(pathname) { + Normalize(); + } + + FilePath& operator=(const FilePath& rhs) { + Set(rhs); + return *this; + } + + void Set(const FilePath& rhs) { + pathname_ = rhs.pathname_; + } + + const std::string& string() const { return pathname_; } + const char* c_str() const { return pathname_.c_str(); } + + // Returns the current working directory, or "" if unsuccessful. + static FilePath GetCurrentDir(); + + // Given directory = "dir", base_name = "test", number = 0, + // extension = "xml", returns "dir/test.xml". If number is greater + // than zero (e.g., 12), returns "dir/test_12.xml". + // On Windows platform, uses \ as the separator rather than /. + static FilePath MakeFileName(const FilePath& directory, + const FilePath& base_name, + int number, + const char* extension); + + // Given directory = "dir", relative_path = "test.xml", + // returns "dir/test.xml". + // On Windows, uses \ as the separator rather than /. + static FilePath ConcatPaths(const FilePath& directory, + const FilePath& relative_path); + + // Returns a pathname for a file that does not currently exist. The pathname + // will be directory/base_name.extension or + // directory/base_name_.extension if directory/base_name.extension + // already exists. The number will be incremented until a pathname is found + // that does not already exist. + // Examples: 'dir/foo_test.xml' or 'dir/foo_test_1.xml'. + // There could be a race condition if two or more processes are calling this + // function at the same time -- they could both pick the same filename. + static FilePath GenerateUniqueFileName(const FilePath& directory, + const FilePath& base_name, + const char* extension); + + // Returns true iff the path is "". + bool IsEmpty() const { return pathname_.empty(); } + + // If input name has a trailing separator character, removes it and returns + // the name, otherwise return the name string unmodified. + // On Windows platform, uses \ as the separator, other platforms use /. + FilePath RemoveTrailingPathSeparator() const; + + // Returns a copy of the FilePath with the directory part removed. + // Example: FilePath("path/to/file").RemoveDirectoryName() returns + // FilePath("file"). If there is no directory part ("just_a_file"), it returns + // the FilePath unmodified. If there is no file part ("just_a_dir/") it + // returns an empty FilePath (""). + // On Windows platform, '\' is the path separator, otherwise it is '/'. + FilePath RemoveDirectoryName() const; + + // RemoveFileName returns the directory path with the filename removed. + // Example: FilePath("path/to/file").RemoveFileName() returns "path/to/". + // If the FilePath is "a_file" or "/a_file", RemoveFileName returns + // FilePath("./") or, on Windows, FilePath(".\\"). If the filepath does + // not have a file, like "just/a/dir/", it returns the FilePath unmodified. + // On Windows platform, '\' is the path separator, otherwise it is '/'. + FilePath RemoveFileName() const; + + // Returns a copy of the FilePath with the case-insensitive extension removed. + // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns + // FilePath("dir/file"). If a case-insensitive extension is not + // found, returns a copy of the original FilePath. + FilePath RemoveExtension(const char* extension) const; + + // Creates directories so that path exists. Returns true if successful or if + // the directories already exist; returns false if unable to create + // directories for any reason. Will also return false if the FilePath does + // not represent a directory (that is, it doesn't end with a path separator). + bool CreateDirectoriesRecursively() const; + + // Create the directory so that path exists. Returns true if successful or + // if the directory already exists; returns false if unable to create the + // directory for any reason, including if the parent directory does not + // exist. Not named "CreateDirectory" because that's a macro on Windows. + bool CreateFolder() const; + + // Returns true if FilePath describes something in the file-system, + // either a file, directory, or whatever, and that something exists. + bool FileOrDirectoryExists() const; + + // Returns true if pathname describes a directory in the file-system + // that exists. + bool DirectoryExists() const; + + // Returns true if FilePath ends with a path separator, which indicates that + // it is intended to represent a directory. Returns false otherwise. + // This does NOT check that a directory (or file) actually exists. + bool IsDirectory() const; + + // Returns true if pathname describes a root directory. (Windows has one + // root directory per disk drive.) + bool IsRootDirectory() const; + + // Returns true if pathname describes an absolute path. + bool IsAbsolutePath() const; + + private: + // Replaces multiple consecutive separators with a single separator. + // For example, "bar///foo" becomes "bar/foo". Does not eliminate other + // redundancies that might be in a pathname involving "." or "..". + // + // A pathname with multiple consecutive separators may occur either through + // user error or as a result of some scripts or APIs that generate a pathname + // with a trailing separator. On other platforms the same API or script + // may NOT generate a pathname with a trailing "/". Then elsewhere that + // pathname may have another "/" and pathname components added to it, + // without checking for the separator already being there. + // The script language and operating system may allow paths like "foo//bar" + // but some of the functions in FilePath will not handle that correctly. In + // particular, RemoveTrailingPathSeparator() only removes one separator, and + // it is called in CreateDirectoriesRecursively() assuming that it will change + // a pathname from directory syntax (trailing separator) to filename syntax. + // + // On Windows this method also replaces the alternate path separator '/' with + // the primary path separator '\\', so that for example "bar\\/\\foo" becomes + // "bar\\foo". + + void Normalize(); + + // Returns a pointer to the last occurence of a valid path separator in + // the FilePath. On Windows, for example, both '/' and '\' are valid path + // separators. Returns NULL if no path separator was found. + const char* FindLastPathSeparator() const; + + std::string pathname_; +}; // class FilePath + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ +// This file was GENERATED by command: +// pump.py gtest-type-util.h.pump +// DO NOT EDIT BY HAND!!! + +// Copyright 2008 Google Inc. +// All Rights Reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + +// Type utilities needed for implementing typed and type-parameterized +// tests. This file is generated by a SCRIPT. DO NOT EDIT BY HAND! +// +// Currently we support at most 50 types in a list, and at most 50 +// type-parameterized tests in one type-parameterized test case. +// Please contact googletestframework@googlegroups.com if you need +// more. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ + + +// #ifdef __GNUC__ is too general here. It is possible to use gcc without using +// libstdc++ (which is where cxxabi.h comes from). +# if GTEST_HAS_CXXABI_H_ +# include +# elif defined(__HP_aCC) +# include +# endif // GTEST_HASH_CXXABI_H_ + +namespace testing { +namespace internal { + +// GetTypeName() returns a human-readable name of type T. +// NB: This function is also used in Google Mock, so don't move it inside of +// the typed-test-only section below. +template +std::string GetTypeName() { +# if GTEST_HAS_RTTI + + const char* const name = typeid(T).name(); +# if GTEST_HAS_CXXABI_H_ || defined(__HP_aCC) + int status = 0; + // gcc's implementation of typeid(T).name() mangles the type name, + // so we have to demangle it. +# if GTEST_HAS_CXXABI_H_ + using abi::__cxa_demangle; +# endif // GTEST_HAS_CXXABI_H_ + char* const readable_name = __cxa_demangle(name, 0, 0, &status); + const std::string name_str(status == 0 ? readable_name : name); + free(readable_name); + return name_str; +# else + return name; +# endif // GTEST_HAS_CXXABI_H_ || __HP_aCC + +# else + + return ""; + +# endif // GTEST_HAS_RTTI +} + +#if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P + +// AssertyTypeEq::type is defined iff T1 and T2 are the same +// type. This can be used as a compile-time assertion to ensure that +// two types are equal. + +template +struct AssertTypeEq; + +template +struct AssertTypeEq { + typedef bool type; +}; + +// A unique type used as the default value for the arguments of class +// template Types. This allows us to simulate variadic templates +// (e.g. Types, Type, and etc), which C++ doesn't +// support directly. +struct None {}; + +// The following family of struct and struct templates are used to +// represent type lists. In particular, TypesN +// represents a type list with N types (T1, T2, ..., and TN) in it. +// Except for Types0, every struct in the family has two member types: +// Head for the first type in the list, and Tail for the rest of the +// list. + +// The empty type list. +struct Types0 {}; + +// Type lists of length 1, 2, 3, and so on. + +template +struct Types1 { + typedef T1 Head; + typedef Types0 Tail; +}; +template +struct Types2 { + typedef T1 Head; + typedef Types1 Tail; +}; + +template +struct Types3 { + typedef T1 Head; + typedef Types2 Tail; +}; + +template +struct Types4 { + typedef T1 Head; + typedef Types3 Tail; +}; + +template +struct Types5 { + typedef T1 Head; + typedef Types4 Tail; +}; + +template +struct Types6 { + typedef T1 Head; + typedef Types5 Tail; +}; + +template +struct Types7 { + typedef T1 Head; + typedef Types6 Tail; +}; + +template +struct Types8 { + typedef T1 Head; + typedef Types7 Tail; +}; + +template +struct Types9 { + typedef T1 Head; + typedef Types8 Tail; +}; + +template +struct Types10 { + typedef T1 Head; + typedef Types9 Tail; +}; + +template +struct Types11 { + typedef T1 Head; + typedef Types10 Tail; +}; + +template +struct Types12 { + typedef T1 Head; + typedef Types11 Tail; +}; + +template +struct Types13 { + typedef T1 Head; + typedef Types12 Tail; +}; + +template +struct Types14 { + typedef T1 Head; + typedef Types13 Tail; +}; + +template +struct Types15 { + typedef T1 Head; + typedef Types14 Tail; +}; + +template +struct Types16 { + typedef T1 Head; + typedef Types15 Tail; +}; + +template +struct Types17 { + typedef T1 Head; + typedef Types16 Tail; +}; + +template +struct Types18 { + typedef T1 Head; + typedef Types17 Tail; +}; + +template +struct Types19 { + typedef T1 Head; + typedef Types18 Tail; +}; + +template +struct Types20 { + typedef T1 Head; + typedef Types19 Tail; +}; + +template +struct Types21 { + typedef T1 Head; + typedef Types20 Tail; +}; + +template +struct Types22 { + typedef T1 Head; + typedef Types21 Tail; +}; + +template +struct Types23 { + typedef T1 Head; + typedef Types22 Tail; +}; + +template +struct Types24 { + typedef T1 Head; + typedef Types23 Tail; +}; + +template +struct Types25 { + typedef T1 Head; + typedef Types24 Tail; +}; + +template +struct Types26 { + typedef T1 Head; + typedef Types25 Tail; +}; + +template +struct Types27 { + typedef T1 Head; + typedef Types26 Tail; +}; + +template +struct Types28 { + typedef T1 Head; + typedef Types27 Tail; +}; + +template +struct Types29 { + typedef T1 Head; + typedef Types28 Tail; +}; + +template +struct Types30 { + typedef T1 Head; + typedef Types29 Tail; +}; + +template +struct Types31 { + typedef T1 Head; + typedef Types30 Tail; +}; + +template +struct Types32 { + typedef T1 Head; + typedef Types31 Tail; +}; + +template +struct Types33 { + typedef T1 Head; + typedef Types32 Tail; +}; + +template +struct Types34 { + typedef T1 Head; + typedef Types33 Tail; +}; + +template +struct Types35 { + typedef T1 Head; + typedef Types34 Tail; +}; + +template +struct Types36 { + typedef T1 Head; + typedef Types35 Tail; +}; + +template +struct Types37 { + typedef T1 Head; + typedef Types36 Tail; +}; + +template +struct Types38 { + typedef T1 Head; + typedef Types37 Tail; +}; + +template +struct Types39 { + typedef T1 Head; + typedef Types38 Tail; +}; + +template +struct Types40 { + typedef T1 Head; + typedef Types39 Tail; +}; + +template +struct Types41 { + typedef T1 Head; + typedef Types40 Tail; +}; + +template +struct Types42 { + typedef T1 Head; + typedef Types41 Tail; +}; + +template +struct Types43 { + typedef T1 Head; + typedef Types42 Tail; +}; + +template +struct Types44 { + typedef T1 Head; + typedef Types43 Tail; +}; + +template +struct Types45 { + typedef T1 Head; + typedef Types44 Tail; +}; + +template +struct Types46 { + typedef T1 Head; + typedef Types45 Tail; +}; + +template +struct Types47 { + typedef T1 Head; + typedef Types46 Tail; +}; + +template +struct Types48 { + typedef T1 Head; + typedef Types47 Tail; +}; + +template +struct Types49 { + typedef T1 Head; + typedef Types48 Tail; +}; + +template +struct Types50 { + typedef T1 Head; + typedef Types49 Tail; +}; + + +} // namespace internal + +// We don't want to require the users to write TypesN<...> directly, +// as that would require them to count the length. Types<...> is much +// easier to write, but generates horrible messages when there is a +// compiler error, as gcc insists on printing out each template +// argument, even if it has the default value (this means Types +// will appear as Types in the compiler +// errors). +// +// Our solution is to combine the best part of the two approaches: a +// user would write Types, and Google Test will translate +// that to TypesN internally to make error messages +// readable. The translation is done by the 'type' member of the +// Types template. +template +struct Types { + typedef internal::Types50 type; +}; + +template <> +struct Types { + typedef internal::Types0 type; +}; +template +struct Types { + typedef internal::Types1 type; +}; +template +struct Types { + typedef internal::Types2 type; +}; +template +struct Types { + typedef internal::Types3 type; +}; +template +struct Types { + typedef internal::Types4 type; +}; +template +struct Types { + typedef internal::Types5 type; +}; +template +struct Types { + typedef internal::Types6 type; +}; +template +struct Types { + typedef internal::Types7 type; +}; +template +struct Types { + typedef internal::Types8 type; +}; +template +struct Types { + typedef internal::Types9 type; +}; +template +struct Types { + typedef internal::Types10 type; +}; +template +struct Types { + typedef internal::Types11 type; +}; +template +struct Types { + typedef internal::Types12 type; +}; +template +struct Types { + typedef internal::Types13 type; +}; +template +struct Types { + typedef internal::Types14 type; +}; +template +struct Types { + typedef internal::Types15 type; +}; +template +struct Types { + typedef internal::Types16 type; +}; +template +struct Types { + typedef internal::Types17 type; +}; +template +struct Types { + typedef internal::Types18 type; +}; +template +struct Types { + typedef internal::Types19 type; +}; +template +struct Types { + typedef internal::Types20 type; +}; +template +struct Types { + typedef internal::Types21 type; +}; +template +struct Types { + typedef internal::Types22 type; +}; +template +struct Types { + typedef internal::Types23 type; +}; +template +struct Types { + typedef internal::Types24 type; +}; +template +struct Types { + typedef internal::Types25 type; +}; +template +struct Types { + typedef internal::Types26 type; +}; +template +struct Types { + typedef internal::Types27 type; +}; +template +struct Types { + typedef internal::Types28 type; +}; +template +struct Types { + typedef internal::Types29 type; +}; +template +struct Types { + typedef internal::Types30 type; +}; +template +struct Types { + typedef internal::Types31 type; +}; +template +struct Types { + typedef internal::Types32 type; +}; +template +struct Types { + typedef internal::Types33 type; +}; +template +struct Types { + typedef internal::Types34 type; +}; +template +struct Types { + typedef internal::Types35 type; +}; +template +struct Types { + typedef internal::Types36 type; +}; +template +struct Types { + typedef internal::Types37 type; +}; +template +struct Types { + typedef internal::Types38 type; +}; +template +struct Types { + typedef internal::Types39 type; +}; +template +struct Types { + typedef internal::Types40 type; +}; +template +struct Types { + typedef internal::Types41 type; +}; +template +struct Types { + typedef internal::Types42 type; +}; +template +struct Types { + typedef internal::Types43 type; +}; +template +struct Types { + typedef internal::Types44 type; +}; +template +struct Types { + typedef internal::Types45 type; +}; +template +struct Types { + typedef internal::Types46 type; +}; +template +struct Types { + typedef internal::Types47 type; +}; +template +struct Types { + typedef internal::Types48 type; +}; +template +struct Types { + typedef internal::Types49 type; +}; + +namespace internal { + +# define GTEST_TEMPLATE_ template class + +// The template "selector" struct TemplateSel is used to +// represent Tmpl, which must be a class template with one type +// parameter, as a type. TemplateSel::Bind::type is defined +// as the type Tmpl. This allows us to actually instantiate the +// template "selected" by TemplateSel. +// +// This trick is necessary for simulating typedef for class templates, +// which C++ doesn't support directly. +template +struct TemplateSel { + template + struct Bind { + typedef Tmpl type; + }; +}; + +# define GTEST_BIND_(TmplSel, T) \ + TmplSel::template Bind::type + +// A unique struct template used as the default value for the +// arguments of class template Templates. This allows us to simulate +// variadic templates (e.g. Templates, Templates, +// and etc), which C++ doesn't support directly. +template +struct NoneT {}; + +// The following family of struct and struct templates are used to +// represent template lists. In particular, TemplatesN represents a list of N templates (T1, T2, ..., and TN). Except +// for Templates0, every struct in the family has two member types: +// Head for the selector of the first template in the list, and Tail +// for the rest of the list. + +// The empty template list. +struct Templates0 {}; + +// Template lists of length 1, 2, 3, and so on. + +template +struct Templates1 { + typedef TemplateSel Head; + typedef Templates0 Tail; +}; +template +struct Templates2 { + typedef TemplateSel Head; + typedef Templates1 Tail; +}; + +template +struct Templates3 { + typedef TemplateSel Head; + typedef Templates2 Tail; +}; + +template +struct Templates4 { + typedef TemplateSel Head; + typedef Templates3 Tail; +}; + +template +struct Templates5 { + typedef TemplateSel Head; + typedef Templates4 Tail; +}; + +template +struct Templates6 { + typedef TemplateSel Head; + typedef Templates5 Tail; +}; + +template +struct Templates7 { + typedef TemplateSel Head; + typedef Templates6 Tail; +}; + +template +struct Templates8 { + typedef TemplateSel Head; + typedef Templates7 Tail; +}; + +template +struct Templates9 { + typedef TemplateSel Head; + typedef Templates8 Tail; +}; + +template +struct Templates10 { + typedef TemplateSel Head; + typedef Templates9 Tail; +}; + +template +struct Templates11 { + typedef TemplateSel Head; + typedef Templates10 Tail; +}; + +template +struct Templates12 { + typedef TemplateSel Head; + typedef Templates11 Tail; +}; + +template +struct Templates13 { + typedef TemplateSel Head; + typedef Templates12 Tail; +}; + +template +struct Templates14 { + typedef TemplateSel Head; + typedef Templates13 Tail; +}; + +template +struct Templates15 { + typedef TemplateSel Head; + typedef Templates14 Tail; +}; + +template +struct Templates16 { + typedef TemplateSel Head; + typedef Templates15 Tail; +}; + +template +struct Templates17 { + typedef TemplateSel Head; + typedef Templates16 Tail; +}; + +template +struct Templates18 { + typedef TemplateSel Head; + typedef Templates17 Tail; +}; + +template +struct Templates19 { + typedef TemplateSel Head; + typedef Templates18 Tail; +}; + +template +struct Templates20 { + typedef TemplateSel Head; + typedef Templates19 Tail; +}; + +template +struct Templates21 { + typedef TemplateSel Head; + typedef Templates20 Tail; +}; + +template +struct Templates22 { + typedef TemplateSel Head; + typedef Templates21 Tail; +}; + +template +struct Templates23 { + typedef TemplateSel Head; + typedef Templates22 Tail; +}; + +template +struct Templates24 { + typedef TemplateSel Head; + typedef Templates23 Tail; +}; + +template +struct Templates25 { + typedef TemplateSel Head; + typedef Templates24 Tail; +}; + +template +struct Templates26 { + typedef TemplateSel Head; + typedef Templates25 Tail; +}; + +template +struct Templates27 { + typedef TemplateSel Head; + typedef Templates26 Tail; +}; + +template +struct Templates28 { + typedef TemplateSel Head; + typedef Templates27 Tail; +}; + +template +struct Templates29 { + typedef TemplateSel Head; + typedef Templates28 Tail; +}; + +template +struct Templates30 { + typedef TemplateSel Head; + typedef Templates29 Tail; +}; + +template +struct Templates31 { + typedef TemplateSel Head; + typedef Templates30 Tail; +}; + +template +struct Templates32 { + typedef TemplateSel Head; + typedef Templates31 Tail; +}; + +template +struct Templates33 { + typedef TemplateSel Head; + typedef Templates32 Tail; +}; + +template +struct Templates34 { + typedef TemplateSel Head; + typedef Templates33 Tail; +}; + +template +struct Templates35 { + typedef TemplateSel Head; + typedef Templates34 Tail; +}; + +template +struct Templates36 { + typedef TemplateSel Head; + typedef Templates35 Tail; +}; + +template +struct Templates37 { + typedef TemplateSel Head; + typedef Templates36 Tail; +}; + +template +struct Templates38 { + typedef TemplateSel Head; + typedef Templates37 Tail; +}; + +template +struct Templates39 { + typedef TemplateSel Head; + typedef Templates38 Tail; +}; + +template +struct Templates40 { + typedef TemplateSel Head; + typedef Templates39 Tail; +}; + +template +struct Templates41 { + typedef TemplateSel Head; + typedef Templates40 Tail; +}; + +template +struct Templates42 { + typedef TemplateSel Head; + typedef Templates41 Tail; +}; + +template +struct Templates43 { + typedef TemplateSel Head; + typedef Templates42 Tail; +}; + +template +struct Templates44 { + typedef TemplateSel Head; + typedef Templates43 Tail; +}; + +template +struct Templates45 { + typedef TemplateSel Head; + typedef Templates44 Tail; +}; + +template +struct Templates46 { + typedef TemplateSel Head; + typedef Templates45 Tail; +}; + +template +struct Templates47 { + typedef TemplateSel Head; + typedef Templates46 Tail; +}; + +template +struct Templates48 { + typedef TemplateSel Head; + typedef Templates47 Tail; +}; + +template +struct Templates49 { + typedef TemplateSel Head; + typedef Templates48 Tail; +}; + +template +struct Templates50 { + typedef TemplateSel Head; + typedef Templates49 Tail; +}; + + +// We don't want to require the users to write TemplatesN<...> directly, +// as that would require them to count the length. Templates<...> is much +// easier to write, but generates horrible messages when there is a +// compiler error, as gcc insists on printing out each template +// argument, even if it has the default value (this means Templates +// will appear as Templates in the compiler +// errors). +// +// Our solution is to combine the best part of the two approaches: a +// user would write Templates, and Google Test will translate +// that to TemplatesN internally to make error messages +// readable. The translation is done by the 'type' member of the +// Templates template. +template +struct Templates { + typedef Templates50 type; +}; + +template <> +struct Templates { + typedef Templates0 type; +}; +template +struct Templates { + typedef Templates1 type; +}; +template +struct Templates { + typedef Templates2 type; +}; +template +struct Templates { + typedef Templates3 type; +}; +template +struct Templates { + typedef Templates4 type; +}; +template +struct Templates { + typedef Templates5 type; +}; +template +struct Templates { + typedef Templates6 type; +}; +template +struct Templates { + typedef Templates7 type; +}; +template +struct Templates { + typedef Templates8 type; +}; +template +struct Templates { + typedef Templates9 type; +}; +template +struct Templates { + typedef Templates10 type; +}; +template +struct Templates { + typedef Templates11 type; +}; +template +struct Templates { + typedef Templates12 type; +}; +template +struct Templates { + typedef Templates13 type; +}; +template +struct Templates { + typedef Templates14 type; +}; +template +struct Templates { + typedef Templates15 type; +}; +template +struct Templates { + typedef Templates16 type; +}; +template +struct Templates { + typedef Templates17 type; +}; +template +struct Templates { + typedef Templates18 type; +}; +template +struct Templates { + typedef Templates19 type; +}; +template +struct Templates { + typedef Templates20 type; +}; +template +struct Templates { + typedef Templates21 type; +}; +template +struct Templates { + typedef Templates22 type; +}; +template +struct Templates { + typedef Templates23 type; +}; +template +struct Templates { + typedef Templates24 type; +}; +template +struct Templates { + typedef Templates25 type; +}; +template +struct Templates { + typedef Templates26 type; +}; +template +struct Templates { + typedef Templates27 type; +}; +template +struct Templates { + typedef Templates28 type; +}; +template +struct Templates { + typedef Templates29 type; +}; +template +struct Templates { + typedef Templates30 type; +}; +template +struct Templates { + typedef Templates31 type; +}; +template +struct Templates { + typedef Templates32 type; +}; +template +struct Templates { + typedef Templates33 type; +}; +template +struct Templates { + typedef Templates34 type; +}; +template +struct Templates { + typedef Templates35 type; +}; +template +struct Templates { + typedef Templates36 type; +}; +template +struct Templates { + typedef Templates37 type; +}; +template +struct Templates { + typedef Templates38 type; +}; +template +struct Templates { + typedef Templates39 type; +}; +template +struct Templates { + typedef Templates40 type; +}; +template +struct Templates { + typedef Templates41 type; +}; +template +struct Templates { + typedef Templates42 type; +}; +template +struct Templates { + typedef Templates43 type; +}; +template +struct Templates { + typedef Templates44 type; +}; +template +struct Templates { + typedef Templates45 type; +}; +template +struct Templates { + typedef Templates46 type; +}; +template +struct Templates { + typedef Templates47 type; +}; +template +struct Templates { + typedef Templates48 type; +}; +template +struct Templates { + typedef Templates49 type; +}; + +// The TypeList template makes it possible to use either a single type +// or a Types<...> list in TYPED_TEST_CASE() and +// INSTANTIATE_TYPED_TEST_CASE_P(). + +template +struct TypeList { + typedef Types1 type; +}; + +template +struct TypeList > { + typedef typename Types::type type; +}; + +#endif // GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ + +// Due to C++ preprocessor weirdness, we need double indirection to +// concatenate two tokens when one of them is __LINE__. Writing +// +// foo ## __LINE__ +// +// will result in the token foo__LINE__, instead of foo followed by +// the current line number. For more details, see +// http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.6 +#define GTEST_CONCAT_TOKEN_(foo, bar) GTEST_CONCAT_TOKEN_IMPL_(foo, bar) +#define GTEST_CONCAT_TOKEN_IMPL_(foo, bar) foo ## bar + +class ProtocolMessage; +namespace proto2 { class Message; } + +namespace testing { + +// Forward declarations. + +class AssertionResult; // Result of an assertion. +class Message; // Represents a failure message. +class Test; // Represents a test. +class TestInfo; // Information about a test. +class TestPartResult; // Result of a test part. +class UnitTest; // A collection of test cases. + +template +::std::string PrintToString(const T& value); + +namespace internal { + +struct TraceInfo; // Information about a trace point. +class ScopedTrace; // Implements scoped trace. +class TestInfoImpl; // Opaque implementation of TestInfo +class UnitTestImpl; // Opaque implementation of UnitTest + +// How many times InitGoogleTest() has been called. +GTEST_API_ extern int g_init_gtest_count; + +// The text used in failure messages to indicate the start of the +// stack trace. +GTEST_API_ extern const char kStackTraceMarker[]; + +// Two overloaded helpers for checking at compile time whether an +// expression is a null pointer literal (i.e. NULL or any 0-valued +// compile-time integral constant). Their return values have +// different sizes, so we can use sizeof() to test which version is +// picked by the compiler. These helpers have no implementations, as +// we only need their signatures. +// +// Given IsNullLiteralHelper(x), the compiler will pick the first +// version if x can be implicitly converted to Secret*, and pick the +// second version otherwise. Since Secret is a secret and incomplete +// type, the only expression a user can write that has type Secret* is +// a null pointer literal. Therefore, we know that x is a null +// pointer literal if and only if the first version is picked by the +// compiler. +char IsNullLiteralHelper(Secret* p); +char (&IsNullLiteralHelper(...))[2]; // NOLINT + +// A compile-time bool constant that is true if and only if x is a +// null pointer literal (i.e. NULL or any 0-valued compile-time +// integral constant). +#ifdef GTEST_ELLIPSIS_NEEDS_POD_ +// We lose support for NULL detection where the compiler doesn't like +// passing non-POD classes through ellipsis (...). +# define GTEST_IS_NULL_LITERAL_(x) false +#else +# define GTEST_IS_NULL_LITERAL_(x) \ + (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1) +#endif // GTEST_ELLIPSIS_NEEDS_POD_ + +// Appends the user-supplied message to the Google-Test-generated message. +GTEST_API_ std::string AppendUserMessage( + const std::string& gtest_msg, const Message& user_msg); + +#if GTEST_HAS_EXCEPTIONS + +// This exception is thrown by (and only by) a failed Google Test +// assertion when GTEST_FLAG(throw_on_failure) is true (if exceptions +// are enabled). We derive it from std::runtime_error, which is for +// errors presumably detectable only at run time. Since +// std::runtime_error inherits from std::exception, many testing +// frameworks know how to extract and print the message inside it. +class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error { + public: + explicit GoogleTestFailureException(const TestPartResult& failure); +}; + +#endif // GTEST_HAS_EXCEPTIONS + +// A helper class for creating scoped traces in user programs. +class GTEST_API_ ScopedTrace { + public: + // The c'tor pushes the given source file location and message onto + // a trace stack maintained by Google Test. + ScopedTrace(const char* file, int line, const Message& message); + + // The d'tor pops the info pushed by the c'tor. + // + // Note that the d'tor is not virtual in order to be efficient. + // Don't inherit from ScopedTrace! + ~ScopedTrace(); + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(ScopedTrace); +} GTEST_ATTRIBUTE_UNUSED_; // A ScopedTrace object does its job in its + // c'tor and d'tor. Therefore it doesn't + // need to be used otherwise. + +// Constructs and returns the message for an equality assertion +// (e.g. ASSERT_EQ, EXPECT_STREQ, etc) failure. +// +// The first four parameters are the expressions used in the assertion +// and their values, as strings. For example, for ASSERT_EQ(foo, bar) +// where foo is 5 and bar is 6, we have: +// +// expected_expression: "foo" +// actual_expression: "bar" +// expected_value: "5" +// actual_value: "6" +// +// The ignoring_case parameter is true iff the assertion is a +// *_STRCASEEQ*. When it's true, the string " (ignoring case)" will +// be inserted into the message. +GTEST_API_ AssertionResult EqFailure(const char* expected_expression, + const char* actual_expression, + const std::string& expected_value, + const std::string& actual_value, + bool ignoring_case); + +// Constructs a failure message for Boolean assertions such as EXPECT_TRUE. +GTEST_API_ std::string GetBoolAssertionFailureMessage( + const AssertionResult& assertion_result, + const char* expression_text, + const char* actual_predicate_value, + const char* expected_predicate_value); + +// This template class represents an IEEE floating-point number +// (either single-precision or double-precision, depending on the +// template parameters). +// +// The purpose of this class is to do more sophisticated number +// comparison. (Due to round-off error, etc, it's very unlikely that +// two floating-points will be equal exactly. Hence a naive +// comparison by the == operation often doesn't work.) +// +// Format of IEEE floating-point: +// +// The most-significant bit being the leftmost, an IEEE +// floating-point looks like +// +// sign_bit exponent_bits fraction_bits +// +// Here, sign_bit is a single bit that designates the sign of the +// number. +// +// For float, there are 8 exponent bits and 23 fraction bits. +// +// For double, there are 11 exponent bits and 52 fraction bits. +// +// More details can be found at +// http://en.wikipedia.org/wiki/IEEE_floating-point_standard. +// +// Template parameter: +// +// RawType: the raw floating-point type (either float or double) +template +class FloatingPoint { + public: + // Defines the unsigned integer type that has the same size as the + // floating point number. + typedef typename TypeWithSize::UInt Bits; + + // Constants. + + // # of bits in a number. + static const size_t kBitCount = 8*sizeof(RawType); + + // # of fraction bits in a number. + static const size_t kFractionBitCount = + std::numeric_limits::digits - 1; + + // # of exponent bits in a number. + static const size_t kExponentBitCount = kBitCount - 1 - kFractionBitCount; + + // The mask for the sign bit. + static const Bits kSignBitMask = static_cast(1) << (kBitCount - 1); + + // The mask for the fraction bits. + static const Bits kFractionBitMask = + ~static_cast(0) >> (kExponentBitCount + 1); + + // The mask for the exponent bits. + static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask); + + // How many ULP's (Units in the Last Place) we want to tolerate when + // comparing two numbers. The larger the value, the more error we + // allow. A 0 value means that two numbers must be exactly the same + // to be considered equal. + // + // The maximum error of a single floating-point operation is 0.5 + // units in the last place. On Intel CPU's, all floating-point + // calculations are done with 80-bit precision, while double has 64 + // bits. Therefore, 4 should be enough for ordinary use. + // + // See the following article for more details on ULP: + // http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ + static const size_t kMaxUlps = 4; + + // Constructs a FloatingPoint from a raw floating-point number. + // + // On an Intel CPU, passing a non-normalized NAN (Not a Number) + // around may change its bits, although the new value is guaranteed + // to be also a NAN. Therefore, don't expect this constructor to + // preserve the bits in x when x is a NAN. + explicit FloatingPoint(const RawType& x) { u_.value_ = x; } + + // Static methods + + // Reinterprets a bit pattern as a floating-point number. + // + // This function is needed to test the AlmostEquals() method. + static RawType ReinterpretBits(const Bits bits) { + FloatingPoint fp(0); + fp.u_.bits_ = bits; + return fp.u_.value_; + } + + // Returns the floating-point number that represent positive infinity. + static RawType Infinity() { + return ReinterpretBits(kExponentBitMask); + } + + // Returns the maximum representable finite floating-point number. + static RawType Max(); + + // Non-static methods + + // Returns the bits that represents this number. + const Bits &bits() const { return u_.bits_; } + + // Returns the exponent bits of this number. + Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } + + // Returns the fraction bits of this number. + Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } + + // Returns the sign bit of this number. + Bits sign_bit() const { return kSignBitMask & u_.bits_; } + + // Returns true iff this is NAN (not a number). + bool is_nan() const { + // It's a NAN if the exponent bits are all ones and the fraction + // bits are not entirely zeros. + return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); + } + + // Returns true iff this number is at most kMaxUlps ULP's away from + // rhs. In particular, this function: + // + // - returns false if either number is (or both are) NAN. + // - treats really large numbers as almost equal to infinity. + // - thinks +0.0 and -0.0 are 0 DLP's apart. + bool AlmostEquals(const FloatingPoint& rhs) const { + // The IEEE standard says that any comparison operation involving + // a NAN must return false. + if (is_nan() || rhs.is_nan()) return false; + + return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) + <= kMaxUlps; + } + + private: + // The data type used to store the actual floating-point number. + union FloatingPointUnion { + RawType value_; // The raw floating-point number. + Bits bits_; // The bits that represent the number. + }; + + // Converts an integer from the sign-and-magnitude representation to + // the biased representation. More precisely, let N be 2 to the + // power of (kBitCount - 1), an integer x is represented by the + // unsigned number x + N. + // + // For instance, + // + // -N + 1 (the most negative number representable using + // sign-and-magnitude) is represented by 1; + // 0 is represented by N; and + // N - 1 (the biggest number representable using + // sign-and-magnitude) is represented by 2N - 1. + // + // Read http://en.wikipedia.org/wiki/Signed_number_representations + // for more details on signed number representations. + static Bits SignAndMagnitudeToBiased(const Bits &sam) { + if (kSignBitMask & sam) { + // sam represents a negative number. + return ~sam + 1; + } else { + // sam represents a positive number. + return kSignBitMask | sam; + } + } + + // Given two numbers in the sign-and-magnitude representation, + // returns the distance between them as an unsigned number. + static Bits DistanceBetweenSignAndMagnitudeNumbers(const Bits &sam1, + const Bits &sam2) { + const Bits biased1 = SignAndMagnitudeToBiased(sam1); + const Bits biased2 = SignAndMagnitudeToBiased(sam2); + return (biased1 >= biased2) ? (biased1 - biased2) : (biased2 - biased1); + } + + FloatingPointUnion u_; +}; + +// We cannot use std::numeric_limits::max() as it clashes with the max() +// macro defined by . +template <> +inline float FloatingPoint::Max() { return FLT_MAX; } +template <> +inline double FloatingPoint::Max() { return DBL_MAX; } + +// Typedefs the instances of the FloatingPoint template class that we +// care to use. +typedef FloatingPoint Float; +typedef FloatingPoint Double; + +// In order to catch the mistake of putting tests that use different +// test fixture classes in the same test case, we need to assign +// unique IDs to fixture classes and compare them. The TypeId type is +// used to hold such IDs. The user should treat TypeId as an opaque +// type: the only operation allowed on TypeId values is to compare +// them for equality using the == operator. +typedef const void* TypeId; + +template +class TypeIdHelper { + public: + // dummy_ must not have a const type. Otherwise an overly eager + // compiler (e.g. MSVC 7.1 & 8.0) may try to merge + // TypeIdHelper::dummy_ for different Ts as an "optimization". + static bool dummy_; +}; + +template +bool TypeIdHelper::dummy_ = false; + +// GetTypeId() returns the ID of type T. Different values will be +// returned for different types. Calling the function twice with the +// same type argument is guaranteed to return the same ID. +template +TypeId GetTypeId() { + // The compiler is required to allocate a different + // TypeIdHelper::dummy_ variable for each T used to instantiate + // the template. Therefore, the address of dummy_ is guaranteed to + // be unique. + return &(TypeIdHelper::dummy_); +} + +// Returns the type ID of ::testing::Test. Always call this instead +// of GetTypeId< ::testing::Test>() to get the type ID of +// ::testing::Test, as the latter may give the wrong result due to a +// suspected linker bug when compiling Google Test as a Mac OS X +// framework. +GTEST_API_ TypeId GetTestTypeId(); + +// Defines the abstract factory interface that creates instances +// of a Test object. +class TestFactoryBase { + public: + virtual ~TestFactoryBase() {} + + // Creates a test instance to run. The instance is both created and destroyed + // within TestInfoImpl::Run() + virtual Test* CreateTest() = 0; + + protected: + TestFactoryBase() {} + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestFactoryBase); +}; + +// This class provides implementation of TeastFactoryBase interface. +// It is used in TEST and TEST_F macros. +template +class TestFactoryImpl : public TestFactoryBase { + public: + virtual Test* CreateTest() { return new TestClass; } +}; + +#if GTEST_OS_WINDOWS + +// Predicate-formatters for implementing the HRESULT checking macros +// {ASSERT|EXPECT}_HRESULT_{SUCCEEDED|FAILED} +// We pass a long instead of HRESULT to avoid causing an +// include dependency for the HRESULT type. +GTEST_API_ AssertionResult IsHRESULTSuccess(const char* expr, + long hr); // NOLINT +GTEST_API_ AssertionResult IsHRESULTFailure(const char* expr, + long hr); // NOLINT + +#endif // GTEST_OS_WINDOWS + +// Types of SetUpTestCase() and TearDownTestCase() functions. +typedef void (*SetUpTestCaseFunc)(); +typedef void (*TearDownTestCaseFunc)(); + +// Creates a new TestInfo object and registers it with Google Test; +// returns the created object. +// +// Arguments: +// +// test_case_name: name of the test case +// name: name of the test +// type_param the name of the test's type parameter, or NULL if +// this is not a typed or a type-parameterized test. +// value_param text representation of the test's value parameter, +// or NULL if this is not a type-parameterized test. +// fixture_class_id: ID of the test fixture class +// set_up_tc: pointer to the function that sets up the test case +// tear_down_tc: pointer to the function that tears down the test case +// factory: pointer to the factory that creates a test object. +// The newly created TestInfo instance will assume +// ownership of the factory object. +GTEST_API_ TestInfo* MakeAndRegisterTestInfo( + const char* test_case_name, + const char* name, + const char* type_param, + const char* value_param, + TypeId fixture_class_id, + SetUpTestCaseFunc set_up_tc, + TearDownTestCaseFunc tear_down_tc, + TestFactoryBase* factory); + +// If *pstr starts with the given prefix, modifies *pstr to be right +// past the prefix and returns true; otherwise leaves *pstr unchanged +// and returns false. None of pstr, *pstr, and prefix can be NULL. +GTEST_API_ bool SkipPrefix(const char* prefix, const char** pstr); + +#if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P + +// State of the definition of a type-parameterized test case. +class GTEST_API_ TypedTestCasePState { + public: + TypedTestCasePState() : registered_(false) {} + + // Adds the given test name to defined_test_names_ and return true + // if the test case hasn't been registered; otherwise aborts the + // program. + bool AddTestName(const char* file, int line, const char* case_name, + const char* test_name) { + if (registered_) { + fprintf(stderr, "%s Test %s must be defined before " + "REGISTER_TYPED_TEST_CASE_P(%s, ...).\n", + FormatFileLocation(file, line).c_str(), test_name, case_name); + fflush(stderr); + posix::Abort(); + } + defined_test_names_.insert(test_name); + return true; + } + + // Verifies that registered_tests match the test names in + // defined_test_names_; returns registered_tests if successful, or + // aborts the program otherwise. + const char* VerifyRegisteredTestNames( + const char* file, int line, const char* registered_tests); + + private: + bool registered_; + ::std::set defined_test_names_; +}; + +// Skips to the first non-space char after the first comma in 'str'; +// returns NULL if no comma is found in 'str'. +inline const char* SkipComma(const char* str) { + const char* comma = strchr(str, ','); + if (comma == NULL) { + return NULL; + } + while (IsSpace(*(++comma))) {} + return comma; +} + +// Returns the prefix of 'str' before the first comma in it; returns +// the entire string if it contains no comma. +inline std::string GetPrefixUntilComma(const char* str) { + const char* comma = strchr(str, ','); + return comma == NULL ? str : std::string(str, comma); +} + +// TypeParameterizedTest::Register() +// registers a list of type-parameterized tests with Google Test. The +// return value is insignificant - we just need to return something +// such that we can call this function in a namespace scope. +// +// Implementation note: The GTEST_TEMPLATE_ macro declares a template +// template parameter. It's defined in gtest-type-util.h. +template +class TypeParameterizedTest { + public: + // 'index' is the index of the test in the type list 'Types' + // specified in INSTANTIATE_TYPED_TEST_CASE_P(Prefix, TestCase, + // Types). Valid values for 'index' are [0, N - 1] where N is the + // length of Types. + static bool Register(const char* prefix, const char* case_name, + const char* test_names, int index) { + typedef typename Types::Head Type; + typedef Fixture FixtureClass; + typedef typename GTEST_BIND_(TestSel, Type) TestClass; + + // First, registers the first type-parameterized test in the type + // list. + MakeAndRegisterTestInfo( + (std::string(prefix) + (prefix[0] == '\0' ? "" : "/") + case_name + "/" + + StreamableToString(index)).c_str(), + GetPrefixUntilComma(test_names).c_str(), + GetTypeName().c_str(), + NULL, // No value parameter. + GetTypeId(), + TestClass::SetUpTestCase, + TestClass::TearDownTestCase, + new TestFactoryImpl); + + // Next, recurses (at compile time) with the tail of the type list. + return TypeParameterizedTest + ::Register(prefix, case_name, test_names, index + 1); + } +}; + +// The base case for the compile time recursion. +template +class TypeParameterizedTest { + public: + static bool Register(const char* /*prefix*/, const char* /*case_name*/, + const char* /*test_names*/, int /*index*/) { + return true; + } +}; + +// TypeParameterizedTestCase::Register() +// registers *all combinations* of 'Tests' and 'Types' with Google +// Test. The return value is insignificant - we just need to return +// something such that we can call this function in a namespace scope. +template +class TypeParameterizedTestCase { + public: + static bool Register(const char* prefix, const char* case_name, + const char* test_names) { + typedef typename Tests::Head Head; + + // First, register the first test in 'Test' for each type in 'Types'. + TypeParameterizedTest::Register( + prefix, case_name, test_names, 0); + + // Next, recurses (at compile time) with the tail of the test list. + return TypeParameterizedTestCase + ::Register(prefix, case_name, SkipComma(test_names)); + } +}; + +// The base case for the compile time recursion. +template +class TypeParameterizedTestCase { + public: + static bool Register(const char* /*prefix*/, const char* /*case_name*/, + const char* /*test_names*/) { + return true; + } +}; + +#endif // GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P + +// Returns the current OS stack trace as an std::string. +// +// The maximum number of stack frames to be included is specified by +// the gtest_stack_trace_depth flag. The skip_count parameter +// specifies the number of top frames to be skipped, which doesn't +// count against the number of frames to be included. +// +// For example, if Foo() calls Bar(), which in turn calls +// GetCurrentOsStackTraceExceptTop(..., 1), Foo() will be included in +// the trace but Bar() and GetCurrentOsStackTraceExceptTop() won't. +GTEST_API_ std::string GetCurrentOsStackTraceExceptTop( + UnitTest* unit_test, int skip_count); + +// Helpers for suppressing warnings on unreachable code or constant +// condition. + +// Always returns true. +GTEST_API_ bool AlwaysTrue(); + +// Always returns false. +inline bool AlwaysFalse() { return !AlwaysTrue(); } + +// Helper for suppressing false warning from Clang on a const char* +// variable declared in a conditional expression always being NULL in +// the else branch. +struct GTEST_API_ ConstCharPtr { + ConstCharPtr(const char* str) : value(str) {} + operator bool() const { return true; } + const char* value; +}; + +// A simple Linear Congruential Generator for generating random +// numbers with a uniform distribution. Unlike rand() and srand(), it +// doesn't use global state (and therefore can't interfere with user +// code). Unlike rand_r(), it's portable. An LCG isn't very random, +// but it's good enough for our purposes. +class GTEST_API_ Random { + public: + static const UInt32 kMaxRange = 1u << 31; + + explicit Random(UInt32 seed) : state_(seed) {} + + void Reseed(UInt32 seed) { state_ = seed; } + + // Generates a random number from [0, range). Crashes if 'range' is + // 0 or greater than kMaxRange. + UInt32 Generate(UInt32 range); + + private: + UInt32 state_; + GTEST_DISALLOW_COPY_AND_ASSIGN_(Random); +}; + +// Defining a variable of type CompileAssertTypesEqual will cause a +// compiler error iff T1 and T2 are different types. +template +struct CompileAssertTypesEqual; + +template +struct CompileAssertTypesEqual { +}; + +// Removes the reference from a type if it is a reference type, +// otherwise leaves it unchanged. This is the same as +// tr1::remove_reference, which is not widely available yet. +template +struct RemoveReference { typedef T type; }; // NOLINT +template +struct RemoveReference { typedef T type; }; // NOLINT + +// A handy wrapper around RemoveReference that works when the argument +// T depends on template parameters. +#define GTEST_REMOVE_REFERENCE_(T) \ + typename ::testing::internal::RemoveReference::type + +// Removes const from a type if it is a const type, otherwise leaves +// it unchanged. This is the same as tr1::remove_const, which is not +// widely available yet. +template +struct RemoveConst { typedef T type; }; // NOLINT +template +struct RemoveConst { typedef T type; }; // NOLINT + +// MSVC 8.0, Sun C++, and IBM XL C++ have a bug which causes the above +// definition to fail to remove the const in 'const int[3]' and 'const +// char[3][4]'. The following specialization works around the bug. +template +struct RemoveConst { + typedef typename RemoveConst::type type[N]; +}; + +#if defined(_MSC_VER) && _MSC_VER < 1400 +// This is the only specialization that allows VC++ 7.1 to remove const in +// 'const int[3] and 'const int[3][4]'. However, it causes trouble with GCC +// and thus needs to be conditionally compiled. +template +struct RemoveConst { + typedef typename RemoveConst::type type[N]; +}; +#endif + +// A handy wrapper around RemoveConst that works when the argument +// T depends on template parameters. +#define GTEST_REMOVE_CONST_(T) \ + typename ::testing::internal::RemoveConst::type + +// Turns const U&, U&, const U, and U all into U. +#define GTEST_REMOVE_REFERENCE_AND_CONST_(T) \ + GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(T)) + +// Adds reference to a type if it is not a reference type, +// otherwise leaves it unchanged. This is the same as +// tr1::add_reference, which is not widely available yet. +template +struct AddReference { typedef T& type; }; // NOLINT +template +struct AddReference { typedef T& type; }; // NOLINT + +// A handy wrapper around AddReference that works when the argument T +// depends on template parameters. +#define GTEST_ADD_REFERENCE_(T) \ + typename ::testing::internal::AddReference::type + +// Adds a reference to const on top of T as necessary. For example, +// it transforms +// +// char ==> const char& +// const char ==> const char& +// char& ==> const char& +// const char& ==> const char& +// +// The argument T must depend on some template parameters. +#define GTEST_REFERENCE_TO_CONST_(T) \ + GTEST_ADD_REFERENCE_(const GTEST_REMOVE_REFERENCE_(T)) + +// ImplicitlyConvertible::value is a compile-time bool +// constant that's true iff type From can be implicitly converted to +// type To. +template +class ImplicitlyConvertible { + private: + // We need the following helper functions only for their types. + // They have no implementations. + + // MakeFrom() is an expression whose type is From. We cannot simply + // use From(), as the type From may not have a public default + // constructor. + static From MakeFrom(); + + // These two functions are overloaded. Given an expression + // Helper(x), the compiler will pick the first version if x can be + // implicitly converted to type To; otherwise it will pick the + // second version. + // + // The first version returns a value of size 1, and the second + // version returns a value of size 2. Therefore, by checking the + // size of Helper(x), which can be done at compile time, we can tell + // which version of Helper() is used, and hence whether x can be + // implicitly converted to type To. + static char Helper(To); + static char (&Helper(...))[2]; // NOLINT + + // We have to put the 'public' section after the 'private' section, + // or MSVC refuses to compile the code. + public: + // MSVC warns about implicitly converting from double to int for + // possible loss of data, so we need to temporarily disable the + // warning. +#ifdef _MSC_VER +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4244) // Temporarily disables warning 4244. + + static const bool value = + sizeof(Helper(ImplicitlyConvertible::MakeFrom())) == 1; +# pragma warning(pop) // Restores the warning state. +#elif defined(__BORLANDC__) + // C++Builder cannot use member overload resolution during template + // instantiation. The simplest workaround is to use its C++0x type traits + // functions (C++Builder 2009 and above only). + static const bool value = __is_convertible(From, To); +#else + static const bool value = + sizeof(Helper(ImplicitlyConvertible::MakeFrom())) == 1; +#endif // _MSV_VER +}; +template +const bool ImplicitlyConvertible::value; + +// IsAProtocolMessage::value is a compile-time bool constant that's +// true iff T is type ProtocolMessage, proto2::Message, or a subclass +// of those. +template +struct IsAProtocolMessage + : public bool_constant< + ImplicitlyConvertible::value || + ImplicitlyConvertible::value> { +}; + +// When the compiler sees expression IsContainerTest(0), if C is an +// STL-style container class, the first overload of IsContainerTest +// will be viable (since both C::iterator* and C::const_iterator* are +// valid types and NULL can be implicitly converted to them). It will +// be picked over the second overload as 'int' is a perfect match for +// the type of argument 0. If C::iterator or C::const_iterator is not +// a valid type, the first overload is not viable, and the second +// overload will be picked. Therefore, we can determine whether C is +// a container class by checking the type of IsContainerTest(0). +// The value of the expression is insignificant. +// +// Note that we look for both C::iterator and C::const_iterator. The +// reason is that C++ injects the name of a class as a member of the +// class itself (e.g. you can refer to class iterator as either +// 'iterator' or 'iterator::iterator'). If we look for C::iterator +// only, for example, we would mistakenly think that a class named +// iterator is an STL container. +// +// Also note that the simpler approach of overloading +// IsContainerTest(typename C::const_iterator*) and +// IsContainerTest(...) doesn't work with Visual Age C++ and Sun C++. +typedef int IsContainer; +template +IsContainer IsContainerTest(int /* dummy */, + typename C::iterator* /* it */ = NULL, + typename C::const_iterator* /* const_it */ = NULL) { + return 0; +} + +typedef char IsNotContainer; +template +IsNotContainer IsContainerTest(long /* dummy */) { return '\0'; } + +// EnableIf::type is void when 'Cond' is true, and +// undefined when 'Cond' is false. To use SFINAE to make a function +// overload only apply when a particular expression is true, add +// "typename EnableIf::type* = 0" as the last parameter. +template struct EnableIf; +template<> struct EnableIf { typedef void type; }; // NOLINT + +// Utilities for native arrays. + +// ArrayEq() compares two k-dimensional native arrays using the +// elements' operator==, where k can be any integer >= 0. When k is +// 0, ArrayEq() degenerates into comparing a single pair of values. + +template +bool ArrayEq(const T* lhs, size_t size, const U* rhs); + +// This generic version is used when k is 0. +template +inline bool ArrayEq(const T& lhs, const U& rhs) { return lhs == rhs; } + +// This overload is used when k >= 1. +template +inline bool ArrayEq(const T(&lhs)[N], const U(&rhs)[N]) { + return internal::ArrayEq(lhs, N, rhs); +} + +// This helper reduces code bloat. If we instead put its logic inside +// the previous ArrayEq() function, arrays with different sizes would +// lead to different copies of the template code. +template +bool ArrayEq(const T* lhs, size_t size, const U* rhs) { + for (size_t i = 0; i != size; i++) { + if (!internal::ArrayEq(lhs[i], rhs[i])) + return false; + } + return true; +} + +// Finds the first element in the iterator range [begin, end) that +// equals elem. Element may be a native array type itself. +template +Iter ArrayAwareFind(Iter begin, Iter end, const Element& elem) { + for (Iter it = begin; it != end; ++it) { + if (internal::ArrayEq(*it, elem)) + return it; + } + return end; +} + +// CopyArray() copies a k-dimensional native array using the elements' +// operator=, where k can be any integer >= 0. When k is 0, +// CopyArray() degenerates into copying a single value. + +template +void CopyArray(const T* from, size_t size, U* to); + +// This generic version is used when k is 0. +template +inline void CopyArray(const T& from, U* to) { *to = from; } + +// This overload is used when k >= 1. +template +inline void CopyArray(const T(&from)[N], U(*to)[N]) { + internal::CopyArray(from, N, *to); +} + +// This helper reduces code bloat. If we instead put its logic inside +// the previous CopyArray() function, arrays with different sizes +// would lead to different copies of the template code. +template +void CopyArray(const T* from, size_t size, U* to) { + for (size_t i = 0; i != size; i++) { + internal::CopyArray(from[i], to + i); + } +} + +// The relation between an NativeArray object (see below) and the +// native array it represents. +enum RelationToSource { + kReference, // The NativeArray references the native array. + kCopy // The NativeArray makes a copy of the native array and + // owns the copy. +}; + +// Adapts a native array to a read-only STL-style container. Instead +// of the complete STL container concept, this adaptor only implements +// members useful for Google Mock's container matchers. New members +// should be added as needed. To simplify the implementation, we only +// support Element being a raw type (i.e. having no top-level const or +// reference modifier). It's the client's responsibility to satisfy +// this requirement. Element can be an array type itself (hence +// multi-dimensional arrays are supported). +template +class NativeArray { + public: + // STL-style container typedefs. + typedef Element value_type; + typedef Element* iterator; + typedef const Element* const_iterator; + + // Constructs from a native array. + NativeArray(const Element* array, size_t count, RelationToSource relation) { + Init(array, count, relation); + } + + // Copy constructor. + NativeArray(const NativeArray& rhs) { + Init(rhs.array_, rhs.size_, rhs.relation_to_source_); + } + + ~NativeArray() { + // Ensures that the user doesn't instantiate NativeArray with a + // const or reference type. + static_cast(StaticAssertTypeEqHelper()); + if (relation_to_source_ == kCopy) + delete[] array_; + } + + // STL-style container methods. + size_t size() const { return size_; } + const_iterator begin() const { return array_; } + const_iterator end() const { return array_ + size_; } + bool operator==(const NativeArray& rhs) const { + return size() == rhs.size() && + ArrayEq(begin(), size(), rhs.begin()); + } + + private: + // Initializes this object; makes a copy of the input array if + // 'relation' is kCopy. + void Init(const Element* array, size_t a_size, RelationToSource relation) { + if (relation == kReference) { + array_ = array; + } else { + Element* const copy = new Element[a_size]; + CopyArray(array, a_size, copy); + array_ = copy; + } + size_ = a_size; + relation_to_source_ = relation; + } + + const Element* array_; + size_t size_; + RelationToSource relation_to_source_; + + GTEST_DISALLOW_ASSIGN_(NativeArray); +}; + +} // namespace internal +} // namespace testing + +#define GTEST_MESSAGE_AT_(file, line, message, result_type) \ + ::testing::internal::AssertHelper(result_type, file, line, message) \ + = ::testing::Message() + +#define GTEST_MESSAGE_(message, result_type) \ + GTEST_MESSAGE_AT_(__FILE__, __LINE__, message, result_type) + +#define GTEST_FATAL_FAILURE_(message) \ + return GTEST_MESSAGE_(message, ::testing::TestPartResult::kFatalFailure) + +#define GTEST_NONFATAL_FAILURE_(message) \ + GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure) + +#define GTEST_SUCCESS_(message) \ + GTEST_MESSAGE_(message, ::testing::TestPartResult::kSuccess) + +// Suppresses MSVC warnings 4072 (unreachable code) for the code following +// statement if it returns or throws (or doesn't return or throw in some +// situations). +#define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) \ + if (::testing::internal::AlwaysTrue()) { statement; } + +#define GTEST_TEST_THROW_(statement, expected_exception, fail) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::ConstCharPtr gtest_msg = "") { \ + bool gtest_caught_expected = false; \ + try { \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + } \ + catch (expected_exception const&) { \ + gtest_caught_expected = true; \ + } \ + catch (...) { \ + gtest_msg.value = \ + "Expected: " #statement " throws an exception of type " \ + #expected_exception ".\n Actual: it throws a different type."; \ + goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); \ + } \ + if (!gtest_caught_expected) { \ + gtest_msg.value = \ + "Expected: " #statement " throws an exception of type " \ + #expected_exception ".\n Actual: it throws nothing."; \ + goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); \ + } \ + } else \ + GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__): \ + fail(gtest_msg.value) + +#define GTEST_TEST_NO_THROW_(statement, fail) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::AlwaysTrue()) { \ + try { \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + } \ + catch (...) { \ + goto GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__); \ + } \ + } else \ + GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__): \ + fail("Expected: " #statement " doesn't throw an exception.\n" \ + " Actual: it throws.") + +#define GTEST_TEST_ANY_THROW_(statement, fail) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::AlwaysTrue()) { \ + bool gtest_caught_any = false; \ + try { \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + } \ + catch (...) { \ + gtest_caught_any = true; \ + } \ + if (!gtest_caught_any) { \ + goto GTEST_CONCAT_TOKEN_(gtest_label_testanythrow_, __LINE__); \ + } \ + } else \ + GTEST_CONCAT_TOKEN_(gtest_label_testanythrow_, __LINE__): \ + fail("Expected: " #statement " throws an exception.\n" \ + " Actual: it doesn't.") + + +// Implements Boolean test assertions such as EXPECT_TRUE. expression can be +// either a boolean expression or an AssertionResult. text is a textual +// represenation of expression as it was passed into the EXPECT_TRUE. +#define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (const ::testing::AssertionResult gtest_ar_ = \ + ::testing::AssertionResult(expression)) \ + ; \ + else \ + fail(::testing::internal::GetBoolAssertionFailureMessage(\ + gtest_ar_, text, #actual, #expected).c_str()) + +#define GTEST_TEST_NO_FATAL_FAILURE_(statement, fail) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::AlwaysTrue()) { \ + ::testing::internal::HasNewFatalFailureHelper gtest_fatal_failure_checker; \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + if (gtest_fatal_failure_checker.has_new_fatal_failure()) { \ + goto GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__); \ + } \ + } else \ + GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__): \ + fail("Expected: " #statement " doesn't generate new fatal " \ + "failures in the current thread.\n" \ + " Actual: it does.") + +// Expands to the name of the class that implements the given test. +#define GTEST_TEST_CLASS_NAME_(test_case_name, test_name) \ + test_case_name##_##test_name##_Test + +// Helper macro for defining tests. +#define GTEST_TEST_(test_case_name, test_name, parent_class, parent_id)\ +class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\ + public:\ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {}\ + private:\ + virtual void TestBody();\ + static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_;\ + GTEST_DISALLOW_COPY_AND_ASSIGN_(\ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name));\ +};\ +\ +::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\ + ::test_info_ =\ + ::testing::internal::MakeAndRegisterTestInfo(\ + #test_case_name, #test_name, NULL, NULL, \ + (parent_id), \ + parent_class::SetUpTestCase, \ + parent_class::TearDownTestCase, \ + new ::testing::internal::TestFactoryImpl<\ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>);\ +void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) +// +// The Google C++ Testing Framework (Google Test) +// +// This header file defines the public API for death tests. It is +// #included by gtest.h so a user doesn't need to include this +// directly. + +#ifndef GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_ +#define GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_ + +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: wan@google.com (Zhanyong Wan), eefacm@gmail.com (Sean Mcafee) +// +// The Google C++ Testing Framework (Google Test) +// +// This header file defines internal utilities needed for implementing +// death tests. They are subject to change without notice. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_ + + +#include + +namespace testing { +namespace internal { + +GTEST_DECLARE_string_(internal_run_death_test); + +// Names of the flags (needed for parsing Google Test flags). +const char kDeathTestStyleFlag[] = "death_test_style"; +const char kDeathTestUseFork[] = "death_test_use_fork"; +const char kInternalRunDeathTestFlag[] = "internal_run_death_test"; + +#if GTEST_HAS_DEATH_TEST + +// DeathTest is a class that hides much of the complexity of the +// GTEST_DEATH_TEST_ macro. It is abstract; its static Create method +// returns a concrete class that depends on the prevailing death test +// style, as defined by the --gtest_death_test_style and/or +// --gtest_internal_run_death_test flags. + +// In describing the results of death tests, these terms are used with +// the corresponding definitions: +// +// exit status: The integer exit information in the format specified +// by wait(2) +// exit code: The integer code passed to exit(3), _exit(2), or +// returned from main() +class GTEST_API_ DeathTest { + public: + // Create returns false if there was an error determining the + // appropriate action to take for the current death test; for example, + // if the gtest_death_test_style flag is set to an invalid value. + // The LastMessage method will return a more detailed message in that + // case. Otherwise, the DeathTest pointer pointed to by the "test" + // argument is set. If the death test should be skipped, the pointer + // is set to NULL; otherwise, it is set to the address of a new concrete + // DeathTest object that controls the execution of the current test. + static bool Create(const char* statement, const RE* regex, + const char* file, int line, DeathTest** test); + DeathTest(); + virtual ~DeathTest() { } + + // A helper class that aborts a death test when it's deleted. + class ReturnSentinel { + public: + explicit ReturnSentinel(DeathTest* test) : test_(test) { } + ~ReturnSentinel() { test_->Abort(TEST_ENCOUNTERED_RETURN_STATEMENT); } + private: + DeathTest* const test_; + GTEST_DISALLOW_COPY_AND_ASSIGN_(ReturnSentinel); + } GTEST_ATTRIBUTE_UNUSED_; + + // An enumeration of possible roles that may be taken when a death + // test is encountered. EXECUTE means that the death test logic should + // be executed immediately. OVERSEE means that the program should prepare + // the appropriate environment for a child process to execute the death + // test, then wait for it to complete. + enum TestRole { OVERSEE_TEST, EXECUTE_TEST }; + + // An enumeration of the three reasons that a test might be aborted. + enum AbortReason { + TEST_ENCOUNTERED_RETURN_STATEMENT, + TEST_THREW_EXCEPTION, + TEST_DID_NOT_DIE + }; + + // Assumes one of the above roles. + virtual TestRole AssumeRole() = 0; + + // Waits for the death test to finish and returns its status. + virtual int Wait() = 0; + + // Returns true if the death test passed; that is, the test process + // exited during the test, its exit status matches a user-supplied + // predicate, and its stderr output matches a user-supplied regular + // expression. + // The user-supplied predicate may be a macro expression rather + // than a function pointer or functor, or else Wait and Passed could + // be combined. + virtual bool Passed(bool exit_status_ok) = 0; + + // Signals that the death test did not die as expected. + virtual void Abort(AbortReason reason) = 0; + + // Returns a human-readable outcome message regarding the outcome of + // the last death test. + static const char* LastMessage(); + + static void set_last_death_test_message(const std::string& message); + + private: + // A string containing a description of the outcome of the last death test. + static std::string last_death_test_message_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(DeathTest); +}; + +// Factory interface for death tests. May be mocked out for testing. +class DeathTestFactory { + public: + virtual ~DeathTestFactory() { } + virtual bool Create(const char* statement, const RE* regex, + const char* file, int line, DeathTest** test) = 0; +}; + +// A concrete DeathTestFactory implementation for normal use. +class DefaultDeathTestFactory : public DeathTestFactory { + public: + virtual bool Create(const char* statement, const RE* regex, + const char* file, int line, DeathTest** test); +}; + +// Returns true if exit_status describes a process that was terminated +// by a signal, or exited normally with a nonzero exit code. +GTEST_API_ bool ExitedUnsuccessfully(int exit_status); + +// Traps C++ exceptions escaping statement and reports them as test +// failures. Note that trapping SEH exceptions is not implemented here. +# if GTEST_HAS_EXCEPTIONS +# define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ + try { \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + } catch (const ::std::exception& gtest_exception) { \ + fprintf(\ + stderr, \ + "\n%s: Caught std::exception-derived exception escaping the " \ + "death test statement. Exception message: %s\n", \ + ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \ + gtest_exception.what()); \ + fflush(stderr); \ + death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ + } catch (...) { \ + death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ + } + +# else +# define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) + +# endif + +// This macro is for implementing ASSERT_DEATH*, EXPECT_DEATH*, +// ASSERT_EXIT*, and EXPECT_EXIT*. +# define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::AlwaysTrue()) { \ + const ::testing::internal::RE& gtest_regex = (regex); \ + ::testing::internal::DeathTest* gtest_dt; \ + if (!::testing::internal::DeathTest::Create(#statement, >est_regex, \ + __FILE__, __LINE__, >est_dt)) { \ + goto GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__); \ + } \ + if (gtest_dt != NULL) { \ + ::testing::internal::scoped_ptr< ::testing::internal::DeathTest> \ + gtest_dt_ptr(gtest_dt); \ + switch (gtest_dt->AssumeRole()) { \ + case ::testing::internal::DeathTest::OVERSEE_TEST: \ + if (!gtest_dt->Passed(predicate(gtest_dt->Wait()))) { \ + goto GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__); \ + } \ + break; \ + case ::testing::internal::DeathTest::EXECUTE_TEST: { \ + ::testing::internal::DeathTest::ReturnSentinel \ + gtest_sentinel(gtest_dt); \ + GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); \ + gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); \ + break; \ + } \ + default: \ + break; \ + } \ + } \ + } else \ + GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__): \ + fail(::testing::internal::DeathTest::LastMessage()) +// The symbol "fail" here expands to something into which a message +// can be streamed. + +// This macro is for implementing ASSERT/EXPECT_DEBUG_DEATH when compiled in +// NDEBUG mode. In this case we need the statements to be executed, the regex is +// ignored, and the macro must accept a streamed message even though the message +// is never printed. +# define GTEST_EXECUTE_STATEMENT_(statement, regex) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::AlwaysTrue()) { \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + } else \ + ::testing::Message() + +// A class representing the parsed contents of the +// --gtest_internal_run_death_test flag, as it existed when +// RUN_ALL_TESTS was called. +class InternalRunDeathTestFlag { + public: + InternalRunDeathTestFlag(const std::string& a_file, + int a_line, + int an_index, + int a_write_fd) + : file_(a_file), line_(a_line), index_(an_index), + write_fd_(a_write_fd) {} + + ~InternalRunDeathTestFlag() { + if (write_fd_ >= 0) + posix::Close(write_fd_); + } + + const std::string& file() const { return file_; } + int line() const { return line_; } + int index() const { return index_; } + int write_fd() const { return write_fd_; } + + private: + std::string file_; + int line_; + int index_; + int write_fd_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(InternalRunDeathTestFlag); +}; + +// Returns a newly created InternalRunDeathTestFlag object with fields +// initialized from the GTEST_FLAG(internal_run_death_test) flag if +// the flag is specified; otherwise returns NULL. +InternalRunDeathTestFlag* ParseInternalRunDeathTestFlag(); + +#else // GTEST_HAS_DEATH_TEST + +// This macro is used for implementing macros such as +// EXPECT_DEATH_IF_SUPPORTED and ASSERT_DEATH_IF_SUPPORTED on systems where +// death tests are not supported. Those macros must compile on such systems +// iff EXPECT_DEATH and ASSERT_DEATH compile with the same parameters on +// systems that support death tests. This allows one to write such a macro +// on a system that does not support death tests and be sure that it will +// compile on a death-test supporting system. +// +// Parameters: +// statement - A statement that a macro such as EXPECT_DEATH would test +// for program termination. This macro has to make sure this +// statement is compiled but not executed, to ensure that +// EXPECT_DEATH_IF_SUPPORTED compiles with a certain +// parameter iff EXPECT_DEATH compiles with it. +// regex - A regex that a macro such as EXPECT_DEATH would use to test +// the output of statement. This parameter has to be +// compiled but not evaluated by this macro, to ensure that +// this macro only accepts expressions that a macro such as +// EXPECT_DEATH would accept. +// terminator - Must be an empty statement for EXPECT_DEATH_IF_SUPPORTED +// and a return statement for ASSERT_DEATH_IF_SUPPORTED. +// This ensures that ASSERT_DEATH_IF_SUPPORTED will not +// compile inside functions where ASSERT_DEATH doesn't +// compile. +// +// The branch that has an always false condition is used to ensure that +// statement and regex are compiled (and thus syntactically correct) but +// never executed. The unreachable code macro protects the terminator +// statement from generating an 'unreachable code' warning in case +// statement unconditionally returns or throws. The Message constructor at +// the end allows the syntax of streaming additional messages into the +// macro, for compilational compatibility with EXPECT_DEATH/ASSERT_DEATH. +# define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (::testing::internal::AlwaysTrue()) { \ + GTEST_LOG_(WARNING) \ + << "Death tests are not supported on this platform.\n" \ + << "Statement '" #statement "' cannot be verified."; \ + } else if (::testing::internal::AlwaysFalse()) { \ + ::testing::internal::RE::PartialMatch(".*", (regex)); \ + GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ + terminator; \ + } else \ + ::testing::Message() + +#endif // GTEST_HAS_DEATH_TEST + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_ + +namespace testing { + +// This flag controls the style of death tests. Valid values are "threadsafe", +// meaning that the death test child process will re-execute the test binary +// from the start, running only a single death test, or "fast", +// meaning that the child process will execute the test logic immediately +// after forking. +GTEST_DECLARE_string_(death_test_style); + +#if GTEST_HAS_DEATH_TEST + +namespace internal { + +// Returns a Boolean value indicating whether the caller is currently +// executing in the context of the death test child process. Tools such as +// Valgrind heap checkers may need this to modify their behavior in death +// tests. IMPORTANT: This is an internal utility. Using it may break the +// implementation of death tests. User code MUST NOT use it. +GTEST_API_ bool InDeathTestChild(); + +} // namespace internal + +// The following macros are useful for writing death tests. + +// Here's what happens when an ASSERT_DEATH* or EXPECT_DEATH* is +// executed: +// +// 1. It generates a warning if there is more than one active +// thread. This is because it's safe to fork() or clone() only +// when there is a single thread. +// +// 2. The parent process clone()s a sub-process and runs the death +// test in it; the sub-process exits with code 0 at the end of the +// death test, if it hasn't exited already. +// +// 3. The parent process waits for the sub-process to terminate. +// +// 4. The parent process checks the exit code and error message of +// the sub-process. +// +// Examples: +// +// ASSERT_DEATH(server.SendMessage(56, "Hello"), "Invalid port number"); +// for (int i = 0; i < 5; i++) { +// EXPECT_DEATH(server.ProcessRequest(i), +// "Invalid request .* in ProcessRequest()") +// << "Failed to die on request " << i; +// } +// +// ASSERT_EXIT(server.ExitNow(), ::testing::ExitedWithCode(0), "Exiting"); +// +// bool KilledBySIGHUP(int exit_code) { +// return WIFSIGNALED(exit_code) && WTERMSIG(exit_code) == SIGHUP; +// } +// +// ASSERT_EXIT(client.HangUpServer(), KilledBySIGHUP, "Hanging up!"); +// +// On the regular expressions used in death tests: +// +// On POSIX-compliant systems (*nix), we use the library, +// which uses the POSIX extended regex syntax. +// +// On other platforms (e.g. Windows), we only support a simple regex +// syntax implemented as part of Google Test. This limited +// implementation should be enough most of the time when writing +// death tests; though it lacks many features you can find in PCRE +// or POSIX extended regex syntax. For example, we don't support +// union ("x|y"), grouping ("(xy)"), brackets ("[xy]"), and +// repetition count ("x{5,7}"), among others. +// +// Below is the syntax that we do support. We chose it to be a +// subset of both PCRE and POSIX extended regex, so it's easy to +// learn wherever you come from. In the following: 'A' denotes a +// literal character, period (.), or a single \\ escape sequence; +// 'x' and 'y' denote regular expressions; 'm' and 'n' are for +// natural numbers. +// +// c matches any literal character c +// \\d matches any decimal digit +// \\D matches any character that's not a decimal digit +// \\f matches \f +// \\n matches \n +// \\r matches \r +// \\s matches any ASCII whitespace, including \n +// \\S matches any character that's not a whitespace +// \\t matches \t +// \\v matches \v +// \\w matches any letter, _, or decimal digit +// \\W matches any character that \\w doesn't match +// \\c matches any literal character c, which must be a punctuation +// . matches any single character except \n +// A? matches 0 or 1 occurrences of A +// A* matches 0 or many occurrences of A +// A+ matches 1 or many occurrences of A +// ^ matches the beginning of a string (not that of each line) +// $ matches the end of a string (not that of each line) +// xy matches x followed by y +// +// If you accidentally use PCRE or POSIX extended regex features +// not implemented by us, you will get a run-time failure. In that +// case, please try to rewrite your regular expression within the +// above syntax. +// +// This implementation is *not* meant to be as highly tuned or robust +// as a compiled regex library, but should perform well enough for a +// death test, which already incurs significant overhead by launching +// a child process. +// +// Known caveats: +// +// A "threadsafe" style death test obtains the path to the test +// program from argv[0] and re-executes it in the sub-process. For +// simplicity, the current implementation doesn't search the PATH +// when launching the sub-process. This means that the user must +// invoke the test program via a path that contains at least one +// path separator (e.g. path/to/foo_test and +// /absolute/path/to/bar_test are fine, but foo_test is not). This +// is rarely a problem as people usually don't put the test binary +// directory in PATH. +// +// TODO(wan@google.com): make thread-safe death tests search the PATH. + +// Asserts that a given statement causes the program to exit, with an +// integer exit status that satisfies predicate, and emitting error output +// that matches regex. +# define ASSERT_EXIT(statement, predicate, regex) \ + GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) + +// Like ASSERT_EXIT, but continues on to successive tests in the +// test case, if any: +# define EXPECT_EXIT(statement, predicate, regex) \ + GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) + +// Asserts that a given statement causes the program to exit, either by +// explicitly exiting with a nonzero exit code or being killed by a +// signal, and emitting error output that matches regex. +# define ASSERT_DEATH(statement, regex) \ + ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) + +// Like ASSERT_DEATH, but continues on to successive tests in the +// test case, if any: +# define EXPECT_DEATH(statement, regex) \ + EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) + +// Two predicate classes that can be used in {ASSERT,EXPECT}_EXIT*: + +// Tests that an exit code describes a normal exit with a given exit code. +class GTEST_API_ ExitedWithCode { + public: + explicit ExitedWithCode(int exit_code); + bool operator()(int exit_status) const; + private: + // No implementation - assignment is unsupported. + void operator=(const ExitedWithCode& other); + + const int exit_code_; +}; + +# if !GTEST_OS_WINDOWS +// Tests that an exit code describes an exit due to termination by a +// given signal. +class GTEST_API_ KilledBySignal { + public: + explicit KilledBySignal(int signum); + bool operator()(int exit_status) const; + private: + const int signum_; +}; +# endif // !GTEST_OS_WINDOWS + +// EXPECT_DEBUG_DEATH asserts that the given statements die in debug mode. +// The death testing framework causes this to have interesting semantics, +// since the sideeffects of the call are only visible in opt mode, and not +// in debug mode. +// +// In practice, this can be used to test functions that utilize the +// LOG(DFATAL) macro using the following style: +// +// int DieInDebugOr12(int* sideeffect) { +// if (sideeffect) { +// *sideeffect = 12; +// } +// LOG(DFATAL) << "death"; +// return 12; +// } +// +// TEST(TestCase, TestDieOr12WorksInDgbAndOpt) { +// int sideeffect = 0; +// // Only asserts in dbg. +// EXPECT_DEBUG_DEATH(DieInDebugOr12(&sideeffect), "death"); +// +// #ifdef NDEBUG +// // opt-mode has sideeffect visible. +// EXPECT_EQ(12, sideeffect); +// #else +// // dbg-mode no visible sideeffect. +// EXPECT_EQ(0, sideeffect); +// #endif +// } +// +// This will assert that DieInDebugReturn12InOpt() crashes in debug +// mode, usually due to a DCHECK or LOG(DFATAL), but returns the +// appropriate fallback value (12 in this case) in opt mode. If you +// need to test that a function has appropriate side-effects in opt +// mode, include assertions against the side-effects. A general +// pattern for this is: +// +// EXPECT_DEBUG_DEATH({ +// // Side-effects here will have an effect after this statement in +// // opt mode, but none in debug mode. +// EXPECT_EQ(12, DieInDebugOr12(&sideeffect)); +// }, "death"); +// +# ifdef NDEBUG + +# define EXPECT_DEBUG_DEATH(statement, regex) \ + GTEST_EXECUTE_STATEMENT_(statement, regex) + +# define ASSERT_DEBUG_DEATH(statement, regex) \ + GTEST_EXECUTE_STATEMENT_(statement, regex) + +# else + +# define EXPECT_DEBUG_DEATH(statement, regex) \ + EXPECT_DEATH(statement, regex) + +# define ASSERT_DEBUG_DEATH(statement, regex) \ + ASSERT_DEATH(statement, regex) + +# endif // NDEBUG for EXPECT_DEBUG_DEATH +#endif // GTEST_HAS_DEATH_TEST + +// EXPECT_DEATH_IF_SUPPORTED(statement, regex) and +// ASSERT_DEATH_IF_SUPPORTED(statement, regex) expand to real death tests if +// death tests are supported; otherwise they just issue a warning. This is +// useful when you are combining death test assertions with normal test +// assertions in one test. +#if GTEST_HAS_DEATH_TEST +# define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \ + EXPECT_DEATH(statement, regex) +# define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \ + ASSERT_DEATH(statement, regex) +#else +# define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \ + GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, ) +# define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \ + GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, return) +#endif + +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_ +// This file was GENERATED by command: +// pump.py gtest-param-test.h.pump +// DO NOT EDIT BY HAND!!! + +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: vladl@google.com (Vlad Losev) +// +// Macros and functions for implementing parameterized tests +// in Google C++ Testing Framework (Google Test) +// +// This file is generated by a SCRIPT. DO NOT EDIT BY HAND! +// +#ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_ +#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_ + + +// Value-parameterized tests allow you to test your code with different +// parameters without writing multiple copies of the same test. +// +// Here is how you use value-parameterized tests: + +#if 0 + +// To write value-parameterized tests, first you should define a fixture +// class. It is usually derived from testing::TestWithParam (see below for +// another inheritance scheme that's sometimes useful in more complicated +// class hierarchies), where the type of your parameter values. +// TestWithParam is itself derived from testing::Test. T can be any +// copyable type. If it's a raw pointer, you are responsible for managing the +// lifespan of the pointed values. + +class FooTest : public ::testing::TestWithParam { + // You can implement all the usual class fixture members here. +}; + +// Then, use the TEST_P macro to define as many parameterized tests +// for this fixture as you want. The _P suffix is for "parameterized" +// or "pattern", whichever you prefer to think. + +TEST_P(FooTest, DoesBlah) { + // Inside a test, access the test parameter with the GetParam() method + // of the TestWithParam class: + EXPECT_TRUE(foo.Blah(GetParam())); + ... +} + +TEST_P(FooTest, HasBlahBlah) { + ... +} + +// Finally, you can use INSTANTIATE_TEST_CASE_P to instantiate the test +// case with any set of parameters you want. Google Test defines a number +// of functions for generating test parameters. They return what we call +// (surprise!) parameter generators. Here is a summary of them, which +// are all in the testing namespace: +// +// +// Range(begin, end [, step]) - Yields values {begin, begin+step, +// begin+step+step, ...}. The values do not +// include end. step defaults to 1. +// Values(v1, v2, ..., vN) - Yields values {v1, v2, ..., vN}. +// ValuesIn(container) - Yields values from a C-style array, an STL +// ValuesIn(begin,end) container, or an iterator range [begin, end). +// Bool() - Yields sequence {false, true}. +// Combine(g1, g2, ..., gN) - Yields all combinations (the Cartesian product +// for the math savvy) of the values generated +// by the N generators. +// +// For more details, see comments at the definitions of these functions below +// in this file. +// +// The following statement will instantiate tests from the FooTest test case +// each with parameter values "meeny", "miny", and "moe". + +INSTANTIATE_TEST_CASE_P(InstantiationName, + FooTest, + Values("meeny", "miny", "moe")); + +// To distinguish different instances of the pattern, (yes, you +// can instantiate it more then once) the first argument to the +// INSTANTIATE_TEST_CASE_P macro is a prefix that will be added to the +// actual test case name. Remember to pick unique prefixes for different +// instantiations. The tests from the instantiation above will have +// these names: +// +// * InstantiationName/FooTest.DoesBlah/0 for "meeny" +// * InstantiationName/FooTest.DoesBlah/1 for "miny" +// * InstantiationName/FooTest.DoesBlah/2 for "moe" +// * InstantiationName/FooTest.HasBlahBlah/0 for "meeny" +// * InstantiationName/FooTest.HasBlahBlah/1 for "miny" +// * InstantiationName/FooTest.HasBlahBlah/2 for "moe" +// +// You can use these names in --gtest_filter. +// +// This statement will instantiate all tests from FooTest again, each +// with parameter values "cat" and "dog": + +const char* pets[] = {"cat", "dog"}; +INSTANTIATE_TEST_CASE_P(AnotherInstantiationName, FooTest, ValuesIn(pets)); + +// The tests from the instantiation above will have these names: +// +// * AnotherInstantiationName/FooTest.DoesBlah/0 for "cat" +// * AnotherInstantiationName/FooTest.DoesBlah/1 for "dog" +// * AnotherInstantiationName/FooTest.HasBlahBlah/0 for "cat" +// * AnotherInstantiationName/FooTest.HasBlahBlah/1 for "dog" +// +// Please note that INSTANTIATE_TEST_CASE_P will instantiate all tests +// in the given test case, whether their definitions come before or +// AFTER the INSTANTIATE_TEST_CASE_P statement. +// +// Please also note that generator expressions (including parameters to the +// generators) are evaluated in InitGoogleTest(), after main() has started. +// This allows the user on one hand, to adjust generator parameters in order +// to dynamically determine a set of tests to run and on the other hand, +// give the user a chance to inspect the generated tests with Google Test +// reflection API before RUN_ALL_TESTS() is executed. +// +// You can see samples/sample7_unittest.cc and samples/sample8_unittest.cc +// for more examples. +// +// In the future, we plan to publish the API for defining new parameter +// generators. But for now this interface remains part of the internal +// implementation and is subject to change. +// +// +// A parameterized test fixture must be derived from testing::Test and from +// testing::WithParamInterface, where T is the type of the parameter +// values. Inheriting from TestWithParam satisfies that requirement because +// TestWithParam inherits from both Test and WithParamInterface. In more +// complicated hierarchies, however, it is occasionally useful to inherit +// separately from Test and WithParamInterface. For example: + +class BaseTest : public ::testing::Test { + // You can inherit all the usual members for a non-parameterized test + // fixture here. +}; + +class DerivedTest : public BaseTest, public ::testing::WithParamInterface { + // The usual test fixture members go here too. +}; + +TEST_F(BaseTest, HasFoo) { + // This is an ordinary non-parameterized test. +} + +TEST_P(DerivedTest, DoesBlah) { + // GetParam works just the same here as if you inherit from TestWithParam. + EXPECT_TRUE(foo.Blah(GetParam())); +} + +#endif // 0 + + +#if !GTEST_OS_SYMBIAN +# include +#endif + +// scripts/fuse_gtest.py depends on gtest's own header being #included +// *unconditionally*. Therefore these #includes cannot be moved +// inside #if GTEST_HAS_PARAM_TEST. +// Copyright 2008 Google Inc. +// All Rights Reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: vladl@google.com (Vlad Losev) + +// Type and function utilities for implementing parameterized tests. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_ + +#include +#include +#include + +// scripts/fuse_gtest.py depends on gtest's own header being #included +// *unconditionally*. Therefore these #includes cannot be moved +// inside #if GTEST_HAS_PARAM_TEST. +// Copyright 2003 Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: Dan Egnor (egnor@google.com) +// +// A "smart" pointer type with reference tracking. Every pointer to a +// particular object is kept on a circular linked list. When the last pointer +// to an object is destroyed or reassigned, the object is deleted. +// +// Used properly, this deletes the object when the last reference goes away. +// There are several caveats: +// - Like all reference counting schemes, cycles lead to leaks. +// - Each smart pointer is actually two pointers (8 bytes instead of 4). +// - Every time a pointer is assigned, the entire list of pointers to that +// object is traversed. This class is therefore NOT SUITABLE when there +// will often be more than two or three pointers to a particular object. +// - References are only tracked as long as linked_ptr<> objects are copied. +// If a linked_ptr<> is converted to a raw pointer and back, BAD THINGS +// will happen (double deletion). +// +// A good use of this class is storing object references in STL containers. +// You can safely put linked_ptr<> in a vector<>. +// Other uses may not be as good. +// +// Note: If you use an incomplete type with linked_ptr<>, the class +// *containing* linked_ptr<> must have a constructor and destructor (even +// if they do nothing!). +// +// Bill Gibbons suggested we use something like this. +// +// Thread Safety: +// Unlike other linked_ptr implementations, in this implementation +// a linked_ptr object is thread-safe in the sense that: +// - it's safe to copy linked_ptr objects concurrently, +// - it's safe to copy *from* a linked_ptr and read its underlying +// raw pointer (e.g. via get()) concurrently, and +// - it's safe to write to two linked_ptrs that point to the same +// shared object concurrently. +// TODO(wan@google.com): rename this to safe_linked_ptr to avoid +// confusion with normal linked_ptr. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_ + +#include +#include + + +namespace testing { +namespace internal { + +// Protects copying of all linked_ptr objects. +GTEST_API_ GTEST_DECLARE_STATIC_MUTEX_(g_linked_ptr_mutex); + +// This is used internally by all instances of linked_ptr<>. It needs to be +// a non-template class because different types of linked_ptr<> can refer to +// the same object (linked_ptr(obj) vs linked_ptr(obj)). +// So, it needs to be possible for different types of linked_ptr to participate +// in the same circular linked list, so we need a single class type here. +// +// DO NOT USE THIS CLASS DIRECTLY YOURSELF. Use linked_ptr. +class linked_ptr_internal { + public: + // Create a new circle that includes only this instance. + void join_new() { + next_ = this; + } + + // Many linked_ptr operations may change p.link_ for some linked_ptr + // variable p in the same circle as this object. Therefore we need + // to prevent two such operations from occurring concurrently. + // + // Note that different types of linked_ptr objects can coexist in a + // circle (e.g. linked_ptr, linked_ptr, and + // linked_ptr). Therefore we must use a single mutex to + // protect all linked_ptr objects. This can create serious + // contention in production code, but is acceptable in a testing + // framework. + + // Join an existing circle. + void join(linked_ptr_internal const* ptr) + GTEST_LOCK_EXCLUDED_(g_linked_ptr_mutex) { + MutexLock lock(&g_linked_ptr_mutex); + + linked_ptr_internal const* p = ptr; + while (p->next_ != ptr) p = p->next_; + p->next_ = this; + next_ = ptr; + } + + // Leave whatever circle we're part of. Returns true if we were the + // last member of the circle. Once this is done, you can join() another. + bool depart() + GTEST_LOCK_EXCLUDED_(g_linked_ptr_mutex) { + MutexLock lock(&g_linked_ptr_mutex); + + if (next_ == this) return true; + linked_ptr_internal const* p = next_; + while (p->next_ != this) p = p->next_; + p->next_ = next_; + return false; + } + + private: + mutable linked_ptr_internal const* next_; +}; + +template +class linked_ptr { + public: + typedef T element_type; + + // Take over ownership of a raw pointer. This should happen as soon as + // possible after the object is created. + explicit linked_ptr(T* ptr = NULL) { capture(ptr); } + ~linked_ptr() { depart(); } + + // Copy an existing linked_ptr<>, adding ourselves to the list of references. + template linked_ptr(linked_ptr const& ptr) { copy(&ptr); } + linked_ptr(linked_ptr const& ptr) { // NOLINT + assert(&ptr != this); + copy(&ptr); + } + + // Assignment releases the old value and acquires the new. + template linked_ptr& operator=(linked_ptr const& ptr) { + depart(); + copy(&ptr); + return *this; + } + + linked_ptr& operator=(linked_ptr const& ptr) { + if (&ptr != this) { + depart(); + copy(&ptr); + } + return *this; + } + + // Smart pointer members. + void reset(T* ptr = NULL) { + depart(); + capture(ptr); + } + T* get() const { return value_; } + T* operator->() const { return value_; } + T& operator*() const { return *value_; } + + bool operator==(T* p) const { return value_ == p; } + bool operator!=(T* p) const { return value_ != p; } + template + bool operator==(linked_ptr const& ptr) const { + return value_ == ptr.get(); + } + template + bool operator!=(linked_ptr const& ptr) const { + return value_ != ptr.get(); + } + + private: + template + friend class linked_ptr; + + T* value_; + linked_ptr_internal link_; + + void depart() { + if (link_.depart()) delete value_; + } + + void capture(T* ptr) { + value_ = ptr; + link_.join_new(); + } + + template void copy(linked_ptr const* ptr) { + value_ = ptr->get(); + if (value_) + link_.join(&ptr->link_); + else + link_.join_new(); + } +}; + +template inline +bool operator==(T* ptr, const linked_ptr& x) { + return ptr == x.get(); +} + +template inline +bool operator!=(T* ptr, const linked_ptr& x) { + return ptr != x.get(); +} + +// A function to convert T* into linked_ptr +// Doing e.g. make_linked_ptr(new FooBarBaz(arg)) is a shorter notation +// for linked_ptr >(new FooBarBaz(arg)) +template +linked_ptr make_linked_ptr(T* ptr) { + return linked_ptr(ptr); +} + +} // namespace internal +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_ +// Copyright 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + +// Google Test - The Google C++ Testing Framework +// +// This file implements a universal value printer that can print a +// value of any type T: +// +// void ::testing::internal::UniversalPrinter::Print(value, ostream_ptr); +// +// A user can teach this function how to print a class type T by +// defining either operator<<() or PrintTo() in the namespace that +// defines T. More specifically, the FIRST defined function in the +// following list will be used (assuming T is defined in namespace +// foo): +// +// 1. foo::PrintTo(const T&, ostream*) +// 2. operator<<(ostream&, const T&) defined in either foo or the +// global namespace. +// +// If none of the above is defined, it will print the debug string of +// the value if it is a protocol buffer, or print the raw bytes in the +// value otherwise. +// +// To aid debugging: when T is a reference type, the address of the +// value is also printed; when T is a (const) char pointer, both the +// pointer value and the NUL-terminated string it points to are +// printed. +// +// We also provide some convenient wrappers: +// +// // Prints a value to a string. For a (const or not) char +// // pointer, the NUL-terminated string (but not the pointer) is +// // printed. +// std::string ::testing::PrintToString(const T& value); +// +// // Prints a value tersely: for a reference type, the referenced +// // value (but not the address) is printed; for a (const or not) char +// // pointer, the NUL-terminated string (but not the pointer) is +// // printed. +// void ::testing::internal::UniversalTersePrint(const T& value, ostream*); +// +// // Prints value using the type inferred by the compiler. The difference +// // from UniversalTersePrint() is that this function prints both the +// // pointer and the NUL-terminated string for a (const or not) char pointer. +// void ::testing::internal::UniversalPrint(const T& value, ostream*); +// +// // Prints the fields of a tuple tersely to a string vector, one +// // element for each field. Tuple support must be enabled in +// // gtest-port.h. +// std::vector UniversalTersePrintTupleFieldsToStrings( +// const Tuple& value); +// +// Known limitation: +// +// The print primitives print the elements of an STL-style container +// using the compiler-inferred type of *iter where iter is a +// const_iterator of the container. When const_iterator is an input +// iterator but not a forward iterator, this inferred type may not +// match value_type, and the print output may be incorrect. In +// practice, this is rarely a problem as for most containers +// const_iterator is a forward iterator. We'll fix this if there's an +// actual need for it. Note that this fix cannot rely on value_type +// being defined as many user-defined container types don't have +// value_type. + +#ifndef GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_ +#define GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_ + +#include // NOLINT +#include +#include +#include +#include + +namespace testing { + +// Definitions in the 'internal' and 'internal2' name spaces are +// subject to change without notice. DO NOT USE THEM IN USER CODE! +namespace internal2 { + +// Prints the given number of bytes in the given object to the given +// ostream. +GTEST_API_ void PrintBytesInObjectTo(const unsigned char* obj_bytes, + size_t count, + ::std::ostream* os); + +// For selecting which printer to use when a given type has neither << +// nor PrintTo(). +enum TypeKind { + kProtobuf, // a protobuf type + kConvertibleToInteger, // a type implicitly convertible to BiggestInt + // (e.g. a named or unnamed enum type) + kOtherType // anything else +}; + +// TypeWithoutFormatter::PrintValue(value, os) is called +// by the universal printer to print a value of type T when neither +// operator<< nor PrintTo() is defined for T, where kTypeKind is the +// "kind" of T as defined by enum TypeKind. +template +class TypeWithoutFormatter { + public: + // This default version is called when kTypeKind is kOtherType. + static void PrintValue(const T& value, ::std::ostream* os) { + PrintBytesInObjectTo(reinterpret_cast(&value), + sizeof(value), os); + } +}; + +// We print a protobuf using its ShortDebugString() when the string +// doesn't exceed this many characters; otherwise we print it using +// DebugString() for better readability. +const size_t kProtobufOneLinerMaxLength = 50; + +template +class TypeWithoutFormatter { + public: + static void PrintValue(const T& value, ::std::ostream* os) { + const ::testing::internal::string short_str = value.ShortDebugString(); + const ::testing::internal::string pretty_str = + short_str.length() <= kProtobufOneLinerMaxLength ? + short_str : ("\n" + value.DebugString()); + *os << ("<" + pretty_str + ">"); + } +}; + +template +class TypeWithoutFormatter { + public: + // Since T has no << operator or PrintTo() but can be implicitly + // converted to BiggestInt, we print it as a BiggestInt. + // + // Most likely T is an enum type (either named or unnamed), in which + // case printing it as an integer is the desired behavior. In case + // T is not an enum, printing it as an integer is the best we can do + // given that it has no user-defined printer. + static void PrintValue(const T& value, ::std::ostream* os) { + const internal::BiggestInt kBigInt = value; + *os << kBigInt; + } +}; + +// Prints the given value to the given ostream. If the value is a +// protocol message, its debug string is printed; if it's an enum or +// of a type implicitly convertible to BiggestInt, it's printed as an +// integer; otherwise the bytes in the value are printed. This is +// what UniversalPrinter::Print() does when it knows nothing about +// type T and T has neither << operator nor PrintTo(). +// +// A user can override this behavior for a class type Foo by defining +// a << operator in the namespace where Foo is defined. +// +// We put this operator in namespace 'internal2' instead of 'internal' +// to simplify the implementation, as much code in 'internal' needs to +// use << in STL, which would conflict with our own << were it defined +// in 'internal'. +// +// Note that this operator<< takes a generic std::basic_ostream type instead of the more restricted std::ostream. If +// we define it to take an std::ostream instead, we'll get an +// "ambiguous overloads" compiler error when trying to print a type +// Foo that supports streaming to std::basic_ostream, as the compiler cannot tell whether +// operator<<(std::ostream&, const T&) or +// operator<<(std::basic_stream, const Foo&) is more +// specific. +template +::std::basic_ostream& operator<<( + ::std::basic_ostream& os, const T& x) { + TypeWithoutFormatter::value ? kProtobuf : + internal::ImplicitlyConvertible::value ? + kConvertibleToInteger : kOtherType)>::PrintValue(x, &os); + return os; +} + +} // namespace internal2 +} // namespace testing + +// This namespace MUST NOT BE NESTED IN ::testing, or the name look-up +// magic needed for implementing UniversalPrinter won't work. +namespace testing_internal { + +// Used to print a value that is not an STL-style container when the +// user doesn't define PrintTo() for it. +template +void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) { + // With the following statement, during unqualified name lookup, + // testing::internal2::operator<< appears as if it was declared in + // the nearest enclosing namespace that contains both + // ::testing_internal and ::testing::internal2, i.e. the global + // namespace. For more details, refer to the C++ Standard section + // 7.3.4-1 [namespace.udir]. This allows us to fall back onto + // testing::internal2::operator<< in case T doesn't come with a << + // operator. + // + // We cannot write 'using ::testing::internal2::operator<<;', which + // gcc 3.3 fails to compile due to a compiler bug. + using namespace ::testing::internal2; // NOLINT + + // Assuming T is defined in namespace foo, in the next statement, + // the compiler will consider all of: + // + // 1. foo::operator<< (thanks to Koenig look-up), + // 2. ::operator<< (as the current namespace is enclosed in ::), + // 3. testing::internal2::operator<< (thanks to the using statement above). + // + // The operator<< whose type matches T best will be picked. + // + // We deliberately allow #2 to be a candidate, as sometimes it's + // impossible to define #1 (e.g. when foo is ::std, defining + // anything in it is undefined behavior unless you are a compiler + // vendor.). + *os << value; +} + +} // namespace testing_internal + +namespace testing { +namespace internal { + +// UniversalPrinter::Print(value, ostream_ptr) prints the given +// value to the given ostream. The caller must ensure that +// 'ostream_ptr' is not NULL, or the behavior is undefined. +// +// We define UniversalPrinter as a class template (as opposed to a +// function template), as we need to partially specialize it for +// reference types, which cannot be done with function templates. +template +class UniversalPrinter; + +template +void UniversalPrint(const T& value, ::std::ostream* os); + +// Used to print an STL-style container when the user doesn't define +// a PrintTo() for it. +template +void DefaultPrintTo(IsContainer /* dummy */, + false_type /* is not a pointer */, + const C& container, ::std::ostream* os) { + const size_t kMaxCount = 32; // The maximum number of elements to print. + *os << '{'; + size_t count = 0; + for (typename C::const_iterator it = container.begin(); + it != container.end(); ++it, ++count) { + if (count > 0) { + *os << ','; + if (count == kMaxCount) { // Enough has been printed. + *os << " ..."; + break; + } + } + *os << ' '; + // We cannot call PrintTo(*it, os) here as PrintTo() doesn't + // handle *it being a native array. + internal::UniversalPrint(*it, os); + } + + if (count > 0) { + *os << ' '; + } + *os << '}'; +} + +// Used to print a pointer that is neither a char pointer nor a member +// pointer, when the user doesn't define PrintTo() for it. (A member +// variable pointer or member function pointer doesn't really point to +// a location in the address space. Their representation is +// implementation-defined. Therefore they will be printed as raw +// bytes.) +template +void DefaultPrintTo(IsNotContainer /* dummy */, + true_type /* is a pointer */, + T* p, ::std::ostream* os) { + if (p == NULL) { + *os << "NULL"; + } else { + // C++ doesn't allow casting from a function pointer to any object + // pointer. + // + // IsTrue() silences warnings: "Condition is always true", + // "unreachable code". + if (IsTrue(ImplicitlyConvertible::value)) { + // T is not a function type. We just call << to print p, + // relying on ADL to pick up user-defined << for their pointer + // types, if any. + *os << p; + } else { + // T is a function type, so '*os << p' doesn't do what we want + // (it just prints p as bool). We want to print p as a const + // void*. However, we cannot cast it to const void* directly, + // even using reinterpret_cast, as earlier versions of gcc + // (e.g. 3.4.5) cannot compile the cast when p is a function + // pointer. Casting to UInt64 first solves the problem. + *os << reinterpret_cast( + reinterpret_cast(p)); + } + } +} + +// Used to print a non-container, non-pointer value when the user +// doesn't define PrintTo() for it. +template +void DefaultPrintTo(IsNotContainer /* dummy */, + false_type /* is not a pointer */, + const T& value, ::std::ostream* os) { + ::testing_internal::DefaultPrintNonContainerTo(value, os); +} + +// Prints the given value using the << operator if it has one; +// otherwise prints the bytes in it. This is what +// UniversalPrinter::Print() does when PrintTo() is not specialized +// or overloaded for type T. +// +// A user can override this behavior for a class type Foo by defining +// an overload of PrintTo() in the namespace where Foo is defined. We +// give the user this option as sometimes defining a << operator for +// Foo is not desirable (e.g. the coding style may prevent doing it, +// or there is already a << operator but it doesn't do what the user +// wants). +template +void PrintTo(const T& value, ::std::ostream* os) { + // DefaultPrintTo() is overloaded. The type of its first two + // arguments determine which version will be picked. If T is an + // STL-style container, the version for container will be called; if + // T is a pointer, the pointer version will be called; otherwise the + // generic version will be called. + // + // Note that we check for container types here, prior to we check + // for protocol message types in our operator<<. The rationale is: + // + // For protocol messages, we want to give people a chance to + // override Google Mock's format by defining a PrintTo() or + // operator<<. For STL containers, other formats can be + // incompatible with Google Mock's format for the container + // elements; therefore we check for container types here to ensure + // that our format is used. + // + // The second argument of DefaultPrintTo() is needed to bypass a bug + // in Symbian's C++ compiler that prevents it from picking the right + // overload between: + // + // PrintTo(const T& x, ...); + // PrintTo(T* x, ...); + DefaultPrintTo(IsContainerTest(0), is_pointer(), value, os); +} + +// The following list of PrintTo() overloads tells +// UniversalPrinter::Print() how to print standard types (built-in +// types, strings, plain arrays, and pointers). + +// Overloads for various char types. +GTEST_API_ void PrintTo(unsigned char c, ::std::ostream* os); +GTEST_API_ void PrintTo(signed char c, ::std::ostream* os); +inline void PrintTo(char c, ::std::ostream* os) { + // When printing a plain char, we always treat it as unsigned. This + // way, the output won't be affected by whether the compiler thinks + // char is signed or not. + PrintTo(static_cast(c), os); +} + +// Overloads for other simple built-in types. +inline void PrintTo(bool x, ::std::ostream* os) { + *os << (x ? "true" : "false"); +} + +// Overload for wchar_t type. +// Prints a wchar_t as a symbol if it is printable or as its internal +// code otherwise and also as its decimal code (except for L'\0'). +// The L'\0' char is printed as "L'\\0'". The decimal code is printed +// as signed integer when wchar_t is implemented by the compiler +// as a signed type and is printed as an unsigned integer when wchar_t +// is implemented as an unsigned type. +GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os); + +// Overloads for C strings. +GTEST_API_ void PrintTo(const char* s, ::std::ostream* os); +inline void PrintTo(char* s, ::std::ostream* os) { + PrintTo(ImplicitCast_(s), os); +} + +// signed/unsigned char is often used for representing binary data, so +// we print pointers to it as void* to be safe. +inline void PrintTo(const signed char* s, ::std::ostream* os) { + PrintTo(ImplicitCast_(s), os); +} +inline void PrintTo(signed char* s, ::std::ostream* os) { + PrintTo(ImplicitCast_(s), os); +} +inline void PrintTo(const unsigned char* s, ::std::ostream* os) { + PrintTo(ImplicitCast_(s), os); +} +inline void PrintTo(unsigned char* s, ::std::ostream* os) { + PrintTo(ImplicitCast_(s), os); +} + +// MSVC can be configured to define wchar_t as a typedef of unsigned +// short. It defines _NATIVE_WCHAR_T_DEFINED when wchar_t is a native +// type. When wchar_t is a typedef, defining an overload for const +// wchar_t* would cause unsigned short* be printed as a wide string, +// possibly causing invalid memory accesses. +#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) +// Overloads for wide C strings +GTEST_API_ void PrintTo(const wchar_t* s, ::std::ostream* os); +inline void PrintTo(wchar_t* s, ::std::ostream* os) { + PrintTo(ImplicitCast_(s), os); +} +#endif + +// Overload for C arrays. Multi-dimensional arrays are printed +// properly. + +// Prints the given number of elements in an array, without printing +// the curly braces. +template +void PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) { + UniversalPrint(a[0], os); + for (size_t i = 1; i != count; i++) { + *os << ", "; + UniversalPrint(a[i], os); + } +} + +// Overloads for ::string and ::std::string. +#if GTEST_HAS_GLOBAL_STRING +GTEST_API_ void PrintStringTo(const ::string&s, ::std::ostream* os); +inline void PrintTo(const ::string& s, ::std::ostream* os) { + PrintStringTo(s, os); +} +#endif // GTEST_HAS_GLOBAL_STRING + +GTEST_API_ void PrintStringTo(const ::std::string&s, ::std::ostream* os); +inline void PrintTo(const ::std::string& s, ::std::ostream* os) { + PrintStringTo(s, os); +} + +// Overloads for ::wstring and ::std::wstring. +#if GTEST_HAS_GLOBAL_WSTRING +GTEST_API_ void PrintWideStringTo(const ::wstring&s, ::std::ostream* os); +inline void PrintTo(const ::wstring& s, ::std::ostream* os) { + PrintWideStringTo(s, os); +} +#endif // GTEST_HAS_GLOBAL_WSTRING + +#if GTEST_HAS_STD_WSTRING +GTEST_API_ void PrintWideStringTo(const ::std::wstring&s, ::std::ostream* os); +inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) { + PrintWideStringTo(s, os); +} +#endif // GTEST_HAS_STD_WSTRING + +#if GTEST_HAS_TR1_TUPLE +// Overload for ::std::tr1::tuple. Needed for printing function arguments, +// which are packed as tuples. + +// Helper function for printing a tuple. T must be instantiated with +// a tuple type. +template +void PrintTupleTo(const T& t, ::std::ostream* os); + +// Overloaded PrintTo() for tuples of various arities. We support +// tuples of up-to 10 fields. The following implementation works +// regardless of whether tr1::tuple is implemented using the +// non-standard variadic template feature or not. + +inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, + ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, + ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, + ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, + ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo(const ::std::tr1::tuple& t, + ::std::ostream* os) { + PrintTupleTo(t, os); +} + +template +void PrintTo( + const ::std::tr1::tuple& t, + ::std::ostream* os) { + PrintTupleTo(t, os); +} +#endif // GTEST_HAS_TR1_TUPLE + +// Overload for std::pair. +template +void PrintTo(const ::std::pair& value, ::std::ostream* os) { + *os << '('; + // We cannot use UniversalPrint(value.first, os) here, as T1 may be + // a reference type. The same for printing value.second. + UniversalPrinter::Print(value.first, os); + *os << ", "; + UniversalPrinter::Print(value.second, os); + *os << ')'; +} + +// Implements printing a non-reference type T by letting the compiler +// pick the right overload of PrintTo() for T. +template +class UniversalPrinter { + public: + // MSVC warns about adding const to a function type, so we want to + // disable the warning. +#ifdef _MSC_VER +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4180) // Temporarily disables warning 4180. +#endif // _MSC_VER + + // Note: we deliberately don't call this PrintTo(), as that name + // conflicts with ::testing::internal::PrintTo in the body of the + // function. + static void Print(const T& value, ::std::ostream* os) { + // By default, ::testing::internal::PrintTo() is used for printing + // the value. + // + // Thanks to Koenig look-up, if T is a class and has its own + // PrintTo() function defined in its namespace, that function will + // be visible here. Since it is more specific than the generic ones + // in ::testing::internal, it will be picked by the compiler in the + // following statement - exactly what we want. + PrintTo(value, os); + } + +#ifdef _MSC_VER +# pragma warning(pop) // Restores the warning state. +#endif // _MSC_VER +}; + +// UniversalPrintArray(begin, len, os) prints an array of 'len' +// elements, starting at address 'begin'. +template +void UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) { + if (len == 0) { + *os << "{}"; + } else { + *os << "{ "; + const size_t kThreshold = 18; + const size_t kChunkSize = 8; + // If the array has more than kThreshold elements, we'll have to + // omit some details by printing only the first and the last + // kChunkSize elements. + // TODO(wan@google.com): let the user control the threshold using a flag. + if (len <= kThreshold) { + PrintRawArrayTo(begin, len, os); + } else { + PrintRawArrayTo(begin, kChunkSize, os); + *os << ", ..., "; + PrintRawArrayTo(begin + len - kChunkSize, kChunkSize, os); + } + *os << " }"; + } +} +// This overload prints a (const) char array compactly. +GTEST_API_ void UniversalPrintArray( + const char* begin, size_t len, ::std::ostream* os); + +// This overload prints a (const) wchar_t array compactly. +GTEST_API_ void UniversalPrintArray( + const wchar_t* begin, size_t len, ::std::ostream* os); + +// Implements printing an array type T[N]. +template +class UniversalPrinter { + public: + // Prints the given array, omitting some elements when there are too + // many. + static void Print(const T (&a)[N], ::std::ostream* os) { + UniversalPrintArray(a, N, os); + } +}; + +// Implements printing a reference type T&. +template +class UniversalPrinter { + public: + // MSVC warns about adding const to a function type, so we want to + // disable the warning. +#ifdef _MSC_VER +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4180) // Temporarily disables warning 4180. +#endif // _MSC_VER + + static void Print(const T& value, ::std::ostream* os) { + // Prints the address of the value. We use reinterpret_cast here + // as static_cast doesn't compile when T is a function type. + *os << "@" << reinterpret_cast(&value) << " "; + + // Then prints the value itself. + UniversalPrint(value, os); + } + +#ifdef _MSC_VER +# pragma warning(pop) // Restores the warning state. +#endif // _MSC_VER +}; + +// Prints a value tersely: for a reference type, the referenced value +// (but not the address) is printed; for a (const) char pointer, the +// NUL-terminated string (but not the pointer) is printed. + +template +class UniversalTersePrinter { + public: + static void Print(const T& value, ::std::ostream* os) { + UniversalPrint(value, os); + } +}; +template +class UniversalTersePrinter { + public: + static void Print(const T& value, ::std::ostream* os) { + UniversalPrint(value, os); + } +}; +template +class UniversalTersePrinter { + public: + static void Print(const T (&value)[N], ::std::ostream* os) { + UniversalPrinter::Print(value, os); + } +}; +template <> +class UniversalTersePrinter { + public: + static void Print(const char* str, ::std::ostream* os) { + if (str == NULL) { + *os << "NULL"; + } else { + UniversalPrint(string(str), os); + } + } +}; +template <> +class UniversalTersePrinter { + public: + static void Print(char* str, ::std::ostream* os) { + UniversalTersePrinter::Print(str, os); + } +}; + +#if GTEST_HAS_STD_WSTRING +template <> +class UniversalTersePrinter { + public: + static void Print(const wchar_t* str, ::std::ostream* os) { + if (str == NULL) { + *os << "NULL"; + } else { + UniversalPrint(::std::wstring(str), os); + } + } +}; +#endif + +template <> +class UniversalTersePrinter { + public: + static void Print(wchar_t* str, ::std::ostream* os) { + UniversalTersePrinter::Print(str, os); + } +}; + +template +void UniversalTersePrint(const T& value, ::std::ostream* os) { + UniversalTersePrinter::Print(value, os); +} + +// Prints a value using the type inferred by the compiler. The +// difference between this and UniversalTersePrint() is that for a +// (const) char pointer, this prints both the pointer and the +// NUL-terminated string. +template +void UniversalPrint(const T& value, ::std::ostream* os) { + // A workarond for the bug in VC++ 7.1 that prevents us from instantiating + // UniversalPrinter with T directly. + typedef T T1; + UniversalPrinter::Print(value, os); +} + +#if GTEST_HAS_TR1_TUPLE +typedef ::std::vector Strings; + +// This helper template allows PrintTo() for tuples and +// UniversalTersePrintTupleFieldsToStrings() to be defined by +// induction on the number of tuple fields. The idea is that +// TuplePrefixPrinter::PrintPrefixTo(t, os) prints the first N +// fields in tuple t, and can be defined in terms of +// TuplePrefixPrinter. + +// The inductive case. +template +struct TuplePrefixPrinter { + // Prints the first N fields of a tuple. + template + static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { + TuplePrefixPrinter::PrintPrefixTo(t, os); + *os << ", "; + UniversalPrinter::type> + ::Print(::std::tr1::get(t), os); + } + + // Tersely prints the first N fields of a tuple to a string vector, + // one element for each field. + template + static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { + TuplePrefixPrinter::TersePrintPrefixToStrings(t, strings); + ::std::stringstream ss; + UniversalTersePrint(::std::tr1::get(t), &ss); + strings->push_back(ss.str()); + } +}; + +// Base cases. +template <> +struct TuplePrefixPrinter<0> { + template + static void PrintPrefixTo(const Tuple&, ::std::ostream*) {} + + template + static void TersePrintPrefixToStrings(const Tuple&, Strings*) {} +}; +// We have to specialize the entire TuplePrefixPrinter<> class +// template here, even though the definition of +// TersePrintPrefixToStrings() is the same as the generic version, as +// Embarcadero (formerly CodeGear, formerly Borland) C++ doesn't +// support specializing a method template of a class template. +template <> +struct TuplePrefixPrinter<1> { + template + static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { + UniversalPrinter::type>:: + Print(::std::tr1::get<0>(t), os); + } + + template + static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { + ::std::stringstream ss; + UniversalTersePrint(::std::tr1::get<0>(t), &ss); + strings->push_back(ss.str()); + } +}; + +// Helper function for printing a tuple. T must be instantiated with +// a tuple type. +template +void PrintTupleTo(const T& t, ::std::ostream* os) { + *os << "("; + TuplePrefixPrinter< ::std::tr1::tuple_size::value>:: + PrintPrefixTo(t, os); + *os << ")"; +} + +// Prints the fields of a tuple tersely to a string vector, one +// element for each field. See the comment before +// UniversalTersePrint() for how we define "tersely". +template +Strings UniversalTersePrintTupleFieldsToStrings(const Tuple& value) { + Strings result; + TuplePrefixPrinter< ::std::tr1::tuple_size::value>:: + TersePrintPrefixToStrings(value, &result); + return result; +} +#endif // GTEST_HAS_TR1_TUPLE + +} // namespace internal + +template +::std::string PrintToString(const T& value) { + ::std::stringstream ss; + internal::UniversalTersePrinter::Print(value, &ss); + return ss.str(); +} + +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_ + +#if GTEST_HAS_PARAM_TEST + +namespace testing { +namespace internal { + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Outputs a message explaining invalid registration of different +// fixture class for the same test case. This may happen when +// TEST_P macro is used to define two tests with the same name +// but in different namespaces. +GTEST_API_ void ReportInvalidTestCaseType(const char* test_case_name, + const char* file, int line); + +template class ParamGeneratorInterface; +template class ParamGenerator; + +// Interface for iterating over elements provided by an implementation +// of ParamGeneratorInterface. +template +class ParamIteratorInterface { + public: + virtual ~ParamIteratorInterface() {} + // A pointer to the base generator instance. + // Used only for the purposes of iterator comparison + // to make sure that two iterators belong to the same generator. + virtual const ParamGeneratorInterface* BaseGenerator() const = 0; + // Advances iterator to point to the next element + // provided by the generator. The caller is responsible + // for not calling Advance() on an iterator equal to + // BaseGenerator()->End(). + virtual void Advance() = 0; + // Clones the iterator object. Used for implementing copy semantics + // of ParamIterator. + virtual ParamIteratorInterface* Clone() const = 0; + // Dereferences the current iterator and provides (read-only) access + // to the pointed value. It is the caller's responsibility not to call + // Current() on an iterator equal to BaseGenerator()->End(). + // Used for implementing ParamGenerator::operator*(). + virtual const T* Current() const = 0; + // Determines whether the given iterator and other point to the same + // element in the sequence generated by the generator. + // Used for implementing ParamGenerator::operator==(). + virtual bool Equals(const ParamIteratorInterface& other) const = 0; +}; + +// Class iterating over elements provided by an implementation of +// ParamGeneratorInterface. It wraps ParamIteratorInterface +// and implements the const forward iterator concept. +template +class ParamIterator { + public: + typedef T value_type; + typedef const T& reference; + typedef ptrdiff_t difference_type; + + // ParamIterator assumes ownership of the impl_ pointer. + ParamIterator(const ParamIterator& other) : impl_(other.impl_->Clone()) {} + ParamIterator& operator=(const ParamIterator& other) { + if (this != &other) + impl_.reset(other.impl_->Clone()); + return *this; + } + + const T& operator*() const { return *impl_->Current(); } + const T* operator->() const { return impl_->Current(); } + // Prefix version of operator++. + ParamIterator& operator++() { + impl_->Advance(); + return *this; + } + // Postfix version of operator++. + ParamIterator operator++(int /*unused*/) { + ParamIteratorInterface* clone = impl_->Clone(); + impl_->Advance(); + return ParamIterator(clone); + } + bool operator==(const ParamIterator& other) const { + return impl_.get() == other.impl_.get() || impl_->Equals(*other.impl_); + } + bool operator!=(const ParamIterator& other) const { + return !(*this == other); + } + + private: + friend class ParamGenerator; + explicit ParamIterator(ParamIteratorInterface* impl) : impl_(impl) {} + scoped_ptr > impl_; +}; + +// ParamGeneratorInterface is the binary interface to access generators +// defined in other translation units. +template +class ParamGeneratorInterface { + public: + typedef T ParamType; + + virtual ~ParamGeneratorInterface() {} + + // Generator interface definition + virtual ParamIteratorInterface* Begin() const = 0; + virtual ParamIteratorInterface* End() const = 0; +}; + +// Wraps ParamGeneratorInterface and provides general generator syntax +// compatible with the STL Container concept. +// This class implements copy initialization semantics and the contained +// ParamGeneratorInterface instance is shared among all copies +// of the original object. This is possible because that instance is immutable. +template +class ParamGenerator { + public: + typedef ParamIterator iterator; + + explicit ParamGenerator(ParamGeneratorInterface* impl) : impl_(impl) {} + ParamGenerator(const ParamGenerator& other) : impl_(other.impl_) {} + + ParamGenerator& operator=(const ParamGenerator& other) { + impl_ = other.impl_; + return *this; + } + + iterator begin() const { return iterator(impl_->Begin()); } + iterator end() const { return iterator(impl_->End()); } + + private: + linked_ptr > impl_; +}; + +// Generates values from a range of two comparable values. Can be used to +// generate sequences of user-defined types that implement operator+() and +// operator<(). +// This class is used in the Range() function. +template +class RangeGenerator : public ParamGeneratorInterface { + public: + RangeGenerator(T begin, T end, IncrementT step) + : begin_(begin), end_(end), + step_(step), end_index_(CalculateEndIndex(begin, end, step)) {} + virtual ~RangeGenerator() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, begin_, 0, step_); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, end_, end_index_, step_); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, T value, int index, + IncrementT step) + : base_(base), value_(value), index_(index), step_(step) {} + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + virtual void Advance() { + value_ = value_ + step_; + index_++; + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const T* Current() const { return &value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const int other_index = + CheckedDowncastToActualType(&other)->index_; + return index_ == other_index; + } + + private: + Iterator(const Iterator& other) + : ParamIteratorInterface(), + base_(other.base_), value_(other.value_), index_(other.index_), + step_(other.step_) {} + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + T value_; + int index_; + const IncrementT step_; + }; // class RangeGenerator::Iterator + + static int CalculateEndIndex(const T& begin, + const T& end, + const IncrementT& step) { + int end_index = 0; + for (T i = begin; i < end; i = i + step) + end_index++; + return end_index; + } + + // No implementation - assignment is unsupported. + void operator=(const RangeGenerator& other); + + const T begin_; + const T end_; + const IncrementT step_; + // The index for the end() iterator. All the elements in the generated + // sequence are indexed (0-based) to aid iterator comparison. + const int end_index_; +}; // class RangeGenerator + + +// Generates values from a pair of STL-style iterators. Used in the +// ValuesIn() function. The elements are copied from the source range +// since the source can be located on the stack, and the generator +// is likely to persist beyond that stack frame. +template +class ValuesInIteratorRangeGenerator : public ParamGeneratorInterface { + public: + template + ValuesInIteratorRangeGenerator(ForwardIterator begin, ForwardIterator end) + : container_(begin, end) {} + virtual ~ValuesInIteratorRangeGenerator() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, container_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, container_.end()); + } + + private: + typedef typename ::std::vector ContainerType; + + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + typename ContainerType::const_iterator iterator) + : base_(base), iterator_(iterator) {} + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + virtual void Advance() { + ++iterator_; + value_.reset(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + // We need to use cached value referenced by iterator_ because *iterator_ + // can return a temporary object (and of type other then T), so just + // having "return &*iterator_;" doesn't work. + // value_ is updated here and not in Advance() because Advance() + // can advance iterator_ beyond the end of the range, and we cannot + // detect that fact. The client code, on the other hand, is + // responsible for not calling Current() on an out-of-range iterator. + virtual const T* Current() const { + if (value_.get() == NULL) + value_.reset(new T(*iterator_)); + return value_.get(); + } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + return iterator_ == + CheckedDowncastToActualType(&other)->iterator_; + } + + private: + Iterator(const Iterator& other) + // The explicit constructor call suppresses a false warning + // emitted by gcc when supplied with the -Wextra option. + : ParamIteratorInterface(), + base_(other.base_), + iterator_(other.iterator_) {} + + const ParamGeneratorInterface* const base_; + typename ContainerType::const_iterator iterator_; + // A cached value of *iterator_. We keep it here to allow access by + // pointer in the wrapping iterator's operator->(). + // value_ needs to be mutable to be accessed in Current(). + // Use of scoped_ptr helps manage cached value's lifetime, + // which is bound by the lifespan of the iterator itself. + mutable scoped_ptr value_; + }; // class ValuesInIteratorRangeGenerator::Iterator + + // No implementation - assignment is unsupported. + void operator=(const ValuesInIteratorRangeGenerator& other); + + const ContainerType container_; +}; // class ValuesInIteratorRangeGenerator + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Stores a parameter value and later creates tests parameterized with that +// value. +template +class ParameterizedTestFactory : public TestFactoryBase { + public: + typedef typename TestClass::ParamType ParamType; + explicit ParameterizedTestFactory(ParamType parameter) : + parameter_(parameter) {} + virtual Test* CreateTest() { + TestClass::SetParam(¶meter_); + return new TestClass(); + } + + private: + const ParamType parameter_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ParameterizedTestFactory); +}; + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// TestMetaFactoryBase is a base class for meta-factories that create +// test factories for passing into MakeAndRegisterTestInfo function. +template +class TestMetaFactoryBase { + public: + virtual ~TestMetaFactoryBase() {} + + virtual TestFactoryBase* CreateTestFactory(ParamType parameter) = 0; +}; + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// TestMetaFactory creates test factories for passing into +// MakeAndRegisterTestInfo function. Since MakeAndRegisterTestInfo receives +// ownership of test factory pointer, same factory object cannot be passed +// into that method twice. But ParameterizedTestCaseInfo is going to call +// it for each Test/Parameter value combination. Thus it needs meta factory +// creator class. +template +class TestMetaFactory + : public TestMetaFactoryBase { + public: + typedef typename TestCase::ParamType ParamType; + + TestMetaFactory() {} + + virtual TestFactoryBase* CreateTestFactory(ParamType parameter) { + return new ParameterizedTestFactory(parameter); + } + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestMetaFactory); +}; + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// ParameterizedTestCaseInfoBase is a generic interface +// to ParameterizedTestCaseInfo classes. ParameterizedTestCaseInfoBase +// accumulates test information provided by TEST_P macro invocations +// and generators provided by INSTANTIATE_TEST_CASE_P macro invocations +// and uses that information to register all resulting test instances +// in RegisterTests method. The ParameterizeTestCaseRegistry class holds +// a collection of pointers to the ParameterizedTestCaseInfo objects +// and calls RegisterTests() on each of them when asked. +class ParameterizedTestCaseInfoBase { + public: + virtual ~ParameterizedTestCaseInfoBase() {} + + // Base part of test case name for display purposes. + virtual const string& GetTestCaseName() const = 0; + // Test case id to verify identity. + virtual TypeId GetTestCaseTypeId() const = 0; + // UnitTest class invokes this method to register tests in this + // test case right before running them in RUN_ALL_TESTS macro. + // This method should not be called more then once on any single + // instance of a ParameterizedTestCaseInfoBase derived class. + virtual void RegisterTests() = 0; + + protected: + ParameterizedTestCaseInfoBase() {} + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(ParameterizedTestCaseInfoBase); +}; + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// ParameterizedTestCaseInfo accumulates tests obtained from TEST_P +// macro invocations for a particular test case and generators +// obtained from INSTANTIATE_TEST_CASE_P macro invocations for that +// test case. It registers tests with all values generated by all +// generators when asked. +template +class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase { + public: + // ParamType and GeneratorCreationFunc are private types but are required + // for declarations of public methods AddTestPattern() and + // AddTestCaseInstantiation(). + typedef typename TestCase::ParamType ParamType; + // A function that returns an instance of appropriate generator type. + typedef ParamGenerator(GeneratorCreationFunc)(); + + explicit ParameterizedTestCaseInfo(const char* name) + : test_case_name_(name) {} + + // Test case base name for display purposes. + virtual const string& GetTestCaseName() const { return test_case_name_; } + // Test case id to verify identity. + virtual TypeId GetTestCaseTypeId() const { return GetTypeId(); } + // TEST_P macro uses AddTestPattern() to record information + // about a single test in a LocalTestInfo structure. + // test_case_name is the base name of the test case (without invocation + // prefix). test_base_name is the name of an individual test without + // parameter index. For the test SequenceA/FooTest.DoBar/1 FooTest is + // test case base name and DoBar is test base name. + void AddTestPattern(const char* test_case_name, + const char* test_base_name, + TestMetaFactoryBase* meta_factory) { + tests_.push_back(linked_ptr(new TestInfo(test_case_name, + test_base_name, + meta_factory))); + } + // INSTANTIATE_TEST_CASE_P macro uses AddGenerator() to record information + // about a generator. + int AddTestCaseInstantiation(const string& instantiation_name, + GeneratorCreationFunc* func, + const char* /* file */, + int /* line */) { + instantiations_.push_back(::std::make_pair(instantiation_name, func)); + return 0; // Return value used only to run this method in namespace scope. + } + // UnitTest class invokes this method to register tests in this test case + // test cases right before running tests in RUN_ALL_TESTS macro. + // This method should not be called more then once on any single + // instance of a ParameterizedTestCaseInfoBase derived class. + // UnitTest has a guard to prevent from calling this method more then once. + virtual void RegisterTests() { + for (typename TestInfoContainer::iterator test_it = tests_.begin(); + test_it != tests_.end(); ++test_it) { + linked_ptr test_info = *test_it; + for (typename InstantiationContainer::iterator gen_it = + instantiations_.begin(); gen_it != instantiations_.end(); + ++gen_it) { + const string& instantiation_name = gen_it->first; + ParamGenerator generator((*gen_it->second)()); + + string test_case_name; + if ( !instantiation_name.empty() ) + test_case_name = instantiation_name + "/"; + test_case_name += test_info->test_case_base_name; + + int i = 0; + for (typename ParamGenerator::iterator param_it = + generator.begin(); + param_it != generator.end(); ++param_it, ++i) { + Message test_name_stream; + test_name_stream << test_info->test_base_name << "/" << i; + MakeAndRegisterTestInfo( + test_case_name.c_str(), + test_name_stream.GetString().c_str(), + NULL, // No type parameter. + PrintToString(*param_it).c_str(), + GetTestCaseTypeId(), + TestCase::SetUpTestCase, + TestCase::TearDownTestCase, + test_info->test_meta_factory->CreateTestFactory(*param_it)); + } // for param_it + } // for gen_it + } // for test_it + } // RegisterTests + + private: + // LocalTestInfo structure keeps information about a single test registered + // with TEST_P macro. + struct TestInfo { + TestInfo(const char* a_test_case_base_name, + const char* a_test_base_name, + TestMetaFactoryBase* a_test_meta_factory) : + test_case_base_name(a_test_case_base_name), + test_base_name(a_test_base_name), + test_meta_factory(a_test_meta_factory) {} + + const string test_case_base_name; + const string test_base_name; + const scoped_ptr > test_meta_factory; + }; + typedef ::std::vector > TestInfoContainer; + // Keeps pairs of + // received from INSTANTIATE_TEST_CASE_P macros. + typedef ::std::vector > + InstantiationContainer; + + const string test_case_name_; + TestInfoContainer tests_; + InstantiationContainer instantiations_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ParameterizedTestCaseInfo); +}; // class ParameterizedTestCaseInfo + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// ParameterizedTestCaseRegistry contains a map of ParameterizedTestCaseInfoBase +// classes accessed by test case names. TEST_P and INSTANTIATE_TEST_CASE_P +// macros use it to locate their corresponding ParameterizedTestCaseInfo +// descriptors. +class ParameterizedTestCaseRegistry { + public: + ParameterizedTestCaseRegistry() {} + ~ParameterizedTestCaseRegistry() { + for (TestCaseInfoContainer::iterator it = test_case_infos_.begin(); + it != test_case_infos_.end(); ++it) { + delete *it; + } + } + + // Looks up or creates and returns a structure containing information about + // tests and instantiations of a particular test case. + template + ParameterizedTestCaseInfo* GetTestCasePatternHolder( + const char* test_case_name, + const char* file, + int line) { + ParameterizedTestCaseInfo* typed_test_info = NULL; + for (TestCaseInfoContainer::iterator it = test_case_infos_.begin(); + it != test_case_infos_.end(); ++it) { + if ((*it)->GetTestCaseName() == test_case_name) { + if ((*it)->GetTestCaseTypeId() != GetTypeId()) { + // Complain about incorrect usage of Google Test facilities + // and terminate the program since we cannot guaranty correct + // test case setup and tear-down in this case. + ReportInvalidTestCaseType(test_case_name, file, line); + posix::Abort(); + } else { + // At this point we are sure that the object we found is of the same + // type we are looking for, so we downcast it to that type + // without further checks. + typed_test_info = CheckedDowncastToActualType< + ParameterizedTestCaseInfo >(*it); + } + break; + } + } + if (typed_test_info == NULL) { + typed_test_info = new ParameterizedTestCaseInfo(test_case_name); + test_case_infos_.push_back(typed_test_info); + } + return typed_test_info; + } + void RegisterTests() { + for (TestCaseInfoContainer::iterator it = test_case_infos_.begin(); + it != test_case_infos_.end(); ++it) { + (*it)->RegisterTests(); + } + } + + private: + typedef ::std::vector TestCaseInfoContainer; + + TestCaseInfoContainer test_case_infos_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ParameterizedTestCaseRegistry); +}; + +} // namespace internal +} // namespace testing + +#endif // GTEST_HAS_PARAM_TEST + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_ +// This file was GENERATED by command: +// pump.py gtest-param-util-generated.h.pump +// DO NOT EDIT BY HAND!!! + +// Copyright 2008 Google Inc. +// All Rights Reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: vladl@google.com (Vlad Losev) + +// Type and function utilities for implementing parameterized tests. +// This file is generated by a SCRIPT. DO NOT EDIT BY HAND! +// +// Currently Google Test supports at most 50 arguments in Values, +// and at most 10 arguments in Combine. Please contact +// googletestframework@googlegroups.com if you need more. +// Please note that the number of arguments to Combine is limited +// by the maximum arity of the implementation of tr1::tuple which is +// currently set at 10. + +#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_ +#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_ + +// scripts/fuse_gtest.py depends on gtest's own header being #included +// *unconditionally*. Therefore these #includes cannot be moved +// inside #if GTEST_HAS_PARAM_TEST. + +#if GTEST_HAS_PARAM_TEST + +namespace testing { + +// Forward declarations of ValuesIn(), which is implemented in +// include/gtest/gtest-param-test.h. +template +internal::ParamGenerator< + typename ::testing::internal::IteratorTraits::value_type> +ValuesIn(ForwardIterator begin, ForwardIterator end); + +template +internal::ParamGenerator ValuesIn(const T (&array)[N]); + +template +internal::ParamGenerator ValuesIn( + const Container& container); + +namespace internal { + +// Used in the Values() function to provide polymorphic capabilities. +template +class ValueArray1 { + public: + explicit ValueArray1(T1 v1) : v1_(v1) {} + + template + operator ParamGenerator() const { return ValuesIn(&v1_, &v1_ + 1); } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray1& other); + + const T1 v1_; +}; + +template +class ValueArray2 { + public: + ValueArray2(T1 v1, T2 v2) : v1_(v1), v2_(v2) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray2& other); + + const T1 v1_; + const T2 v2_; +}; + +template +class ValueArray3 { + public: + ValueArray3(T1 v1, T2 v2, T3 v3) : v1_(v1), v2_(v2), v3_(v3) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray3& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; +}; + +template +class ValueArray4 { + public: + ValueArray4(T1 v1, T2 v2, T3 v3, T4 v4) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray4& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; +}; + +template +class ValueArray5 { + public: + ValueArray5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4), v5_(v5) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray5& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; +}; + +template +class ValueArray6 { + public: + ValueArray6(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) : v1_(v1), v2_(v2), + v3_(v3), v4_(v4), v5_(v5), v6_(v6) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray6& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; +}; + +template +class ValueArray7 { + public: + ValueArray7(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7) : v1_(v1), + v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray7& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; +}; + +template +class ValueArray8 { + public: + ValueArray8(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray8& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; +}; + +template +class ValueArray9 { + public: + ValueArray9(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, + T9 v9) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray9& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; +}; + +template +class ValueArray10 { + public: + ValueArray10(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray10& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; +}; + +template +class ValueArray11 { + public: + ValueArray11(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), + v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray11& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; +}; + +template +class ValueArray12 { + public: + ValueArray12(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), + v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray12& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; +}; + +template +class ValueArray13 { + public: + ValueArray13(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), + v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), + v12_(v12), v13_(v13) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray13& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; +}; + +template +class ValueArray14 { + public: + ValueArray14(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray14& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; +}; + +template +class ValueArray15 { + public: + ValueArray15(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15) : v1_(v1), v2_(v2), + v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray15& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; +}; + +template +class ValueArray16 { + public: + ValueArray16(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16) : v1_(v1), + v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), + v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), + v16_(v16) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray16& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; +}; + +template +class ValueArray17 { + public: + ValueArray17(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, + T17 v17) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray17& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; +}; + +template +class ValueArray18 { + public: + ValueArray18(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray18& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; +}; + +template +class ValueArray19 { + public: + ValueArray19(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), + v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), + v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray19& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; +}; + +template +class ValueArray20 { + public: + ValueArray20(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), + v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), + v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), + v19_(v19), v20_(v20) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray20& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; +}; + +template +class ValueArray21 { + public: + ValueArray21(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), + v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), + v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), + v18_(v18), v19_(v19), v20_(v20), v21_(v21) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray21& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; +}; + +template +class ValueArray22 { + public: + ValueArray22(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray22& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; +}; + +template +class ValueArray23 { + public: + ValueArray23(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23) : v1_(v1), v2_(v2), + v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray23& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; +}; + +template +class ValueArray24 { + public: + ValueArray24(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24) : v1_(v1), + v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), + v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), + v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), + v22_(v22), v23_(v23), v24_(v24) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray24& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; +}; + +template +class ValueArray25 { + public: + ValueArray25(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, + T25 v25) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray25& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; +}; + +template +class ValueArray26 { + public: + ValueArray26(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray26& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; +}; + +template +class ValueArray27 { + public: + ValueArray27(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), + v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), + v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), + v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), + v26_(v26), v27_(v27) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray27& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; +}; + +template +class ValueArray28 { + public: + ValueArray28(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), + v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), + v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), + v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), + v25_(v25), v26_(v26), v27_(v27), v28_(v28) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray28& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; +}; + +template +class ValueArray29 { + public: + ValueArray29(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), + v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), + v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), + v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), + v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray29& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; +}; + +template +class ValueArray30 { + public: + ValueArray30(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), + v29_(v29), v30_(v30) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray30& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; +}; + +template +class ValueArray31 { + public: + ValueArray31(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31) : v1_(v1), v2_(v2), + v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), + v29_(v29), v30_(v30), v31_(v31) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray31& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; +}; + +template +class ValueArray32 { + public: + ValueArray32(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32) : v1_(v1), + v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), + v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), + v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), + v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), + v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray32& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; +}; + +template +class ValueArray33 { + public: + ValueArray33(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, + T33 v33) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), + v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), + v33_(v33) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray33& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; +}; + +template +class ValueArray34 { + public: + ValueArray34(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), + v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), + v33_(v33), v34_(v34) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray34& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; +}; + +template +class ValueArray35 { + public: + ValueArray35(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), + v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), + v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), + v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), + v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), + v32_(v32), v33_(v33), v34_(v34), v35_(v35) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray35& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; +}; + +template +class ValueArray36 { + public: + ValueArray36(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), + v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), + v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), + v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), + v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), + v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray36& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; +}; + +template +class ValueArray37 { + public: + ValueArray37(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), + v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), + v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), + v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), + v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), + v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), + v36_(v36), v37_(v37) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray37& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; +}; + +template +class ValueArray38 { + public: + ValueArray38(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), + v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), + v35_(v35), v36_(v36), v37_(v37), v38_(v38) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray38& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; +}; + +template +class ValueArray39 { + public: + ValueArray39(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39) : v1_(v1), v2_(v2), + v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), + v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), + v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray39& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; +}; + +template +class ValueArray40 { + public: + ValueArray40(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40) : v1_(v1), + v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), + v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), + v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), + v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), + v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), + v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), + v40_(v40) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray40& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; +}; + +template +class ValueArray41 { + public: + ValueArray41(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, + T41 v41) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), + v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), + v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), + v39_(v39), v40_(v40), v41_(v41) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray41& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; +}; + +template +class ValueArray42 { + public: + ValueArray42(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), + v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), + v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), + v39_(v39), v40_(v40), v41_(v41), v42_(v42) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray42& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; +}; + +template +class ValueArray43 { + public: + ValueArray43(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), + v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), + v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), + v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), + v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), + v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), + v38_(v38), v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray43& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; +}; + +template +class ValueArray44 { + public: + ValueArray44(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), + v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), + v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), + v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), + v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), + v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36), + v37_(v37), v38_(v38), v39_(v39), v40_(v40), v41_(v41), v42_(v42), + v43_(v43), v44_(v44) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray44& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; +}; + +template +class ValueArray45 { + public: + ValueArray45(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44, T45 v45) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), + v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), + v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), + v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), + v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), + v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), + v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), v41_(v41), + v42_(v42), v43_(v43), v44_(v44), v45_(v45) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_), + static_cast(v45_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray45& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; + const T45 v45_; +}; + +template +class ValueArray46 { + public: + ValueArray46(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44, T45 v45, T46 v46) : v1_(v1), v2_(v2), v3_(v3), + v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), + v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), + v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), + v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), v46_(v46) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_), + static_cast(v45_), static_cast(v46_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray46& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; + const T45 v45_; + const T46 v46_; +}; + +template +class ValueArray47 { + public: + ValueArray47(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47) : v1_(v1), v2_(v2), + v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), + v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), + v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), + v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), + v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), + v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), + v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), v46_(v46), + v47_(v47) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_), + static_cast(v45_), static_cast(v46_), static_cast(v47_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray47& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; + const T45 v45_; + const T46 v46_; + const T47 v47_; +}; + +template +class ValueArray48 { + public: + ValueArray48(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48) : v1_(v1), + v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), + v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), + v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), + v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), + v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), + v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), + v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), + v46_(v46), v47_(v47), v48_(v48) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_), + static_cast(v45_), static_cast(v46_), static_cast(v47_), + static_cast(v48_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray48& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; + const T45 v45_; + const T46 v46_; + const T47 v47_; + const T48 v48_; +}; + +template +class ValueArray49 { + public: + ValueArray49(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48, + T49 v49) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), + v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), + v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), + v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), + v45_(v45), v46_(v46), v47_(v47), v48_(v48), v49_(v49) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_), + static_cast(v45_), static_cast(v46_), static_cast(v47_), + static_cast(v48_), static_cast(v49_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray49& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; + const T45 v45_; + const T46 v46_; + const T47 v47_; + const T48 v48_; + const T49 v49_; +}; + +template +class ValueArray50 { + public: + ValueArray50(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48, T49 v49, + T50 v50) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), + v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), + v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), + v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), + v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), + v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), + v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), + v45_(v45), v46_(v46), v47_(v47), v48_(v48), v49_(v49), v50_(v50) {} + + template + operator ParamGenerator() const { + const T array[] = {static_cast(v1_), static_cast(v2_), + static_cast(v3_), static_cast(v4_), static_cast(v5_), + static_cast(v6_), static_cast(v7_), static_cast(v8_), + static_cast(v9_), static_cast(v10_), static_cast(v11_), + static_cast(v12_), static_cast(v13_), static_cast(v14_), + static_cast(v15_), static_cast(v16_), static_cast(v17_), + static_cast(v18_), static_cast(v19_), static_cast(v20_), + static_cast(v21_), static_cast(v22_), static_cast(v23_), + static_cast(v24_), static_cast(v25_), static_cast(v26_), + static_cast(v27_), static_cast(v28_), static_cast(v29_), + static_cast(v30_), static_cast(v31_), static_cast(v32_), + static_cast(v33_), static_cast(v34_), static_cast(v35_), + static_cast(v36_), static_cast(v37_), static_cast(v38_), + static_cast(v39_), static_cast(v40_), static_cast(v41_), + static_cast(v42_), static_cast(v43_), static_cast(v44_), + static_cast(v45_), static_cast(v46_), static_cast(v47_), + static_cast(v48_), static_cast(v49_), static_cast(v50_)}; + return ValuesIn(array); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const ValueArray50& other); + + const T1 v1_; + const T2 v2_; + const T3 v3_; + const T4 v4_; + const T5 v5_; + const T6 v6_; + const T7 v7_; + const T8 v8_; + const T9 v9_; + const T10 v10_; + const T11 v11_; + const T12 v12_; + const T13 v13_; + const T14 v14_; + const T15 v15_; + const T16 v16_; + const T17 v17_; + const T18 v18_; + const T19 v19_; + const T20 v20_; + const T21 v21_; + const T22 v22_; + const T23 v23_; + const T24 v24_; + const T25 v25_; + const T26 v26_; + const T27 v27_; + const T28 v28_; + const T29 v29_; + const T30 v30_; + const T31 v31_; + const T32 v32_; + const T33 v33_; + const T34 v34_; + const T35 v35_; + const T36 v36_; + const T37 v37_; + const T38 v38_; + const T39 v39_; + const T40 v40_; + const T41 v41_; + const T42 v42_; + const T43 v43_; + const T44 v44_; + const T45 v45_; + const T46 v46_; + const T47 v47_; + const T48 v48_; + const T49 v49_; + const T50 v50_; +}; + +# if GTEST_HAS_COMBINE +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Generates values from the Cartesian product of values produced +// by the argument generators. +// +template +class CartesianProductGenerator2 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator2(const ParamGenerator& g1, + const ParamGenerator& g2) + : g1_(g1), g2_(g2) {} + virtual ~CartesianProductGenerator2() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current2_; + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + ParamType current_value_; + }; // class CartesianProductGenerator2::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator2& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; +}; // class CartesianProductGenerator2 + + +template +class CartesianProductGenerator3 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator3(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3) + : g1_(g1), g2_(g2), g3_(g3) {} + virtual ~CartesianProductGenerator3() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current3_; + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + ParamType current_value_; + }; // class CartesianProductGenerator3::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator3& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; +}; // class CartesianProductGenerator3 + + +template +class CartesianProductGenerator4 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator4(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {} + virtual ~CartesianProductGenerator4() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current4_; + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + ParamType current_value_; + }; // class CartesianProductGenerator4::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator4& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; +}; // class CartesianProductGenerator4 + + +template +class CartesianProductGenerator5 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator5(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4, const ParamGenerator& g5) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {} + virtual ~CartesianProductGenerator5() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end(), g5_, g5_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4, + const ParamGenerator& g5, + const typename ParamGenerator::iterator& current5) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4), + begin5_(g5.begin()), end5_(g5.end()), current5_(current5) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current5_; + if (current5_ == end5_) { + current5_ = begin5_; + ++current4_; + } + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_ && + current5_ == typed_other->current5_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_), + begin5_(other.begin5_), + end5_(other.end5_), + current5_(other.current5_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_, *current5_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_ || + current5_ == end5_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + const typename ParamGenerator::iterator begin5_; + const typename ParamGenerator::iterator end5_; + typename ParamGenerator::iterator current5_; + ParamType current_value_; + }; // class CartesianProductGenerator5::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator5& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; + const ParamGenerator g5_; +}; // class CartesianProductGenerator5 + + +template +class CartesianProductGenerator6 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator6(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4, const ParamGenerator& g5, + const ParamGenerator& g6) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {} + virtual ~CartesianProductGenerator6() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4, + const ParamGenerator& g5, + const typename ParamGenerator::iterator& current5, + const ParamGenerator& g6, + const typename ParamGenerator::iterator& current6) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4), + begin5_(g5.begin()), end5_(g5.end()), current5_(current5), + begin6_(g6.begin()), end6_(g6.end()), current6_(current6) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current6_; + if (current6_ == end6_) { + current6_ = begin6_; + ++current5_; + } + if (current5_ == end5_) { + current5_ = begin5_; + ++current4_; + } + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_ && + current5_ == typed_other->current5_ && + current6_ == typed_other->current6_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_), + begin5_(other.begin5_), + end5_(other.end5_), + current5_(other.current5_), + begin6_(other.begin6_), + end6_(other.end6_), + current6_(other.current6_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_, *current5_, *current6_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_ || + current5_ == end5_ || + current6_ == end6_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + const typename ParamGenerator::iterator begin5_; + const typename ParamGenerator::iterator end5_; + typename ParamGenerator::iterator current5_; + const typename ParamGenerator::iterator begin6_; + const typename ParamGenerator::iterator end6_; + typename ParamGenerator::iterator current6_; + ParamType current_value_; + }; // class CartesianProductGenerator6::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator6& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; + const ParamGenerator g5_; + const ParamGenerator g6_; +}; // class CartesianProductGenerator6 + + +template +class CartesianProductGenerator7 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator7(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4, const ParamGenerator& g5, + const ParamGenerator& g6, const ParamGenerator& g7) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {} + virtual ~CartesianProductGenerator7() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, + g7_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4, + const ParamGenerator& g5, + const typename ParamGenerator::iterator& current5, + const ParamGenerator& g6, + const typename ParamGenerator::iterator& current6, + const ParamGenerator& g7, + const typename ParamGenerator::iterator& current7) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4), + begin5_(g5.begin()), end5_(g5.end()), current5_(current5), + begin6_(g6.begin()), end6_(g6.end()), current6_(current6), + begin7_(g7.begin()), end7_(g7.end()), current7_(current7) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current7_; + if (current7_ == end7_) { + current7_ = begin7_; + ++current6_; + } + if (current6_ == end6_) { + current6_ = begin6_; + ++current5_; + } + if (current5_ == end5_) { + current5_ = begin5_; + ++current4_; + } + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_ && + current5_ == typed_other->current5_ && + current6_ == typed_other->current6_ && + current7_ == typed_other->current7_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_), + begin5_(other.begin5_), + end5_(other.end5_), + current5_(other.current5_), + begin6_(other.begin6_), + end6_(other.end6_), + current6_(other.current6_), + begin7_(other.begin7_), + end7_(other.end7_), + current7_(other.current7_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_, *current5_, *current6_, *current7_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_ || + current5_ == end5_ || + current6_ == end6_ || + current7_ == end7_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + const typename ParamGenerator::iterator begin5_; + const typename ParamGenerator::iterator end5_; + typename ParamGenerator::iterator current5_; + const typename ParamGenerator::iterator begin6_; + const typename ParamGenerator::iterator end6_; + typename ParamGenerator::iterator current6_; + const typename ParamGenerator::iterator begin7_; + const typename ParamGenerator::iterator end7_; + typename ParamGenerator::iterator current7_; + ParamType current_value_; + }; // class CartesianProductGenerator7::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator7& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; + const ParamGenerator g5_; + const ParamGenerator g6_; + const ParamGenerator g7_; +}; // class CartesianProductGenerator7 + + +template +class CartesianProductGenerator8 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator8(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4, const ParamGenerator& g5, + const ParamGenerator& g6, const ParamGenerator& g7, + const ParamGenerator& g8) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), + g8_(g8) {} + virtual ~CartesianProductGenerator8() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, + g7_.begin(), g8_, g8_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_, + g8_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4, + const ParamGenerator& g5, + const typename ParamGenerator::iterator& current5, + const ParamGenerator& g6, + const typename ParamGenerator::iterator& current6, + const ParamGenerator& g7, + const typename ParamGenerator::iterator& current7, + const ParamGenerator& g8, + const typename ParamGenerator::iterator& current8) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4), + begin5_(g5.begin()), end5_(g5.end()), current5_(current5), + begin6_(g6.begin()), end6_(g6.end()), current6_(current6), + begin7_(g7.begin()), end7_(g7.end()), current7_(current7), + begin8_(g8.begin()), end8_(g8.end()), current8_(current8) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current8_; + if (current8_ == end8_) { + current8_ = begin8_; + ++current7_; + } + if (current7_ == end7_) { + current7_ = begin7_; + ++current6_; + } + if (current6_ == end6_) { + current6_ = begin6_; + ++current5_; + } + if (current5_ == end5_) { + current5_ = begin5_; + ++current4_; + } + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_ && + current5_ == typed_other->current5_ && + current6_ == typed_other->current6_ && + current7_ == typed_other->current7_ && + current8_ == typed_other->current8_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_), + begin5_(other.begin5_), + end5_(other.end5_), + current5_(other.current5_), + begin6_(other.begin6_), + end6_(other.end6_), + current6_(other.current6_), + begin7_(other.begin7_), + end7_(other.end7_), + current7_(other.current7_), + begin8_(other.begin8_), + end8_(other.end8_), + current8_(other.current8_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_, *current5_, *current6_, *current7_, *current8_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_ || + current5_ == end5_ || + current6_ == end6_ || + current7_ == end7_ || + current8_ == end8_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + const typename ParamGenerator::iterator begin5_; + const typename ParamGenerator::iterator end5_; + typename ParamGenerator::iterator current5_; + const typename ParamGenerator::iterator begin6_; + const typename ParamGenerator::iterator end6_; + typename ParamGenerator::iterator current6_; + const typename ParamGenerator::iterator begin7_; + const typename ParamGenerator::iterator end7_; + typename ParamGenerator::iterator current7_; + const typename ParamGenerator::iterator begin8_; + const typename ParamGenerator::iterator end8_; + typename ParamGenerator::iterator current8_; + ParamType current_value_; + }; // class CartesianProductGenerator8::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator8& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; + const ParamGenerator g5_; + const ParamGenerator g6_; + const ParamGenerator g7_; + const ParamGenerator g8_; +}; // class CartesianProductGenerator8 + + +template +class CartesianProductGenerator9 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator9(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4, const ParamGenerator& g5, + const ParamGenerator& g6, const ParamGenerator& g7, + const ParamGenerator& g8, const ParamGenerator& g9) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), + g9_(g9) {} + virtual ~CartesianProductGenerator9() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, + g7_.begin(), g8_, g8_.begin(), g9_, g9_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_, + g8_.end(), g9_, g9_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4, + const ParamGenerator& g5, + const typename ParamGenerator::iterator& current5, + const ParamGenerator& g6, + const typename ParamGenerator::iterator& current6, + const ParamGenerator& g7, + const typename ParamGenerator::iterator& current7, + const ParamGenerator& g8, + const typename ParamGenerator::iterator& current8, + const ParamGenerator& g9, + const typename ParamGenerator::iterator& current9) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4), + begin5_(g5.begin()), end5_(g5.end()), current5_(current5), + begin6_(g6.begin()), end6_(g6.end()), current6_(current6), + begin7_(g7.begin()), end7_(g7.end()), current7_(current7), + begin8_(g8.begin()), end8_(g8.end()), current8_(current8), + begin9_(g9.begin()), end9_(g9.end()), current9_(current9) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current9_; + if (current9_ == end9_) { + current9_ = begin9_; + ++current8_; + } + if (current8_ == end8_) { + current8_ = begin8_; + ++current7_; + } + if (current7_ == end7_) { + current7_ = begin7_; + ++current6_; + } + if (current6_ == end6_) { + current6_ = begin6_; + ++current5_; + } + if (current5_ == end5_) { + current5_ = begin5_; + ++current4_; + } + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_ && + current5_ == typed_other->current5_ && + current6_ == typed_other->current6_ && + current7_ == typed_other->current7_ && + current8_ == typed_other->current8_ && + current9_ == typed_other->current9_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_), + begin5_(other.begin5_), + end5_(other.end5_), + current5_(other.current5_), + begin6_(other.begin6_), + end6_(other.end6_), + current6_(other.current6_), + begin7_(other.begin7_), + end7_(other.end7_), + current7_(other.current7_), + begin8_(other.begin8_), + end8_(other.end8_), + current8_(other.current8_), + begin9_(other.begin9_), + end9_(other.end9_), + current9_(other.current9_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_, *current5_, *current6_, *current7_, *current8_, + *current9_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_ || + current5_ == end5_ || + current6_ == end6_ || + current7_ == end7_ || + current8_ == end8_ || + current9_ == end9_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + const typename ParamGenerator::iterator begin5_; + const typename ParamGenerator::iterator end5_; + typename ParamGenerator::iterator current5_; + const typename ParamGenerator::iterator begin6_; + const typename ParamGenerator::iterator end6_; + typename ParamGenerator::iterator current6_; + const typename ParamGenerator::iterator begin7_; + const typename ParamGenerator::iterator end7_; + typename ParamGenerator::iterator current7_; + const typename ParamGenerator::iterator begin8_; + const typename ParamGenerator::iterator end8_; + typename ParamGenerator::iterator current8_; + const typename ParamGenerator::iterator begin9_; + const typename ParamGenerator::iterator end9_; + typename ParamGenerator::iterator current9_; + ParamType current_value_; + }; // class CartesianProductGenerator9::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator9& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; + const ParamGenerator g5_; + const ParamGenerator g6_; + const ParamGenerator g7_; + const ParamGenerator g8_; + const ParamGenerator g9_; +}; // class CartesianProductGenerator9 + + +template +class CartesianProductGenerator10 + : public ParamGeneratorInterface< ::std::tr1::tuple > { + public: + typedef ::std::tr1::tuple ParamType; + + CartesianProductGenerator10(const ParamGenerator& g1, + const ParamGenerator& g2, const ParamGenerator& g3, + const ParamGenerator& g4, const ParamGenerator& g5, + const ParamGenerator& g6, const ParamGenerator& g7, + const ParamGenerator& g8, const ParamGenerator& g9, + const ParamGenerator& g10) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), + g9_(g9), g10_(g10) {} + virtual ~CartesianProductGenerator10() {} + + virtual ParamIteratorInterface* Begin() const { + return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, + g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, + g7_.begin(), g8_, g8_.begin(), g9_, g9_.begin(), g10_, g10_.begin()); + } + virtual ParamIteratorInterface* End() const { + return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), + g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_, + g8_.end(), g9_, g9_.end(), g10_, g10_.end()); + } + + private: + class Iterator : public ParamIteratorInterface { + public: + Iterator(const ParamGeneratorInterface* base, + const ParamGenerator& g1, + const typename ParamGenerator::iterator& current1, + const ParamGenerator& g2, + const typename ParamGenerator::iterator& current2, + const ParamGenerator& g3, + const typename ParamGenerator::iterator& current3, + const ParamGenerator& g4, + const typename ParamGenerator::iterator& current4, + const ParamGenerator& g5, + const typename ParamGenerator::iterator& current5, + const ParamGenerator& g6, + const typename ParamGenerator::iterator& current6, + const ParamGenerator& g7, + const typename ParamGenerator::iterator& current7, + const ParamGenerator& g8, + const typename ParamGenerator::iterator& current8, + const ParamGenerator& g9, + const typename ParamGenerator::iterator& current9, + const ParamGenerator& g10, + const typename ParamGenerator::iterator& current10) + : base_(base), + begin1_(g1.begin()), end1_(g1.end()), current1_(current1), + begin2_(g2.begin()), end2_(g2.end()), current2_(current2), + begin3_(g3.begin()), end3_(g3.end()), current3_(current3), + begin4_(g4.begin()), end4_(g4.end()), current4_(current4), + begin5_(g5.begin()), end5_(g5.end()), current5_(current5), + begin6_(g6.begin()), end6_(g6.end()), current6_(current6), + begin7_(g7.begin()), end7_(g7.end()), current7_(current7), + begin8_(g8.begin()), end8_(g8.end()), current8_(current8), + begin9_(g9.begin()), end9_(g9.end()), current9_(current9), + begin10_(g10.begin()), end10_(g10.end()), current10_(current10) { + ComputeCurrentValue(); + } + virtual ~Iterator() {} + + virtual const ParamGeneratorInterface* BaseGenerator() const { + return base_; + } + // Advance should not be called on beyond-of-range iterators + // so no component iterators must be beyond end of range, either. + virtual void Advance() { + assert(!AtEnd()); + ++current10_; + if (current10_ == end10_) { + current10_ = begin10_; + ++current9_; + } + if (current9_ == end9_) { + current9_ = begin9_; + ++current8_; + } + if (current8_ == end8_) { + current8_ = begin8_; + ++current7_; + } + if (current7_ == end7_) { + current7_ = begin7_; + ++current6_; + } + if (current6_ == end6_) { + current6_ = begin6_; + ++current5_; + } + if (current5_ == end5_) { + current5_ = begin5_; + ++current4_; + } + if (current4_ == end4_) { + current4_ = begin4_; + ++current3_; + } + if (current3_ == end3_) { + current3_ = begin3_; + ++current2_; + } + if (current2_ == end2_) { + current2_ = begin2_; + ++current1_; + } + ComputeCurrentValue(); + } + virtual ParamIteratorInterface* Clone() const { + return new Iterator(*this); + } + virtual const ParamType* Current() const { return ¤t_value_; } + virtual bool Equals(const ParamIteratorInterface& other) const { + // Having the same base generator guarantees that the other + // iterator is of the same type and we can downcast. + GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) + << "The program attempted to compare iterators " + << "from different generators." << std::endl; + const Iterator* typed_other = + CheckedDowncastToActualType(&other); + // We must report iterators equal if they both point beyond their + // respective ranges. That can happen in a variety of fashions, + // so we have to consult AtEnd(). + return (AtEnd() && typed_other->AtEnd()) || + ( + current1_ == typed_other->current1_ && + current2_ == typed_other->current2_ && + current3_ == typed_other->current3_ && + current4_ == typed_other->current4_ && + current5_ == typed_other->current5_ && + current6_ == typed_other->current6_ && + current7_ == typed_other->current7_ && + current8_ == typed_other->current8_ && + current9_ == typed_other->current9_ && + current10_ == typed_other->current10_); + } + + private: + Iterator(const Iterator& other) + : base_(other.base_), + begin1_(other.begin1_), + end1_(other.end1_), + current1_(other.current1_), + begin2_(other.begin2_), + end2_(other.end2_), + current2_(other.current2_), + begin3_(other.begin3_), + end3_(other.end3_), + current3_(other.current3_), + begin4_(other.begin4_), + end4_(other.end4_), + current4_(other.current4_), + begin5_(other.begin5_), + end5_(other.end5_), + current5_(other.current5_), + begin6_(other.begin6_), + end6_(other.end6_), + current6_(other.current6_), + begin7_(other.begin7_), + end7_(other.end7_), + current7_(other.current7_), + begin8_(other.begin8_), + end8_(other.end8_), + current8_(other.current8_), + begin9_(other.begin9_), + end9_(other.end9_), + current9_(other.current9_), + begin10_(other.begin10_), + end10_(other.end10_), + current10_(other.current10_) { + ComputeCurrentValue(); + } + + void ComputeCurrentValue() { + if (!AtEnd()) + current_value_ = ParamType(*current1_, *current2_, *current3_, + *current4_, *current5_, *current6_, *current7_, *current8_, + *current9_, *current10_); + } + bool AtEnd() const { + // We must report iterator past the end of the range when either of the + // component iterators has reached the end of its range. + return + current1_ == end1_ || + current2_ == end2_ || + current3_ == end3_ || + current4_ == end4_ || + current5_ == end5_ || + current6_ == end6_ || + current7_ == end7_ || + current8_ == end8_ || + current9_ == end9_ || + current10_ == end10_; + } + + // No implementation - assignment is unsupported. + void operator=(const Iterator& other); + + const ParamGeneratorInterface* const base_; + // begin[i]_ and end[i]_ define the i-th range that Iterator traverses. + // current[i]_ is the actual traversing iterator. + const typename ParamGenerator::iterator begin1_; + const typename ParamGenerator::iterator end1_; + typename ParamGenerator::iterator current1_; + const typename ParamGenerator::iterator begin2_; + const typename ParamGenerator::iterator end2_; + typename ParamGenerator::iterator current2_; + const typename ParamGenerator::iterator begin3_; + const typename ParamGenerator::iterator end3_; + typename ParamGenerator::iterator current3_; + const typename ParamGenerator::iterator begin4_; + const typename ParamGenerator::iterator end4_; + typename ParamGenerator::iterator current4_; + const typename ParamGenerator::iterator begin5_; + const typename ParamGenerator::iterator end5_; + typename ParamGenerator::iterator current5_; + const typename ParamGenerator::iterator begin6_; + const typename ParamGenerator::iterator end6_; + typename ParamGenerator::iterator current6_; + const typename ParamGenerator::iterator begin7_; + const typename ParamGenerator::iterator end7_; + typename ParamGenerator::iterator current7_; + const typename ParamGenerator::iterator begin8_; + const typename ParamGenerator::iterator end8_; + typename ParamGenerator::iterator current8_; + const typename ParamGenerator::iterator begin9_; + const typename ParamGenerator::iterator end9_; + typename ParamGenerator::iterator current9_; + const typename ParamGenerator::iterator begin10_; + const typename ParamGenerator::iterator end10_; + typename ParamGenerator::iterator current10_; + ParamType current_value_; + }; // class CartesianProductGenerator10::Iterator + + // No implementation - assignment is unsupported. + void operator=(const CartesianProductGenerator10& other); + + const ParamGenerator g1_; + const ParamGenerator g2_; + const ParamGenerator g3_; + const ParamGenerator g4_; + const ParamGenerator g5_; + const ParamGenerator g6_; + const ParamGenerator g7_; + const ParamGenerator g8_; + const ParamGenerator g9_; + const ParamGenerator g10_; +}; // class CartesianProductGenerator10 + + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Helper classes providing Combine() with polymorphic features. They allow +// casting CartesianProductGeneratorN to ParamGenerator if T is +// convertible to U. +// +template +class CartesianProductHolder2 { + public: +CartesianProductHolder2(const Generator1& g1, const Generator2& g2) + : g1_(g1), g2_(g2) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator2( + static_cast >(g1_), + static_cast >(g2_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder2& other); + + const Generator1 g1_; + const Generator2 g2_; +}; // class CartesianProductHolder2 + +template +class CartesianProductHolder3 { + public: +CartesianProductHolder3(const Generator1& g1, const Generator2& g2, + const Generator3& g3) + : g1_(g1), g2_(g2), g3_(g3) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator3( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder3& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; +}; // class CartesianProductHolder3 + +template +class CartesianProductHolder4 { + public: +CartesianProductHolder4(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator4( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder4& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; +}; // class CartesianProductHolder4 + +template +class CartesianProductHolder5 { + public: +CartesianProductHolder5(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4, const Generator5& g5) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator5( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_), + static_cast >(g5_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder5& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; + const Generator5 g5_; +}; // class CartesianProductHolder5 + +template +class CartesianProductHolder6 { + public: +CartesianProductHolder6(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4, const Generator5& g5, + const Generator6& g6) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator6( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_), + static_cast >(g5_), + static_cast >(g6_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder6& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; + const Generator5 g5_; + const Generator6 g6_; +}; // class CartesianProductHolder6 + +template +class CartesianProductHolder7 { + public: +CartesianProductHolder7(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4, const Generator5& g5, + const Generator6& g6, const Generator7& g7) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator7( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_), + static_cast >(g5_), + static_cast >(g6_), + static_cast >(g7_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder7& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; + const Generator5 g5_; + const Generator6 g6_; + const Generator7 g7_; +}; // class CartesianProductHolder7 + +template +class CartesianProductHolder8 { + public: +CartesianProductHolder8(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4, const Generator5& g5, + const Generator6& g6, const Generator7& g7, const Generator8& g8) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), + g8_(g8) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator8( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_), + static_cast >(g5_), + static_cast >(g6_), + static_cast >(g7_), + static_cast >(g8_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder8& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; + const Generator5 g5_; + const Generator6 g6_; + const Generator7 g7_; + const Generator8 g8_; +}; // class CartesianProductHolder8 + +template +class CartesianProductHolder9 { + public: +CartesianProductHolder9(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4, const Generator5& g5, + const Generator6& g6, const Generator7& g7, const Generator8& g8, + const Generator9& g9) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), + g9_(g9) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator9( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_), + static_cast >(g5_), + static_cast >(g6_), + static_cast >(g7_), + static_cast >(g8_), + static_cast >(g9_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder9& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; + const Generator5 g5_; + const Generator6 g6_; + const Generator7 g7_; + const Generator8 g8_; + const Generator9 g9_; +}; // class CartesianProductHolder9 + +template +class CartesianProductHolder10 { + public: +CartesianProductHolder10(const Generator1& g1, const Generator2& g2, + const Generator3& g3, const Generator4& g4, const Generator5& g5, + const Generator6& g6, const Generator7& g7, const Generator8& g8, + const Generator9& g9, const Generator10& g10) + : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), + g9_(g9), g10_(g10) {} + template + operator ParamGenerator< ::std::tr1::tuple >() const { + return ParamGenerator< ::std::tr1::tuple >( + new CartesianProductGenerator10( + static_cast >(g1_), + static_cast >(g2_), + static_cast >(g3_), + static_cast >(g4_), + static_cast >(g5_), + static_cast >(g6_), + static_cast >(g7_), + static_cast >(g8_), + static_cast >(g9_), + static_cast >(g10_))); + } + + private: + // No implementation - assignment is unsupported. + void operator=(const CartesianProductHolder10& other); + + const Generator1 g1_; + const Generator2 g2_; + const Generator3 g3_; + const Generator4 g4_; + const Generator5 g5_; + const Generator6 g6_; + const Generator7 g7_; + const Generator8 g8_; + const Generator9 g9_; + const Generator10 g10_; +}; // class CartesianProductHolder10 + +# endif // GTEST_HAS_COMBINE + +} // namespace internal +} // namespace testing + +#endif // GTEST_HAS_PARAM_TEST + +#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_ + +#if GTEST_HAS_PARAM_TEST + +namespace testing { + +// Functions producing parameter generators. +// +// Google Test uses these generators to produce parameters for value- +// parameterized tests. When a parameterized test case is instantiated +// with a particular generator, Google Test creates and runs tests +// for each element in the sequence produced by the generator. +// +// In the following sample, tests from test case FooTest are instantiated +// each three times with parameter values 3, 5, and 8: +// +// class FooTest : public TestWithParam { ... }; +// +// TEST_P(FooTest, TestThis) { +// } +// TEST_P(FooTest, TestThat) { +// } +// INSTANTIATE_TEST_CASE_P(TestSequence, FooTest, Values(3, 5, 8)); +// + +// Range() returns generators providing sequences of values in a range. +// +// Synopsis: +// Range(start, end) +// - returns a generator producing a sequence of values {start, start+1, +// start+2, ..., }. +// Range(start, end, step) +// - returns a generator producing a sequence of values {start, start+step, +// start+step+step, ..., }. +// Notes: +// * The generated sequences never include end. For example, Range(1, 5) +// returns a generator producing a sequence {1, 2, 3, 4}. Range(1, 9, 2) +// returns a generator producing {1, 3, 5, 7}. +// * start and end must have the same type. That type may be any integral or +// floating-point type or a user defined type satisfying these conditions: +// * It must be assignable (have operator=() defined). +// * It must have operator+() (operator+(int-compatible type) for +// two-operand version). +// * It must have operator<() defined. +// Elements in the resulting sequences will also have that type. +// * Condition start < end must be satisfied in order for resulting sequences +// to contain any elements. +// +template +internal::ParamGenerator Range(T start, T end, IncrementT step) { + return internal::ParamGenerator( + new internal::RangeGenerator(start, end, step)); +} + +template +internal::ParamGenerator Range(T start, T end) { + return Range(start, end, 1); +} + +// ValuesIn() function allows generation of tests with parameters coming from +// a container. +// +// Synopsis: +// ValuesIn(const T (&array)[N]) +// - returns a generator producing sequences with elements from +// a C-style array. +// ValuesIn(const Container& container) +// - returns a generator producing sequences with elements from +// an STL-style container. +// ValuesIn(Iterator begin, Iterator end) +// - returns a generator producing sequences with elements from +// a range [begin, end) defined by a pair of STL-style iterators. These +// iterators can also be plain C pointers. +// +// Please note that ValuesIn copies the values from the containers +// passed in and keeps them to generate tests in RUN_ALL_TESTS(). +// +// Examples: +// +// This instantiates tests from test case StringTest +// each with C-string values of "foo", "bar", and "baz": +// +// const char* strings[] = {"foo", "bar", "baz"}; +// INSTANTIATE_TEST_CASE_P(StringSequence, SrtingTest, ValuesIn(strings)); +// +// This instantiates tests from test case StlStringTest +// each with STL strings with values "a" and "b": +// +// ::std::vector< ::std::string> GetParameterStrings() { +// ::std::vector< ::std::string> v; +// v.push_back("a"); +// v.push_back("b"); +// return v; +// } +// +// INSTANTIATE_TEST_CASE_P(CharSequence, +// StlStringTest, +// ValuesIn(GetParameterStrings())); +// +// +// This will also instantiate tests from CharTest +// each with parameter values 'a' and 'b': +// +// ::std::list GetParameterChars() { +// ::std::list list; +// list.push_back('a'); +// list.push_back('b'); +// return list; +// } +// ::std::list l = GetParameterChars(); +// INSTANTIATE_TEST_CASE_P(CharSequence2, +// CharTest, +// ValuesIn(l.begin(), l.end())); +// +template +internal::ParamGenerator< + typename ::testing::internal::IteratorTraits::value_type> +ValuesIn(ForwardIterator begin, ForwardIterator end) { + typedef typename ::testing::internal::IteratorTraits + ::value_type ParamType; + return internal::ParamGenerator( + new internal::ValuesInIteratorRangeGenerator(begin, end)); +} + +template +internal::ParamGenerator ValuesIn(const T (&array)[N]) { + return ValuesIn(array, array + N); +} + +template +internal::ParamGenerator ValuesIn( + const Container& container) { + return ValuesIn(container.begin(), container.end()); +} + +// Values() allows generating tests from explicitly specified list of +// parameters. +// +// Synopsis: +// Values(T v1, T v2, ..., T vN) +// - returns a generator producing sequences with elements v1, v2, ..., vN. +// +// For example, this instantiates tests from test case BarTest each +// with values "one", "two", and "three": +// +// INSTANTIATE_TEST_CASE_P(NumSequence, BarTest, Values("one", "two", "three")); +// +// This instantiates tests from test case BazTest each with values 1, 2, 3.5. +// The exact type of values will depend on the type of parameter in BazTest. +// +// INSTANTIATE_TEST_CASE_P(FloatingNumbers, BazTest, Values(1, 2, 3.5)); +// +// Currently, Values() supports from 1 to 50 parameters. +// +template +internal::ValueArray1 Values(T1 v1) { + return internal::ValueArray1(v1); +} + +template +internal::ValueArray2 Values(T1 v1, T2 v2) { + return internal::ValueArray2(v1, v2); +} + +template +internal::ValueArray3 Values(T1 v1, T2 v2, T3 v3) { + return internal::ValueArray3(v1, v2, v3); +} + +template +internal::ValueArray4 Values(T1 v1, T2 v2, T3 v3, T4 v4) { + return internal::ValueArray4(v1, v2, v3, v4); +} + +template +internal::ValueArray5 Values(T1 v1, T2 v2, T3 v3, T4 v4, + T5 v5) { + return internal::ValueArray5(v1, v2, v3, v4, v5); +} + +template +internal::ValueArray6 Values(T1 v1, T2 v2, T3 v3, + T4 v4, T5 v5, T6 v6) { + return internal::ValueArray6(v1, v2, v3, v4, v5, v6); +} + +template +internal::ValueArray7 Values(T1 v1, T2 v2, T3 v3, + T4 v4, T5 v5, T6 v6, T7 v7) { + return internal::ValueArray7(v1, v2, v3, v4, v5, + v6, v7); +} + +template +internal::ValueArray8 Values(T1 v1, T2 v2, + T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8) { + return internal::ValueArray8(v1, v2, v3, v4, + v5, v6, v7, v8); +} + +template +internal::ValueArray9 Values(T1 v1, T2 v2, + T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9) { + return internal::ValueArray9(v1, v2, v3, + v4, v5, v6, v7, v8, v9); +} + +template +internal::ValueArray10 Values(T1 v1, + T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10) { + return internal::ValueArray10(v1, + v2, v3, v4, v5, v6, v7, v8, v9, v10); +} + +template +internal::ValueArray11 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11) { + return internal::ValueArray11(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11); +} + +template +internal::ValueArray12 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12) { + return internal::ValueArray12(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12); +} + +template +internal::ValueArray13 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13) { + return internal::ValueArray13(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13); +} + +template +internal::ValueArray14 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14) { + return internal::ValueArray14(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, + v14); +} + +template +internal::ValueArray15 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, + T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15) { + return internal::ValueArray15(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, + v13, v14, v15); +} + +template +internal::ValueArray16 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16) { + return internal::ValueArray16(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, + v12, v13, v14, v15, v16); +} + +template +internal::ValueArray17 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17) { + return internal::ValueArray17(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, + v11, v12, v13, v14, v15, v16, v17); +} + +template +internal::ValueArray18 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, + T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18) { + return internal::ValueArray18(v1, v2, v3, v4, v5, v6, v7, v8, v9, + v10, v11, v12, v13, v14, v15, v16, v17, v18); +} + +template +internal::ValueArray19 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, + T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, + T15 v15, T16 v16, T17 v17, T18 v18, T19 v19) { + return internal::ValueArray19(v1, v2, v3, v4, v5, v6, v7, v8, + v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19); +} + +template +internal::ValueArray20 Values(T1 v1, T2 v2, T3 v3, T4 v4, + T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, + T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20) { + return internal::ValueArray20(v1, v2, v3, v4, v5, v6, v7, + v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20); +} + +template +internal::ValueArray21 Values(T1 v1, T2 v2, T3 v3, T4 v4, + T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, + T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21) { + return internal::ValueArray21(v1, v2, v3, v4, v5, v6, + v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21); +} + +template +internal::ValueArray22 Values(T1 v1, T2 v2, T3 v3, + T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, + T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, + T21 v21, T22 v22) { + return internal::ValueArray22(v1, v2, v3, v4, + v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, + v20, v21, v22); +} + +template +internal::ValueArray23 Values(T1 v1, T2 v2, + T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, + T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, + T21 v21, T22 v22, T23 v23) { + return internal::ValueArray23(v1, v2, v3, + v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, + v20, v21, v22, v23); +} + +template +internal::ValueArray24 Values(T1 v1, T2 v2, + T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, + T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, + T21 v21, T22 v22, T23 v23, T24 v24) { + return internal::ValueArray24(v1, v2, + v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, + v19, v20, v21, v22, v23, v24); +} + +template +internal::ValueArray25 Values(T1 v1, + T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, + T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, + T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25) { + return internal::ValueArray25(v1, + v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, + v18, v19, v20, v21, v22, v23, v24, v25); +} + +template +internal::ValueArray26 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26) { + return internal::ValueArray26(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, + v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26); +} + +template +internal::ValueArray27 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27) { + return internal::ValueArray27(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, + v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27); +} + +template +internal::ValueArray28 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28) { + return internal::ValueArray28(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, + v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, + v28); +} + +template +internal::ValueArray29 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29) { + return internal::ValueArray29(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, + v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, + v27, v28, v29); +} + +template +internal::ValueArray30 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, + T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, + T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, + T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30) { + return internal::ValueArray30(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, + v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, + v26, v27, v28, v29, v30); +} + +template +internal::ValueArray31 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, + T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31) { + return internal::ValueArray31(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, + v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, + v25, v26, v27, v28, v29, v30, v31); +} + +template +internal::ValueArray32 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, + T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, + T32 v32) { + return internal::ValueArray32(v1, v2, v3, v4, v5, v6, v7, v8, v9, + v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, + v24, v25, v26, v27, v28, v29, v30, v31, v32); +} + +template +internal::ValueArray33 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, + T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, + T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, + T32 v32, T33 v33) { + return internal::ValueArray33(v1, v2, v3, v4, v5, v6, v7, v8, + v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, + v24, v25, v26, v27, v28, v29, v30, v31, v32, v33); +} + +template +internal::ValueArray34 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, + T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, + T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, + T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, + T31 v31, T32 v32, T33 v33, T34 v34) { + return internal::ValueArray34(v1, v2, v3, v4, v5, v6, v7, + v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, + v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34); +} + +template +internal::ValueArray35 Values(T1 v1, T2 v2, T3 v3, T4 v4, + T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, + T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, + T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, + T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35) { + return internal::ValueArray35(v1, v2, v3, v4, v5, v6, + v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, + v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35); +} + +template +internal::ValueArray36 Values(T1 v1, T2 v2, T3 v3, T4 v4, + T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, + T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, + T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, + T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36) { + return internal::ValueArray36(v1, v2, v3, v4, + v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, + v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, + v34, v35, v36); +} + +template +internal::ValueArray37 Values(T1 v1, T2 v2, T3 v3, + T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, + T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, + T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, + T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, + T37 v37) { + return internal::ValueArray37(v1, v2, v3, + v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, + v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, + v34, v35, v36, v37); +} + +template +internal::ValueArray38 Values(T1 v1, T2 v2, + T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, + T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, + T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, + T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, + T37 v37, T38 v38) { + return internal::ValueArray38(v1, v2, + v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, + v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, + v33, v34, v35, v36, v37, v38); +} + +template +internal::ValueArray39 Values(T1 v1, T2 v2, + T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, + T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, + T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, + T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, + T37 v37, T38 v38, T39 v39) { + return internal::ValueArray39(v1, + v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, + v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, + v32, v33, v34, v35, v36, v37, v38, v39); +} + +template +internal::ValueArray40 Values(T1 v1, + T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, + T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, + T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, + T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, + T36 v36, T37 v37, T38 v38, T39 v39, T40 v40) { + return internal::ValueArray40(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, + v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, + v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40); +} + +template +internal::ValueArray41 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41) { + return internal::ValueArray41(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, + v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, + v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41); +} + +template +internal::ValueArray42 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42) { + return internal::ValueArray42(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, + v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, + v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, + v42); +} + +template +internal::ValueArray43 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43) { + return internal::ValueArray43(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, + v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, + v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, + v41, v42, v43); +} + +template +internal::ValueArray44 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, + T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, + T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, + T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, + T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, + T42 v42, T43 v43, T44 v44) { + return internal::ValueArray44(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, + v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, + v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, + v40, v41, v42, v43, v44); +} + +template +internal::ValueArray45 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, + T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, + T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, + T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, + T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, + T41 v41, T42 v42, T43 v43, T44 v44, T45 v45) { + return internal::ValueArray45(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, + v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, + v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, + v39, v40, v41, v42, v43, v44, v45); +} + +template +internal::ValueArray46 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, + T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, + T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, + T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46) { + return internal::ValueArray46(v1, v2, v3, v4, v5, v6, v7, v8, v9, + v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, + v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, + v38, v39, v40, v41, v42, v43, v44, v45, v46); +} + +template +internal::ValueArray47 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, + T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, + T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, + T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, + T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47) { + return internal::ValueArray47(v1, v2, v3, v4, v5, v6, v7, v8, + v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, + v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, + v38, v39, v40, v41, v42, v43, v44, v45, v46, v47); +} + +template +internal::ValueArray48 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, + T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, + T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, + T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, + T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, + T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, + T48 v48) { + return internal::ValueArray48(v1, v2, v3, v4, v5, v6, v7, + v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, + v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, + v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48); +} + +template +internal::ValueArray49 Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, + T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, + T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, + T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, + T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, + T39 v39, T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, + T47 v47, T48 v48, T49 v49) { + return internal::ValueArray49(v1, v2, v3, v4, v5, v6, + v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, + v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, + v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49); +} + +template +internal::ValueArray50 Values(T1 v1, T2 v2, T3 v3, T4 v4, + T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, + T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, + T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, + T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, + T38 v38, T39 v39, T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, + T46 v46, T47 v47, T48 v48, T49 v49, T50 v50) { + return internal::ValueArray50(v1, v2, v3, v4, + v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, + v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, + v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, + v48, v49, v50); +} + +// Bool() allows generating tests with parameters in a set of (false, true). +// +// Synopsis: +// Bool() +// - returns a generator producing sequences with elements {false, true}. +// +// It is useful when testing code that depends on Boolean flags. Combinations +// of multiple flags can be tested when several Bool()'s are combined using +// Combine() function. +// +// In the following example all tests in the test case FlagDependentTest +// will be instantiated twice with parameters false and true. +// +// class FlagDependentTest : public testing::TestWithParam { +// virtual void SetUp() { +// external_flag = GetParam(); +// } +// } +// INSTANTIATE_TEST_CASE_P(BoolSequence, FlagDependentTest, Bool()); +// +inline internal::ParamGenerator Bool() { + return Values(false, true); +} + +# if GTEST_HAS_COMBINE +// Combine() allows the user to combine two or more sequences to produce +// values of a Cartesian product of those sequences' elements. +// +// Synopsis: +// Combine(gen1, gen2, ..., genN) +// - returns a generator producing sequences with elements coming from +// the Cartesian product of elements from the sequences generated by +// gen1, gen2, ..., genN. The sequence elements will have a type of +// tuple where T1, T2, ..., TN are the types +// of elements from sequences produces by gen1, gen2, ..., genN. +// +// Combine can have up to 10 arguments. This number is currently limited +// by the maximum number of elements in the tuple implementation used by Google +// Test. +// +// Example: +// +// This will instantiate tests in test case AnimalTest each one with +// the parameter values tuple("cat", BLACK), tuple("cat", WHITE), +// tuple("dog", BLACK), and tuple("dog", WHITE): +// +// enum Color { BLACK, GRAY, WHITE }; +// class AnimalTest +// : public testing::TestWithParam > {...}; +// +// TEST_P(AnimalTest, AnimalLooksNice) {...} +// +// INSTANTIATE_TEST_CASE_P(AnimalVariations, AnimalTest, +// Combine(Values("cat", "dog"), +// Values(BLACK, WHITE))); +// +// This will instantiate tests in FlagDependentTest with all variations of two +// Boolean flags: +// +// class FlagDependentTest +// : public testing::TestWithParam > { +// virtual void SetUp() { +// // Assigns external_flag_1 and external_flag_2 values from the tuple. +// tie(external_flag_1, external_flag_2) = GetParam(); +// } +// }; +// +// TEST_P(FlagDependentTest, TestFeature1) { +// // Test your code using external_flag_1 and external_flag_2 here. +// } +// INSTANTIATE_TEST_CASE_P(TwoBoolSequence, FlagDependentTest, +// Combine(Bool(), Bool())); +// +template +internal::CartesianProductHolder2 Combine( + const Generator1& g1, const Generator2& g2) { + return internal::CartesianProductHolder2( + g1, g2); +} + +template +internal::CartesianProductHolder3 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3) { + return internal::CartesianProductHolder3( + g1, g2, g3); +} + +template +internal::CartesianProductHolder4 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4) { + return internal::CartesianProductHolder4( + g1, g2, g3, g4); +} + +template +internal::CartesianProductHolder5 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4, const Generator5& g5) { + return internal::CartesianProductHolder5( + g1, g2, g3, g4, g5); +} + +template +internal::CartesianProductHolder6 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4, const Generator5& g5, const Generator6& g6) { + return internal::CartesianProductHolder6( + g1, g2, g3, g4, g5, g6); +} + +template +internal::CartesianProductHolder7 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4, const Generator5& g5, const Generator6& g6, + const Generator7& g7) { + return internal::CartesianProductHolder7( + g1, g2, g3, g4, g5, g6, g7); +} + +template +internal::CartesianProductHolder8 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4, const Generator5& g5, const Generator6& g6, + const Generator7& g7, const Generator8& g8) { + return internal::CartesianProductHolder8( + g1, g2, g3, g4, g5, g6, g7, g8); +} + +template +internal::CartesianProductHolder9 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4, const Generator5& g5, const Generator6& g6, + const Generator7& g7, const Generator8& g8, const Generator9& g9) { + return internal::CartesianProductHolder9( + g1, g2, g3, g4, g5, g6, g7, g8, g9); +} + +template +internal::CartesianProductHolder10 Combine( + const Generator1& g1, const Generator2& g2, const Generator3& g3, + const Generator4& g4, const Generator5& g5, const Generator6& g6, + const Generator7& g7, const Generator8& g8, const Generator9& g9, + const Generator10& g10) { + return internal::CartesianProductHolder10( + g1, g2, g3, g4, g5, g6, g7, g8, g9, g10); +} +# endif // GTEST_HAS_COMBINE + + + +# define TEST_P(test_case_name, test_name) \ + class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) \ + : public test_case_name { \ + public: \ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {} \ + virtual void TestBody(); \ + private: \ + static int AddToRegistry() { \ + ::testing::UnitTest::GetInstance()->parameterized_test_registry(). \ + GetTestCasePatternHolder(\ + #test_case_name, __FILE__, __LINE__)->AddTestPattern(\ + #test_case_name, \ + #test_name, \ + new ::testing::internal::TestMetaFactory< \ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>()); \ + return 0; \ + } \ + static int gtest_registering_dummy_; \ + GTEST_DISALLOW_COPY_AND_ASSIGN_(\ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name)); \ + }; \ + int GTEST_TEST_CLASS_NAME_(test_case_name, \ + test_name)::gtest_registering_dummy_ = \ + GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::AddToRegistry(); \ + void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() + +# define INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ + ::testing::internal::ParamGenerator \ + gtest_##prefix##test_case_name##_EvalGenerator_() { return generator; } \ + int gtest_##prefix##test_case_name##_dummy_ = \ + ::testing::UnitTest::GetInstance()->parameterized_test_registry(). \ + GetTestCasePatternHolder(\ + #test_case_name, __FILE__, __LINE__)->AddTestCaseInstantiation(\ + #prefix, \ + >est_##prefix##test_case_name##_EvalGenerator_, \ + __FILE__, __LINE__) + +} // namespace testing + +#endif // GTEST_HAS_PARAM_TEST + +#endif // GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_ +// Copyright 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) +// +// Google C++ Testing Framework definitions useful in production code. + +#ifndef GTEST_INCLUDE_GTEST_GTEST_PROD_H_ +#define GTEST_INCLUDE_GTEST_GTEST_PROD_H_ + +// When you need to test the private or protected members of a class, +// use the FRIEND_TEST macro to declare your tests as friends of the +// class. For example: +// +// class MyClass { +// private: +// void MyMethod(); +// FRIEND_TEST(MyClassTest, MyMethod); +// }; +// +// class MyClassTest : public testing::Test { +// // ... +// }; +// +// TEST_F(MyClassTest, MyMethod) { +// // Can call MyClass::MyMethod() here. +// } + +#define FRIEND_TEST(test_case_name, test_name)\ +friend class test_case_name##_##test_name##_Test + +#endif // GTEST_INCLUDE_GTEST_GTEST_PROD_H_ +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: mheule@google.com (Markus Heule) +// + +#ifndef GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ +#define GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ + +#include +#include + +namespace testing { + +// A copyable object representing the result of a test part (i.e. an +// assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()). +// +// Don't inherit from TestPartResult as its destructor is not virtual. +class GTEST_API_ TestPartResult { + public: + // The possible outcomes of a test part (i.e. an assertion or an + // explicit SUCCEED(), FAIL(), or ADD_FAILURE()). + enum Type { + kSuccess, // Succeeded. + kNonFatalFailure, // Failed but the test can continue. + kFatalFailure // Failed and the test should be terminated. + }; + + // C'tor. TestPartResult does NOT have a default constructor. + // Always use this constructor (with parameters) to create a + // TestPartResult object. + TestPartResult(Type a_type, + const char* a_file_name, + int a_line_number, + const char* a_message) + : type_(a_type), + file_name_(a_file_name == NULL ? "" : a_file_name), + line_number_(a_line_number), + summary_(ExtractSummary(a_message)), + message_(a_message) { + } + + // Gets the outcome of the test part. + Type type() const { return type_; } + + // Gets the name of the source file where the test part took place, or + // NULL if it's unknown. + const char* file_name() const { + return file_name_.empty() ? NULL : file_name_.c_str(); + } + + // Gets the line in the source file where the test part took place, + // or -1 if it's unknown. + int line_number() const { return line_number_; } + + // Gets the summary of the failure message. + const char* summary() const { return summary_.c_str(); } + + // Gets the message associated with the test part. + const char* message() const { return message_.c_str(); } + + // Returns true iff the test part passed. + bool passed() const { return type_ == kSuccess; } + + // Returns true iff the test part failed. + bool failed() const { return type_ != kSuccess; } + + // Returns true iff the test part non-fatally failed. + bool nonfatally_failed() const { return type_ == kNonFatalFailure; } + + // Returns true iff the test part fatally failed. + bool fatally_failed() const { return type_ == kFatalFailure; } + + private: + Type type_; + + // Gets the summary of the failure message by omitting the stack + // trace in it. + static std::string ExtractSummary(const char* message); + + // The name of the source file where the test part took place, or + // "" if the source file is unknown. + std::string file_name_; + // The line in the source file where the test part took place, or -1 + // if the line number is unknown. + int line_number_; + std::string summary_; // The test failure summary. + std::string message_; // The test failure message. +}; + +// Prints a TestPartResult object. +std::ostream& operator<<(std::ostream& os, const TestPartResult& result); + +// An array of TestPartResult objects. +// +// Don't inherit from TestPartResultArray as its destructor is not +// virtual. +class GTEST_API_ TestPartResultArray { + public: + TestPartResultArray() {} + + // Appends the given TestPartResult to the array. + void Append(const TestPartResult& result); + + // Returns the TestPartResult at the given index (0-based). + const TestPartResult& GetTestPartResult(int index) const; + + // Returns the number of TestPartResult objects in the array. + int size() const; + + private: + std::vector array_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestPartResultArray); +}; + +// This interface knows how to report a test part result. +class TestPartResultReporterInterface { + public: + virtual ~TestPartResultReporterInterface() {} + + virtual void ReportTestPartResult(const TestPartResult& result) = 0; +}; + +namespace internal { + +// This helper class is used by {ASSERT|EXPECT}_NO_FATAL_FAILURE to check if a +// statement generates new fatal failures. To do so it registers itself as the +// current test part result reporter. Besides checking if fatal failures were +// reported, it only delegates the reporting to the former result reporter. +// The original result reporter is restored in the destructor. +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +class GTEST_API_ HasNewFatalFailureHelper + : public TestPartResultReporterInterface { + public: + HasNewFatalFailureHelper(); + virtual ~HasNewFatalFailureHelper(); + virtual void ReportTestPartResult(const TestPartResult& result); + bool has_new_fatal_failure() const { return has_new_fatal_failure_; } + private: + bool has_new_fatal_failure_; + TestPartResultReporterInterface* original_reporter_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(HasNewFatalFailureHelper); +}; + +} // namespace internal + +} // namespace testing + +#endif // GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ +// Copyright 2008 Google Inc. +// All Rights Reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + +#ifndef GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_ +#define GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_ + +// This header implements typed tests and type-parameterized tests. + +// Typed (aka type-driven) tests repeat the same test for types in a +// list. You must know which types you want to test with when writing +// typed tests. Here's how you do it: + +#if 0 + +// First, define a fixture class template. It should be parameterized +// by a type. Remember to derive it from testing::Test. +template +class FooTest : public testing::Test { + public: + ... + typedef std::list List; + static T shared_; + T value_; +}; + +// Next, associate a list of types with the test case, which will be +// repeated for each type in the list. The typedef is necessary for +// the macro to parse correctly. +typedef testing::Types MyTypes; +TYPED_TEST_CASE(FooTest, MyTypes); + +// If the type list contains only one type, you can write that type +// directly without Types<...>: +// TYPED_TEST_CASE(FooTest, int); + +// Then, use TYPED_TEST() instead of TEST_F() to define as many typed +// tests for this test case as you want. +TYPED_TEST(FooTest, DoesBlah) { + // Inside a test, refer to TypeParam to get the type parameter. + // Since we are inside a derived class template, C++ requires use to + // visit the members of FooTest via 'this'. + TypeParam n = this->value_; + + // To visit static members of the fixture, add the TestFixture:: + // prefix. + n += TestFixture::shared_; + + // To refer to typedefs in the fixture, add the "typename + // TestFixture::" prefix. + typename TestFixture::List values; + values.push_back(n); + ... +} + +TYPED_TEST(FooTest, HasPropertyA) { ... } + +#endif // 0 + +// Type-parameterized tests are abstract test patterns parameterized +// by a type. Compared with typed tests, type-parameterized tests +// allow you to define the test pattern without knowing what the type +// parameters are. The defined pattern can be instantiated with +// different types any number of times, in any number of translation +// units. +// +// If you are designing an interface or concept, you can define a +// suite of type-parameterized tests to verify properties that any +// valid implementation of the interface/concept should have. Then, +// each implementation can easily instantiate the test suite to verify +// that it conforms to the requirements, without having to write +// similar tests repeatedly. Here's an example: + +#if 0 + +// First, define a fixture class template. It should be parameterized +// by a type. Remember to derive it from testing::Test. +template +class FooTest : public testing::Test { + ... +}; + +// Next, declare that you will define a type-parameterized test case +// (the _P suffix is for "parameterized" or "pattern", whichever you +// prefer): +TYPED_TEST_CASE_P(FooTest); + +// Then, use TYPED_TEST_P() to define as many type-parameterized tests +// for this type-parameterized test case as you want. +TYPED_TEST_P(FooTest, DoesBlah) { + // Inside a test, refer to TypeParam to get the type parameter. + TypeParam n = 0; + ... +} + +TYPED_TEST_P(FooTest, HasPropertyA) { ... } + +// Now the tricky part: you need to register all test patterns before +// you can instantiate them. The first argument of the macro is the +// test case name; the rest are the names of the tests in this test +// case. +REGISTER_TYPED_TEST_CASE_P(FooTest, + DoesBlah, HasPropertyA); + +// Finally, you are free to instantiate the pattern with the types you +// want. If you put the above code in a header file, you can #include +// it in multiple C++ source files and instantiate it multiple times. +// +// To distinguish different instances of the pattern, the first +// argument to the INSTANTIATE_* macro is a prefix that will be added +// to the actual test case name. Remember to pick unique prefixes for +// different instances. +typedef testing::Types MyTypes; +INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, MyTypes); + +// If the type list contains only one type, you can write that type +// directly without Types<...>: +// INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, int); + +#endif // 0 + + +// Implements typed tests. + +#if GTEST_HAS_TYPED_TEST + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Expands to the name of the typedef for the type parameters of the +// given test case. +# define GTEST_TYPE_PARAMS_(TestCaseName) gtest_type_params_##TestCaseName##_ + +// The 'Types' template argument below must have spaces around it +// since some compilers may choke on '>>' when passing a template +// instance (e.g. Types) +# define TYPED_TEST_CASE(CaseName, Types) \ + typedef ::testing::internal::TypeList< Types >::type \ + GTEST_TYPE_PARAMS_(CaseName) + +# define TYPED_TEST(CaseName, TestName) \ + template \ + class GTEST_TEST_CLASS_NAME_(CaseName, TestName) \ + : public CaseName { \ + private: \ + typedef CaseName TestFixture; \ + typedef gtest_TypeParam_ TypeParam; \ + virtual void TestBody(); \ + }; \ + bool gtest_##CaseName##_##TestName##_registered_ GTEST_ATTRIBUTE_UNUSED_ = \ + ::testing::internal::TypeParameterizedTest< \ + CaseName, \ + ::testing::internal::TemplateSel< \ + GTEST_TEST_CLASS_NAME_(CaseName, TestName)>, \ + GTEST_TYPE_PARAMS_(CaseName)>::Register(\ + "", #CaseName, #TestName, 0); \ + template \ + void GTEST_TEST_CLASS_NAME_(CaseName, TestName)::TestBody() + +#endif // GTEST_HAS_TYPED_TEST + +// Implements type-parameterized tests. + +#if GTEST_HAS_TYPED_TEST_P + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Expands to the namespace name that the type-parameterized tests for +// the given type-parameterized test case are defined in. The exact +// name of the namespace is subject to change without notice. +# define GTEST_CASE_NAMESPACE_(TestCaseName) \ + gtest_case_##TestCaseName##_ + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// +// Expands to the name of the variable used to remember the names of +// the defined tests in the given test case. +# define GTEST_TYPED_TEST_CASE_P_STATE_(TestCaseName) \ + gtest_typed_test_case_p_state_##TestCaseName##_ + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE DIRECTLY. +// +// Expands to the name of the variable used to remember the names of +// the registered tests in the given test case. +# define GTEST_REGISTERED_TEST_NAMES_(TestCaseName) \ + gtest_registered_test_names_##TestCaseName##_ + +// The variables defined in the type-parameterized test macros are +// static as typically these macros are used in a .h file that can be +// #included in multiple translation units linked together. +# define TYPED_TEST_CASE_P(CaseName) \ + static ::testing::internal::TypedTestCasePState \ + GTEST_TYPED_TEST_CASE_P_STATE_(CaseName) + +# define TYPED_TEST_P(CaseName, TestName) \ + namespace GTEST_CASE_NAMESPACE_(CaseName) { \ + template \ + class TestName : public CaseName { \ + private: \ + typedef CaseName TestFixture; \ + typedef gtest_TypeParam_ TypeParam; \ + virtual void TestBody(); \ + }; \ + static bool gtest_##TestName##_defined_ GTEST_ATTRIBUTE_UNUSED_ = \ + GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).AddTestName(\ + __FILE__, __LINE__, #CaseName, #TestName); \ + } \ + template \ + void GTEST_CASE_NAMESPACE_(CaseName)::TestName::TestBody() + +# define REGISTER_TYPED_TEST_CASE_P(CaseName, ...) \ + namespace GTEST_CASE_NAMESPACE_(CaseName) { \ + typedef ::testing::internal::Templates<__VA_ARGS__>::type gtest_AllTests_; \ + } \ + static const char* const GTEST_REGISTERED_TEST_NAMES_(CaseName) = \ + GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).VerifyRegisteredTestNames(\ + __FILE__, __LINE__, #__VA_ARGS__) + +// The 'Types' template argument below must have spaces around it +// since some compilers may choke on '>>' when passing a template +// instance (e.g. Types) +# define INSTANTIATE_TYPED_TEST_CASE_P(Prefix, CaseName, Types) \ + bool gtest_##Prefix##_##CaseName GTEST_ATTRIBUTE_UNUSED_ = \ + ::testing::internal::TypeParameterizedTestCase::type>::Register(\ + #Prefix, #CaseName, GTEST_REGISTERED_TEST_NAMES_(CaseName)) + +#endif // GTEST_HAS_TYPED_TEST_P + +#endif // GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_ + +// Depending on the platform, different string classes are available. +// On Linux, in addition to ::std::string, Google also makes use of +// class ::string, which has the same interface as ::std::string, but +// has a different implementation. +// +// The user can define GTEST_HAS_GLOBAL_STRING to 1 to indicate that +// ::string is available AND is a distinct type to ::std::string, or +// define it to 0 to indicate otherwise. +// +// If the user's ::std::string and ::string are the same class due to +// aliasing, he should define GTEST_HAS_GLOBAL_STRING to 0. +// +// If the user doesn't define GTEST_HAS_GLOBAL_STRING, it is defined +// heuristically. + +namespace testing { + +// Declares the flags. + +// This flag temporary enables the disabled tests. +GTEST_DECLARE_bool_(also_run_disabled_tests); + +// This flag brings the debugger on an assertion failure. +GTEST_DECLARE_bool_(break_on_failure); + +// This flag controls whether Google Test catches all test-thrown exceptions +// and logs them as failures. +GTEST_DECLARE_bool_(catch_exceptions); + +// This flag enables using colors in terminal output. Available values are +// "yes" to enable colors, "no" (disable colors), or "auto" (the default) +// to let Google Test decide. +GTEST_DECLARE_string_(color); + +// This flag sets up the filter to select by name using a glob pattern +// the tests to run. If the filter is not given all tests are executed. +GTEST_DECLARE_string_(filter); + +// This flag causes the Google Test to list tests. None of the tests listed +// are actually run if the flag is provided. +GTEST_DECLARE_bool_(list_tests); + +// This flag controls whether Google Test emits a detailed XML report to a file +// in addition to its normal textual output. +GTEST_DECLARE_string_(output); + +// This flags control whether Google Test prints the elapsed time for each +// test. +GTEST_DECLARE_bool_(print_time); + +// This flag specifies the random number seed. +GTEST_DECLARE_int32_(random_seed); + +// This flag sets how many times the tests are repeated. The default value +// is 1. If the value is -1 the tests are repeating forever. +GTEST_DECLARE_int32_(repeat); + +// This flag controls whether Google Test includes Google Test internal +// stack frames in failure stack traces. +GTEST_DECLARE_bool_(show_internal_stack_frames); + +// When this flag is specified, tests' order is randomized on every iteration. +GTEST_DECLARE_bool_(shuffle); + +// This flag specifies the maximum number of stack frames to be +// printed in a failure message. +GTEST_DECLARE_int32_(stack_trace_depth); + +// When this flag is specified, a failed assertion will throw an +// exception if exceptions are enabled, or exit the program with a +// non-zero code otherwise. +GTEST_DECLARE_bool_(throw_on_failure); + +// When this flag is set with a "host:port" string, on supported +// platforms test results are streamed to the specified port on +// the specified host machine. +GTEST_DECLARE_string_(stream_result_to); + +// The upper limit for valid stack trace depths. +const int kMaxStackTraceDepth = 100; + +namespace internal { + +class AssertHelper; +class DefaultGlobalTestPartResultReporter; +class ExecDeathTest; +class NoExecDeathTest; +class FinalSuccessChecker; +class GTestFlagSaver; +class StreamingListenerTest; +class TestResultAccessor; +class TestEventListenersAccessor; +class TestEventRepeater; +class UnitTestRecordPropertyTestHelper; +class WindowsDeathTest; +class UnitTestImpl* GetUnitTestImpl(); +void ReportFailureInUnknownLocation(TestPartResult::Type result_type, + const std::string& message); + +} // namespace internal + +// The friend relationship of some of these classes is cyclic. +// If we don't forward declare them the compiler might confuse the classes +// in friendship clauses with same named classes on the scope. +class Test; +class TestCase; +class TestInfo; +class UnitTest; + +// A class for indicating whether an assertion was successful. When +// the assertion wasn't successful, the AssertionResult object +// remembers a non-empty message that describes how it failed. +// +// To create an instance of this class, use one of the factory functions +// (AssertionSuccess() and AssertionFailure()). +// +// This class is useful for two purposes: +// 1. Defining predicate functions to be used with Boolean test assertions +// EXPECT_TRUE/EXPECT_FALSE and their ASSERT_ counterparts +// 2. Defining predicate-format functions to be +// used with predicate assertions (ASSERT_PRED_FORMAT*, etc). +// +// For example, if you define IsEven predicate: +// +// testing::AssertionResult IsEven(int n) { +// if ((n % 2) == 0) +// return testing::AssertionSuccess(); +// else +// return testing::AssertionFailure() << n << " is odd"; +// } +// +// Then the failed expectation EXPECT_TRUE(IsEven(Fib(5))) +// will print the message +// +// Value of: IsEven(Fib(5)) +// Actual: false (5 is odd) +// Expected: true +// +// instead of a more opaque +// +// Value of: IsEven(Fib(5)) +// Actual: false +// Expected: true +// +// in case IsEven is a simple Boolean predicate. +// +// If you expect your predicate to be reused and want to support informative +// messages in EXPECT_FALSE and ASSERT_FALSE (negative assertions show up +// about half as often as positive ones in our tests), supply messages for +// both success and failure cases: +// +// testing::AssertionResult IsEven(int n) { +// if ((n % 2) == 0) +// return testing::AssertionSuccess() << n << " is even"; +// else +// return testing::AssertionFailure() << n << " is odd"; +// } +// +// Then a statement EXPECT_FALSE(IsEven(Fib(6))) will print +// +// Value of: IsEven(Fib(6)) +// Actual: true (8 is even) +// Expected: false +// +// NB: Predicates that support negative Boolean assertions have reduced +// performance in positive ones so be careful not to use them in tests +// that have lots (tens of thousands) of positive Boolean assertions. +// +// To use this class with EXPECT_PRED_FORMAT assertions such as: +// +// // Verifies that Foo() returns an even number. +// EXPECT_PRED_FORMAT1(IsEven, Foo()); +// +// you need to define: +// +// testing::AssertionResult IsEven(const char* expr, int n) { +// if ((n % 2) == 0) +// return testing::AssertionSuccess(); +// else +// return testing::AssertionFailure() +// << "Expected: " << expr << " is even\n Actual: it's " << n; +// } +// +// If Foo() returns 5, you will see the following message: +// +// Expected: Foo() is even +// Actual: it's 5 +// +class GTEST_API_ AssertionResult { + public: + // Copy constructor. + // Used in EXPECT_TRUE/FALSE(assertion_result). + AssertionResult(const AssertionResult& other); + // Used in the EXPECT_TRUE/FALSE(bool_expression). + explicit AssertionResult(bool success) : success_(success) {} + + // Returns true iff the assertion succeeded. + operator bool() const { return success_; } // NOLINT + + // Returns the assertion's negation. Used with EXPECT/ASSERT_FALSE. + AssertionResult operator!() const; + + // Returns the text streamed into this AssertionResult. Test assertions + // use it when they fail (i.e., the predicate's outcome doesn't match the + // assertion's expectation). When nothing has been streamed into the + // object, returns an empty string. + const char* message() const { + return message_.get() != NULL ? message_->c_str() : ""; + } + // TODO(vladl@google.com): Remove this after making sure no clients use it. + // Deprecated; please use message() instead. + const char* failure_message() const { return message(); } + + // Streams a custom failure message into this object. + template AssertionResult& operator<<(const T& value) { + AppendMessage(Message() << value); + return *this; + } + + // Allows streaming basic output manipulators such as endl or flush into + // this object. + AssertionResult& operator<<( + ::std::ostream& (*basic_manipulator)(::std::ostream& stream)) { + AppendMessage(Message() << basic_manipulator); + return *this; + } + + private: + // Appends the contents of message to message_. + void AppendMessage(const Message& a_message) { + if (message_.get() == NULL) + message_.reset(new ::std::string); + message_->append(a_message.GetString().c_str()); + } + + // Stores result of the assertion predicate. + bool success_; + // Stores the message describing the condition in case the expectation + // construct is not satisfied with the predicate's outcome. + // Referenced via a pointer to avoid taking too much stack frame space + // with test assertions. + internal::scoped_ptr< ::std::string> message_; + + GTEST_DISALLOW_ASSIGN_(AssertionResult); +}; + +// Makes a successful assertion result. +GTEST_API_ AssertionResult AssertionSuccess(); + +// Makes a failed assertion result. +GTEST_API_ AssertionResult AssertionFailure(); + +// Makes a failed assertion result with the given failure message. +// Deprecated; use AssertionFailure() << msg. +GTEST_API_ AssertionResult AssertionFailure(const Message& msg); + +// The abstract class that all tests inherit from. +// +// In Google Test, a unit test program contains one or many TestCases, and +// each TestCase contains one or many Tests. +// +// When you define a test using the TEST macro, you don't need to +// explicitly derive from Test - the TEST macro automatically does +// this for you. +// +// The only time you derive from Test is when defining a test fixture +// to be used a TEST_F. For example: +// +// class FooTest : public testing::Test { +// protected: +// virtual void SetUp() { ... } +// virtual void TearDown() { ... } +// ... +// }; +// +// TEST_F(FooTest, Bar) { ... } +// TEST_F(FooTest, Baz) { ... } +// +// Test is not copyable. +class GTEST_API_ Test { + public: + friend class TestInfo; + + // Defines types for pointers to functions that set up and tear down + // a test case. + typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc; + typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc; + + // The d'tor is virtual as we intend to inherit from Test. + virtual ~Test(); + + // Sets up the stuff shared by all tests in this test case. + // + // Google Test will call Foo::SetUpTestCase() before running the first + // test in test case Foo. Hence a sub-class can define its own + // SetUpTestCase() method to shadow the one defined in the super + // class. + static void SetUpTestCase() {} + + // Tears down the stuff shared by all tests in this test case. + // + // Google Test will call Foo::TearDownTestCase() after running the last + // test in test case Foo. Hence a sub-class can define its own + // TearDownTestCase() method to shadow the one defined in the super + // class. + static void TearDownTestCase() {} + + // Returns true iff the current test has a fatal failure. + static bool HasFatalFailure(); + + // Returns true iff the current test has a non-fatal failure. + static bool HasNonfatalFailure(); + + // Returns true iff the current test has a (either fatal or + // non-fatal) failure. + static bool HasFailure() { return HasFatalFailure() || HasNonfatalFailure(); } + + // Logs a property for the current test, test case, or for the entire + // invocation of the test program when used outside of the context of a + // test case. Only the last value for a given key is remembered. These + // are public static so they can be called from utility functions that are + // not members of the test fixture. Calls to RecordProperty made during + // lifespan of the test (from the moment its constructor starts to the + // moment its destructor finishes) will be output in XML as attributes of + // the element. Properties recorded from fixture's + // SetUpTestCase or TearDownTestCase are logged as attributes of the + // corresponding element. Calls to RecordProperty made in the + // global context (before or after invocation of RUN_ALL_TESTS and from + // SetUp/TearDown method of Environment objects registered with Google + // Test) will be output as attributes of the element. + static void RecordProperty(const std::string& key, const std::string& value); + static void RecordProperty(const std::string& key, int value); + + protected: + // Creates a Test object. + Test(); + + // Sets up the test fixture. + virtual void SetUp(); + + // Tears down the test fixture. + virtual void TearDown(); + + private: + // Returns true iff the current test has the same fixture class as + // the first test in the current test case. + static bool HasSameFixtureClass(); + + // Runs the test after the test fixture has been set up. + // + // A sub-class must implement this to define the test logic. + // + // DO NOT OVERRIDE THIS FUNCTION DIRECTLY IN A USER PROGRAM. + // Instead, use the TEST or TEST_F macro. + virtual void TestBody() = 0; + + // Sets up, executes, and tears down the test. + void Run(); + + // Deletes self. We deliberately pick an unusual name for this + // internal method to avoid clashing with names used in user TESTs. + void DeleteSelf_() { delete this; } + + // Uses a GTestFlagSaver to save and restore all Google Test flags. + const internal::GTestFlagSaver* const gtest_flag_saver_; + + // Often a user mis-spells SetUp() as Setup() and spends a long time + // wondering why it is never called by Google Test. The declaration of + // the following method is solely for catching such an error at + // compile time: + // + // - The return type is deliberately chosen to be not void, so it + // will be a conflict if a user declares void Setup() in his test + // fixture. + // + // - This method is private, so it will be another compiler error + // if a user calls it from his test fixture. + // + // DO NOT OVERRIDE THIS FUNCTION. + // + // If you see an error about overriding the following function or + // about it being private, you have mis-spelled SetUp() as Setup(). + struct Setup_should_be_spelled_SetUp {}; + virtual Setup_should_be_spelled_SetUp* Setup() { return NULL; } + + // We disallow copying Tests. + GTEST_DISALLOW_COPY_AND_ASSIGN_(Test); +}; + +typedef internal::TimeInMillis TimeInMillis; + +// A copyable object representing a user specified test property which can be +// output as a key/value string pair. +// +// Don't inherit from TestProperty as its destructor is not virtual. +class TestProperty { + public: + // C'tor. TestProperty does NOT have a default constructor. + // Always use this constructor (with parameters) to create a + // TestProperty object. + TestProperty(const std::string& a_key, const std::string& a_value) : + key_(a_key), value_(a_value) { + } + + // Gets the user supplied key. + const char* key() const { + return key_.c_str(); + } + + // Gets the user supplied value. + const char* value() const { + return value_.c_str(); + } + + // Sets a new value, overriding the one supplied in the constructor. + void SetValue(const std::string& new_value) { + value_ = new_value; + } + + private: + // The key supplied by the user. + std::string key_; + // The value supplied by the user. + std::string value_; +}; + +// The result of a single Test. This includes a list of +// TestPartResults, a list of TestProperties, a count of how many +// death tests there are in the Test, and how much time it took to run +// the Test. +// +// TestResult is not copyable. +class GTEST_API_ TestResult { + public: + // Creates an empty TestResult. + TestResult(); + + // D'tor. Do not inherit from TestResult. + ~TestResult(); + + // Gets the number of all test parts. This is the sum of the number + // of successful test parts and the number of failed test parts. + int total_part_count() const; + + // Returns the number of the test properties. + int test_property_count() const; + + // Returns true iff the test passed (i.e. no test part failed). + bool Passed() const { return !Failed(); } + + // Returns true iff the test failed. + bool Failed() const; + + // Returns true iff the test fatally failed. + bool HasFatalFailure() const; + + // Returns true iff the test has a non-fatal failure. + bool HasNonfatalFailure() const; + + // Returns the elapsed time, in milliseconds. + TimeInMillis elapsed_time() const { return elapsed_time_; } + + // Returns the i-th test part result among all the results. i can range + // from 0 to test_property_count() - 1. If i is not in that range, aborts + // the program. + const TestPartResult& GetTestPartResult(int i) const; + + // Returns the i-th test property. i can range from 0 to + // test_property_count() - 1. If i is not in that range, aborts the + // program. + const TestProperty& GetTestProperty(int i) const; + + private: + friend class TestInfo; + friend class TestCase; + friend class UnitTest; + friend class internal::DefaultGlobalTestPartResultReporter; + friend class internal::ExecDeathTest; + friend class internal::TestResultAccessor; + friend class internal::UnitTestImpl; + friend class internal::WindowsDeathTest; + + // Gets the vector of TestPartResults. + const std::vector& test_part_results() const { + return test_part_results_; + } + + // Gets the vector of TestProperties. + const std::vector& test_properties() const { + return test_properties_; + } + + // Sets the elapsed time. + void set_elapsed_time(TimeInMillis elapsed) { elapsed_time_ = elapsed; } + + // Adds a test property to the list. The property is validated and may add + // a non-fatal failure if invalid (e.g., if it conflicts with reserved + // key names). If a property is already recorded for the same key, the + // value will be updated, rather than storing multiple values for the same + // key. xml_element specifies the element for which the property is being + // recorded and is used for validation. + void RecordProperty(const std::string& xml_element, + const TestProperty& test_property); + + // Adds a failure if the key is a reserved attribute of Google Test + // testcase tags. Returns true if the property is valid. + // TODO(russr): Validate attribute names are legal and human readable. + static bool ValidateTestProperty(const std::string& xml_element, + const TestProperty& test_property); + + // Adds a test part result to the list. + void AddTestPartResult(const TestPartResult& test_part_result); + + // Returns the death test count. + int death_test_count() const { return death_test_count_; } + + // Increments the death test count, returning the new count. + int increment_death_test_count() { return ++death_test_count_; } + + // Clears the test part results. + void ClearTestPartResults(); + + // Clears the object. + void Clear(); + + // Protects mutable state of the property vector and of owned + // properties, whose values may be updated. + internal::Mutex test_properites_mutex_; + + // The vector of TestPartResults + std::vector test_part_results_; + // The vector of TestProperties + std::vector test_properties_; + // Running count of death tests. + int death_test_count_; + // The elapsed time, in milliseconds. + TimeInMillis elapsed_time_; + + // We disallow copying TestResult. + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestResult); +}; // class TestResult + +// A TestInfo object stores the following information about a test: +// +// Test case name +// Test name +// Whether the test should be run +// A function pointer that creates the test object when invoked +// Test result +// +// The constructor of TestInfo registers itself with the UnitTest +// singleton such that the RUN_ALL_TESTS() macro knows which tests to +// run. +class GTEST_API_ TestInfo { + public: + // Destructs a TestInfo object. This function is not virtual, so + // don't inherit from TestInfo. + ~TestInfo(); + + // Returns the test case name. + const char* test_case_name() const { return test_case_name_.c_str(); } + + // Returns the test name. + const char* name() const { return name_.c_str(); } + + // Returns the name of the parameter type, or NULL if this is not a typed + // or a type-parameterized test. + const char* type_param() const { + if (type_param_.get() != NULL) + return type_param_->c_str(); + return NULL; + } + + // Returns the text representation of the value parameter, or NULL if this + // is not a value-parameterized test. + const char* value_param() const { + if (value_param_.get() != NULL) + return value_param_->c_str(); + return NULL; + } + + // Returns true if this test should run, that is if the test is not + // disabled (or it is disabled but the also_run_disabled_tests flag has + // been specified) and its full name matches the user-specified filter. + // + // Google Test allows the user to filter the tests by their full names. + // The full name of a test Bar in test case Foo is defined as + // "Foo.Bar". Only the tests that match the filter will run. + // + // A filter is a colon-separated list of glob (not regex) patterns, + // optionally followed by a '-' and a colon-separated list of + // negative patterns (tests to exclude). A test is run if it + // matches one of the positive patterns and does not match any of + // the negative patterns. + // + // For example, *A*:Foo.* is a filter that matches any string that + // contains the character 'A' or starts with "Foo.". + bool should_run() const { return should_run_; } + + // Returns true iff this test will appear in the XML report. + bool is_reportable() const { + // For now, the XML report includes all tests matching the filter. + // In the future, we may trim tests that are excluded because of + // sharding. + return matches_filter_; + } + + // Returns the result of the test. + const TestResult* result() const { return &result_; } + + private: +#if GTEST_HAS_DEATH_TEST + friend class internal::DefaultDeathTestFactory; +#endif // GTEST_HAS_DEATH_TEST + friend class Test; + friend class TestCase; + friend class internal::UnitTestImpl; + friend class internal::StreamingListenerTest; + friend TestInfo* internal::MakeAndRegisterTestInfo( + const char* test_case_name, + const char* name, + const char* type_param, + const char* value_param, + internal::TypeId fixture_class_id, + Test::SetUpTestCaseFunc set_up_tc, + Test::TearDownTestCaseFunc tear_down_tc, + internal::TestFactoryBase* factory); + + // Constructs a TestInfo object. The newly constructed instance assumes + // ownership of the factory object. + TestInfo(const std::string& test_case_name, + const std::string& name, + const char* a_type_param, // NULL if not a type-parameterized test + const char* a_value_param, // NULL if not a value-parameterized test + internal::TypeId fixture_class_id, + internal::TestFactoryBase* factory); + + // Increments the number of death tests encountered in this test so + // far. + int increment_death_test_count() { + return result_.increment_death_test_count(); + } + + // Creates the test object, runs it, records its result, and then + // deletes it. + void Run(); + + static void ClearTestResult(TestInfo* test_info) { + test_info->result_.Clear(); + } + + // These fields are immutable properties of the test. + const std::string test_case_name_; // Test case name + const std::string name_; // Test name + // Name of the parameter type, or NULL if this is not a typed or a + // type-parameterized test. + const internal::scoped_ptr type_param_; + // Text representation of the value parameter, or NULL if this is not a + // value-parameterized test. + const internal::scoped_ptr value_param_; + const internal::TypeId fixture_class_id_; // ID of the test fixture class + bool should_run_; // True iff this test should run + bool is_disabled_; // True iff this test is disabled + bool matches_filter_; // True if this test matches the + // user-specified filter. + internal::TestFactoryBase* const factory_; // The factory that creates + // the test object + + // This field is mutable and needs to be reset before running the + // test for the second time. + TestResult result_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo); +}; + +// A test case, which consists of a vector of TestInfos. +// +// TestCase is not copyable. +class GTEST_API_ TestCase { + public: + // Creates a TestCase with the given name. + // + // TestCase does NOT have a default constructor. Always use this + // constructor to create a TestCase object. + // + // Arguments: + // + // name: name of the test case + // a_type_param: the name of the test's type parameter, or NULL if + // this is not a type-parameterized test. + // set_up_tc: pointer to the function that sets up the test case + // tear_down_tc: pointer to the function that tears down the test case + TestCase(const char* name, const char* a_type_param, + Test::SetUpTestCaseFunc set_up_tc, + Test::TearDownTestCaseFunc tear_down_tc); + + // Destructor of TestCase. + virtual ~TestCase(); + + // Gets the name of the TestCase. + const char* name() const { return name_.c_str(); } + + // Returns the name of the parameter type, or NULL if this is not a + // type-parameterized test case. + const char* type_param() const { + if (type_param_.get() != NULL) + return type_param_->c_str(); + return NULL; + } + + // Returns true if any test in this test case should run. + bool should_run() const { return should_run_; } + + // Gets the number of successful tests in this test case. + int successful_test_count() const; + + // Gets the number of failed tests in this test case. + int failed_test_count() const; + + // Gets the number of disabled tests that will be reported in the XML report. + int reportable_disabled_test_count() const; + + // Gets the number of disabled tests in this test case. + int disabled_test_count() const; + + // Gets the number of tests to be printed in the XML report. + int reportable_test_count() const; + + // Get the number of tests in this test case that should run. + int test_to_run_count() const; + + // Gets the number of all tests in this test case. + int total_test_count() const; + + // Returns true iff the test case passed. + bool Passed() const { return !Failed(); } + + // Returns true iff the test case failed. + bool Failed() const { return failed_test_count() > 0; } + + // Returns the elapsed time, in milliseconds. + TimeInMillis elapsed_time() const { return elapsed_time_; } + + // Returns the i-th test among all the tests. i can range from 0 to + // total_test_count() - 1. If i is not in that range, returns NULL. + const TestInfo* GetTestInfo(int i) const; + + // Returns the TestResult that holds test properties recorded during + // execution of SetUpTestCase and TearDownTestCase. + const TestResult& ad_hoc_test_result() const { return ad_hoc_test_result_; } + + private: + friend class Test; + friend class internal::UnitTestImpl; + + // Gets the (mutable) vector of TestInfos in this TestCase. + std::vector& test_info_list() { return test_info_list_; } + + // Gets the (immutable) vector of TestInfos in this TestCase. + const std::vector& test_info_list() const { + return test_info_list_; + } + + // Returns the i-th test among all the tests. i can range from 0 to + // total_test_count() - 1. If i is not in that range, returns NULL. + TestInfo* GetMutableTestInfo(int i); + + // Sets the should_run member. + void set_should_run(bool should) { should_run_ = should; } + + // Adds a TestInfo to this test case. Will delete the TestInfo upon + // destruction of the TestCase object. + void AddTestInfo(TestInfo * test_info); + + // Clears the results of all tests in this test case. + void ClearResult(); + + // Clears the results of all tests in the given test case. + static void ClearTestCaseResult(TestCase* test_case) { + test_case->ClearResult(); + } + + // Runs every test in this TestCase. + void Run(); + + // Runs SetUpTestCase() for this TestCase. This wrapper is needed + // for catching exceptions thrown from SetUpTestCase(). + void RunSetUpTestCase() { (*set_up_tc_)(); } + + // Runs TearDownTestCase() for this TestCase. This wrapper is + // needed for catching exceptions thrown from TearDownTestCase(). + void RunTearDownTestCase() { (*tear_down_tc_)(); } + + // Returns true iff test passed. + static bool TestPassed(const TestInfo* test_info) { + return test_info->should_run() && test_info->result()->Passed(); + } + + // Returns true iff test failed. + static bool TestFailed(const TestInfo* test_info) { + return test_info->should_run() && test_info->result()->Failed(); + } + + // Returns true iff the test is disabled and will be reported in the XML + // report. + static bool TestReportableDisabled(const TestInfo* test_info) { + return test_info->is_reportable() && test_info->is_disabled_; + } + + // Returns true iff test is disabled. + static bool TestDisabled(const TestInfo* test_info) { + return test_info->is_disabled_; + } + + // Returns true iff this test will appear in the XML report. + static bool TestReportable(const TestInfo* test_info) { + return test_info->is_reportable(); + } + + // Returns true if the given test should run. + static bool ShouldRunTest(const TestInfo* test_info) { + return test_info->should_run(); + } + + // Shuffles the tests in this test case. + void ShuffleTests(internal::Random* random); + + // Restores the test order to before the first shuffle. + void UnshuffleTests(); + + // Name of the test case. + std::string name_; + // Name of the parameter type, or NULL if this is not a typed or a + // type-parameterized test. + const internal::scoped_ptr type_param_; + // The vector of TestInfos in their original order. It owns the + // elements in the vector. + std::vector test_info_list_; + // Provides a level of indirection for the test list to allow easy + // shuffling and restoring the test order. The i-th element in this + // vector is the index of the i-th test in the shuffled test list. + std::vector test_indices_; + // Pointer to the function that sets up the test case. + Test::SetUpTestCaseFunc set_up_tc_; + // Pointer to the function that tears down the test case. + Test::TearDownTestCaseFunc tear_down_tc_; + // True iff any test in this test case should run. + bool should_run_; + // Elapsed time, in milliseconds. + TimeInMillis elapsed_time_; + // Holds test properties recorded during execution of SetUpTestCase and + // TearDownTestCase. + TestResult ad_hoc_test_result_; + + // We disallow copying TestCases. + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestCase); +}; + +// An Environment object is capable of setting up and tearing down an +// environment. The user should subclass this to define his own +// environment(s). +// +// An Environment object does the set-up and tear-down in virtual +// methods SetUp() and TearDown() instead of the constructor and the +// destructor, as: +// +// 1. You cannot safely throw from a destructor. This is a problem +// as in some cases Google Test is used where exceptions are enabled, and +// we may want to implement ASSERT_* using exceptions where they are +// available. +// 2. You cannot use ASSERT_* directly in a constructor or +// destructor. +class Environment { + public: + // The d'tor is virtual as we need to subclass Environment. + virtual ~Environment() {} + + // Override this to define how to set up the environment. + virtual void SetUp() {} + + // Override this to define how to tear down the environment. + virtual void TearDown() {} + private: + // If you see an error about overriding the following function or + // about it being private, you have mis-spelled SetUp() as Setup(). + struct Setup_should_be_spelled_SetUp {}; + virtual Setup_should_be_spelled_SetUp* Setup() { return NULL; } +}; + +// The interface for tracing execution of tests. The methods are organized in +// the order the corresponding events are fired. +class TestEventListener { + public: + virtual ~TestEventListener() {} + + // Fired before any test activity starts. + virtual void OnTestProgramStart(const UnitTest& unit_test) = 0; + + // Fired before each iteration of tests starts. There may be more than + // one iteration if GTEST_FLAG(repeat) is set. iteration is the iteration + // index, starting from 0. + virtual void OnTestIterationStart(const UnitTest& unit_test, + int iteration) = 0; + + // Fired before environment set-up for each iteration of tests starts. + virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test) = 0; + + // Fired after environment set-up for each iteration of tests ends. + virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) = 0; + + // Fired before the test case starts. + virtual void OnTestCaseStart(const TestCase& test_case) = 0; + + // Fired before the test starts. + virtual void OnTestStart(const TestInfo& test_info) = 0; + + // Fired after a failed assertion or a SUCCEED() invocation. + virtual void OnTestPartResult(const TestPartResult& test_part_result) = 0; + + // Fired after the test ends. + virtual void OnTestEnd(const TestInfo& test_info) = 0; + + // Fired after the test case ends. + virtual void OnTestCaseEnd(const TestCase& test_case) = 0; + + // Fired before environment tear-down for each iteration of tests starts. + virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test) = 0; + + // Fired after environment tear-down for each iteration of tests ends. + virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) = 0; + + // Fired after each iteration of tests finishes. + virtual void OnTestIterationEnd(const UnitTest& unit_test, + int iteration) = 0; + + // Fired after all test activities have ended. + virtual void OnTestProgramEnd(const UnitTest& unit_test) = 0; +}; + +// The convenience class for users who need to override just one or two +// methods and are not concerned that a possible change to a signature of +// the methods they override will not be caught during the build. For +// comments about each method please see the definition of TestEventListener +// above. +class EmptyTestEventListener : public TestEventListener { + public: + virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {} + virtual void OnTestIterationStart(const UnitTest& /*unit_test*/, + int /*iteration*/) {} + virtual void OnEnvironmentsSetUpStart(const UnitTest& /*unit_test*/) {} + virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {} + virtual void OnTestCaseStart(const TestCase& /*test_case*/) {} + virtual void OnTestStart(const TestInfo& /*test_info*/) {} + virtual void OnTestPartResult(const TestPartResult& /*test_part_result*/) {} + virtual void OnTestEnd(const TestInfo& /*test_info*/) {} + virtual void OnTestCaseEnd(const TestCase& /*test_case*/) {} + virtual void OnEnvironmentsTearDownStart(const UnitTest& /*unit_test*/) {} + virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/) {} + virtual void OnTestIterationEnd(const UnitTest& /*unit_test*/, + int /*iteration*/) {} + virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {} +}; + +// TestEventListeners lets users add listeners to track events in Google Test. +class GTEST_API_ TestEventListeners { + public: + TestEventListeners(); + ~TestEventListeners(); + + // Appends an event listener to the end of the list. Google Test assumes + // the ownership of the listener (i.e. it will delete the listener when + // the test program finishes). + void Append(TestEventListener* listener); + + // Removes the given event listener from the list and returns it. It then + // becomes the caller's responsibility to delete the listener. Returns + // NULL if the listener is not found in the list. + TestEventListener* Release(TestEventListener* listener); + + // Returns the standard listener responsible for the default console + // output. Can be removed from the listeners list to shut down default + // console output. Note that removing this object from the listener list + // with Release transfers its ownership to the caller and makes this + // function return NULL the next time. + TestEventListener* default_result_printer() const { + return default_result_printer_; + } + + // Returns the standard listener responsible for the default XML output + // controlled by the --gtest_output=xml flag. Can be removed from the + // listeners list by users who want to shut down the default XML output + // controlled by this flag and substitute it with custom one. Note that + // removing this object from the listener list with Release transfers its + // ownership to the caller and makes this function return NULL the next + // time. + TestEventListener* default_xml_generator() const { + return default_xml_generator_; + } + + private: + friend class TestCase; + friend class TestInfo; + friend class internal::DefaultGlobalTestPartResultReporter; + friend class internal::NoExecDeathTest; + friend class internal::TestEventListenersAccessor; + friend class internal::UnitTestImpl; + + // Returns repeater that broadcasts the TestEventListener events to all + // subscribers. + TestEventListener* repeater(); + + // Sets the default_result_printer attribute to the provided listener. + // The listener is also added to the listener list and previous + // default_result_printer is removed from it and deleted. The listener can + // also be NULL in which case it will not be added to the list. Does + // nothing if the previous and the current listener objects are the same. + void SetDefaultResultPrinter(TestEventListener* listener); + + // Sets the default_xml_generator attribute to the provided listener. The + // listener is also added to the listener list and previous + // default_xml_generator is removed from it and deleted. The listener can + // also be NULL in which case it will not be added to the list. Does + // nothing if the previous and the current listener objects are the same. + void SetDefaultXmlGenerator(TestEventListener* listener); + + // Controls whether events will be forwarded by the repeater to the + // listeners in the list. + bool EventForwardingEnabled() const; + void SuppressEventForwarding(); + + // The actual list of listeners. + internal::TestEventRepeater* repeater_; + // Listener responsible for the standard result output. + TestEventListener* default_result_printer_; + // Listener responsible for the creation of the XML output file. + TestEventListener* default_xml_generator_; + + // We disallow copying TestEventListeners. + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestEventListeners); +}; + +// A UnitTest consists of a vector of TestCases. +// +// This is a singleton class. The only instance of UnitTest is +// created when UnitTest::GetInstance() is first called. This +// instance is never deleted. +// +// UnitTest is not copyable. +// +// This class is thread-safe as long as the methods are called +// according to their specification. +class GTEST_API_ UnitTest { + public: + // Gets the singleton UnitTest object. The first time this method + // is called, a UnitTest object is constructed and returned. + // Consecutive calls will return the same object. + static UnitTest* GetInstance(); + + // Runs all tests in this UnitTest object and prints the result. + // Returns 0 if successful, or 1 otherwise. + // + // This method can only be called from the main thread. + // + // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. + int Run() GTEST_MUST_USE_RESULT_; + + // Returns the working directory when the first TEST() or TEST_F() + // was executed. The UnitTest object owns the string. + const char* original_working_dir() const; + + // Returns the TestCase object for the test that's currently running, + // or NULL if no test is running. + const TestCase* current_test_case() const + GTEST_LOCK_EXCLUDED_(mutex_); + + // Returns the TestInfo object for the test that's currently running, + // or NULL if no test is running. + const TestInfo* current_test_info() const + GTEST_LOCK_EXCLUDED_(mutex_); + + // Returns the random seed used at the start of the current test run. + int random_seed() const; + +#if GTEST_HAS_PARAM_TEST + // Returns the ParameterizedTestCaseRegistry object used to keep track of + // value-parameterized tests and instantiate and register them. + // + // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. + internal::ParameterizedTestCaseRegistry& parameterized_test_registry() + GTEST_LOCK_EXCLUDED_(mutex_); +#endif // GTEST_HAS_PARAM_TEST + + // Gets the number of successful test cases. + int successful_test_case_count() const; + + // Gets the number of failed test cases. + int failed_test_case_count() const; + + // Gets the number of all test cases. + int total_test_case_count() const; + + // Gets the number of all test cases that contain at least one test + // that should run. + int test_case_to_run_count() const; + + // Gets the number of successful tests. + int successful_test_count() const; + + // Gets the number of failed tests. + int failed_test_count() const; + + // Gets the number of disabled tests that will be reported in the XML report. + int reportable_disabled_test_count() const; + + // Gets the number of disabled tests. + int disabled_test_count() const; + + // Gets the number of tests to be printed in the XML report. + int reportable_test_count() const; + + // Gets the number of all tests. + int total_test_count() const; + + // Gets the number of tests that should run. + int test_to_run_count() const; + + // Gets the time of the test program start, in ms from the start of the + // UNIX epoch. + TimeInMillis start_timestamp() const; + + // Gets the elapsed time, in milliseconds. + TimeInMillis elapsed_time() const; + + // Returns true iff the unit test passed (i.e. all test cases passed). + bool Passed() const; + + // Returns true iff the unit test failed (i.e. some test case failed + // or something outside of all tests failed). + bool Failed() const; + + // Gets the i-th test case among all the test cases. i can range from 0 to + // total_test_case_count() - 1. If i is not in that range, returns NULL. + const TestCase* GetTestCase(int i) const; + + // Returns the TestResult containing information on test failures and + // properties logged outside of individual test cases. + const TestResult& ad_hoc_test_result() const; + + // Returns the list of event listeners that can be used to track events + // inside Google Test. + TestEventListeners& listeners(); + + private: + // Registers and returns a global test environment. When a test + // program is run, all global test environments will be set-up in + // the order they were registered. After all tests in the program + // have finished, all global test environments will be torn-down in + // the *reverse* order they were registered. + // + // The UnitTest object takes ownership of the given environment. + // + // This method can only be called from the main thread. + Environment* AddEnvironment(Environment* env); + + // Adds a TestPartResult to the current TestResult object. All + // Google Test assertion macros (e.g. ASSERT_TRUE, EXPECT_EQ, etc) + // eventually call this to report their results. The user code + // should use the assertion macros instead of calling this directly. + void AddTestPartResult(TestPartResult::Type result_type, + const char* file_name, + int line_number, + const std::string& message, + const std::string& os_stack_trace) + GTEST_LOCK_EXCLUDED_(mutex_); + + // Adds a TestProperty to the current TestResult object when invoked from + // inside a test, to current TestCase's ad_hoc_test_result_ when invoked + // from SetUpTestCase or TearDownTestCase, or to the global property set + // when invoked elsewhere. If the result already contains a property with + // the same key, the value will be updated. + void RecordProperty(const std::string& key, const std::string& value); + + // Gets the i-th test case among all the test cases. i can range from 0 to + // total_test_case_count() - 1. If i is not in that range, returns NULL. + TestCase* GetMutableTestCase(int i); + + // Accessors for the implementation object. + internal::UnitTestImpl* impl() { return impl_; } + const internal::UnitTestImpl* impl() const { return impl_; } + + // These classes and funcions are friends as they need to access private + // members of UnitTest. + friend class Test; + friend class internal::AssertHelper; + friend class internal::ScopedTrace; + friend class internal::StreamingListenerTest; + friend class internal::UnitTestRecordPropertyTestHelper; + friend Environment* AddGlobalTestEnvironment(Environment* env); + friend internal::UnitTestImpl* internal::GetUnitTestImpl(); + friend void internal::ReportFailureInUnknownLocation( + TestPartResult::Type result_type, + const std::string& message); + + // Creates an empty UnitTest. + UnitTest(); + + // D'tor + virtual ~UnitTest(); + + // Pushes a trace defined by SCOPED_TRACE() on to the per-thread + // Google Test trace stack. + void PushGTestTrace(const internal::TraceInfo& trace) + GTEST_LOCK_EXCLUDED_(mutex_); + + // Pops a trace from the per-thread Google Test trace stack. + void PopGTestTrace() + GTEST_LOCK_EXCLUDED_(mutex_); + + // Protects mutable state in *impl_. This is mutable as some const + // methods need to lock it too. + mutable internal::Mutex mutex_; + + // Opaque implementation object. This field is never changed once + // the object is constructed. We don't mark it as const here, as + // doing so will cause a warning in the constructor of UnitTest. + // Mutable state in *impl_ is protected by mutex_. + internal::UnitTestImpl* impl_; + + // We disallow copying UnitTest. + GTEST_DISALLOW_COPY_AND_ASSIGN_(UnitTest); +}; + +// A convenient wrapper for adding an environment for the test +// program. +// +// You should call this before RUN_ALL_TESTS() is called, probably in +// main(). If you use gtest_main, you need to call this before main() +// starts for it to take effect. For example, you can define a global +// variable like this: +// +// testing::Environment* const foo_env = +// testing::AddGlobalTestEnvironment(new FooEnvironment); +// +// However, we strongly recommend you to write your own main() and +// call AddGlobalTestEnvironment() there, as relying on initialization +// of global variables makes the code harder to read and may cause +// problems when you register multiple environments from different +// translation units and the environments have dependencies among them +// (remember that the compiler doesn't guarantee the order in which +// global variables from different translation units are initialized). +inline Environment* AddGlobalTestEnvironment(Environment* env) { + return UnitTest::GetInstance()->AddEnvironment(env); +} + +// Initializes Google Test. This must be called before calling +// RUN_ALL_TESTS(). In particular, it parses a command line for the +// flags that Google Test recognizes. Whenever a Google Test flag is +// seen, it is removed from argv, and *argc is decremented. +// +// No value is returned. Instead, the Google Test flag variables are +// updated. +// +// Calling the function for the second time has no user-visible effect. +GTEST_API_ void InitGoogleTest(int* argc, char** argv); + +// This overloaded version can be used in Windows programs compiled in +// UNICODE mode. +GTEST_API_ void InitGoogleTest(int* argc, wchar_t** argv); + +namespace internal { + +// FormatForComparison::Format(value) formats a +// value of type ToPrint that is an operand of a comparison assertion +// (e.g. ASSERT_EQ). OtherOperand is the type of the other operand in +// the comparison, and is used to help determine the best way to +// format the value. In particular, when the value is a C string +// (char pointer) and the other operand is an STL string object, we +// want to format the C string as a string, since we know it is +// compared by value with the string object. If the value is a char +// pointer but the other operand is not an STL string object, we don't +// know whether the pointer is supposed to point to a NUL-terminated +// string, and thus want to print it as a pointer to be safe. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. + +// The default case. +template +class FormatForComparison { + public: + static ::std::string Format(const ToPrint& value) { + return ::testing::PrintToString(value); + } +}; + +// Array. +template +class FormatForComparison { + public: + static ::std::string Format(const ToPrint* value) { + return FormatForComparison::Format(value); + } +}; + +// By default, print C string as pointers to be safe, as we don't know +// whether they actually point to a NUL-terminated string. + +#define GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(CharType) \ + template \ + class FormatForComparison { \ + public: \ + static ::std::string Format(CharType* value) { \ + return ::testing::PrintToString(static_cast(value)); \ + } \ + } + +GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(char); +GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const char); +GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(wchar_t); +GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const wchar_t); + +#undef GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ + +// If a C string is compared with an STL string object, we know it's meant +// to point to a NUL-terminated string, and thus can print it as a string. + +#define GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(CharType, OtherStringType) \ + template <> \ + class FormatForComparison { \ + public: \ + static ::std::string Format(CharType* value) { \ + return ::testing::PrintToString(value); \ + } \ + } + +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(char, ::std::string); +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const char, ::std::string); + +#if GTEST_HAS_GLOBAL_STRING +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(char, ::string); +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const char, ::string); +#endif + +#if GTEST_HAS_GLOBAL_WSTRING +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(wchar_t, ::wstring); +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const wchar_t, ::wstring); +#endif + +#if GTEST_HAS_STD_WSTRING +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(wchar_t, ::std::wstring); +GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const wchar_t, ::std::wstring); +#endif + +#undef GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ + +// Formats a comparison assertion (e.g. ASSERT_EQ, EXPECT_LT, and etc) +// operand to be used in a failure message. The type (but not value) +// of the other operand may affect the format. This allows us to +// print a char* as a raw pointer when it is compared against another +// char* or void*, and print it as a C string when it is compared +// against an std::string object, for example. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +template +std::string FormatForComparisonFailureMessage( + const T1& value, const T2& /* other_operand */) { + return FormatForComparison::Format(value); +} + +// The helper function for {ASSERT|EXPECT}_EQ. +template +AssertionResult CmpHelperEQ(const char* expected_expression, + const char* actual_expression, + const T1& expected, + const T2& actual) { +#ifdef _MSC_VER +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4389) // Temporarily disables warning on + // signed/unsigned mismatch. +#endif + + if (expected == actual) { + return AssertionSuccess(); + } + +#ifdef _MSC_VER +# pragma warning(pop) // Restores the warning state. +#endif + + return EqFailure(expected_expression, + actual_expression, + FormatForComparisonFailureMessage(expected, actual), + FormatForComparisonFailureMessage(actual, expected), + false); +} + +// With this overloaded version, we allow anonymous enums to be used +// in {ASSERT|EXPECT}_EQ when compiled with gcc 4, as anonymous enums +// can be implicitly cast to BiggestInt. +GTEST_API_ AssertionResult CmpHelperEQ(const char* expected_expression, + const char* actual_expression, + BiggestInt expected, + BiggestInt actual); + +// The helper class for {ASSERT|EXPECT}_EQ. The template argument +// lhs_is_null_literal is true iff the first argument to ASSERT_EQ() +// is a null pointer literal. The following default implementation is +// for lhs_is_null_literal being false. +template +class EqHelper { + public: + // This templatized version is for the general case. + template + static AssertionResult Compare(const char* expected_expression, + const char* actual_expression, + const T1& expected, + const T2& actual) { + return CmpHelperEQ(expected_expression, actual_expression, expected, + actual); + } + + // With this overloaded version, we allow anonymous enums to be used + // in {ASSERT|EXPECT}_EQ when compiled with gcc 4, as anonymous + // enums can be implicitly cast to BiggestInt. + // + // Even though its body looks the same as the above version, we + // cannot merge the two, as it will make anonymous enums unhappy. + static AssertionResult Compare(const char* expected_expression, + const char* actual_expression, + BiggestInt expected, + BiggestInt actual) { + return CmpHelperEQ(expected_expression, actual_expression, expected, + actual); + } +}; + +// This specialization is used when the first argument to ASSERT_EQ() +// is a null pointer literal, like NULL, false, or 0. +template <> +class EqHelper { + public: + // We define two overloaded versions of Compare(). The first + // version will be picked when the second argument to ASSERT_EQ() is + // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or + // EXPECT_EQ(false, a_bool). + template + static AssertionResult Compare( + const char* expected_expression, + const char* actual_expression, + const T1& expected, + const T2& actual, + // The following line prevents this overload from being considered if T2 + // is not a pointer type. We need this because ASSERT_EQ(NULL, my_ptr) + // expands to Compare("", "", NULL, my_ptr), which requires a conversion + // to match the Secret* in the other overload, which would otherwise make + // this template match better. + typename EnableIf::value>::type* = 0) { + return CmpHelperEQ(expected_expression, actual_expression, expected, + actual); + } + + // This version will be picked when the second argument to ASSERT_EQ() is a + // pointer, e.g. ASSERT_EQ(NULL, a_pointer). + template + static AssertionResult Compare( + const char* expected_expression, + const char* actual_expression, + // We used to have a second template parameter instead of Secret*. That + // template parameter would deduce to 'long', making this a better match + // than the first overload even without the first overload's EnableIf. + // Unfortunately, gcc with -Wconversion-null warns when "passing NULL to + // non-pointer argument" (even a deduced integral argument), so the old + // implementation caused warnings in user code. + Secret* /* expected (NULL) */, + T* actual) { + // We already know that 'expected' is a null pointer. + return CmpHelperEQ(expected_expression, actual_expression, + static_cast(NULL), actual); + } +}; + +// A macro for implementing the helper functions needed to implement +// ASSERT_?? and EXPECT_??. It is here just to avoid copy-and-paste +// of similar code. +// +// For each templatized helper function, we also define an overloaded +// version for BiggestInt in order to reduce code bloat and allow +// anonymous enums to be used with {ASSERT|EXPECT}_?? when compiled +// with gcc 4. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +#define GTEST_IMPL_CMP_HELPER_(op_name, op)\ +template \ +AssertionResult CmpHelper##op_name(const char* expr1, const char* expr2, \ + const T1& val1, const T2& val2) {\ + if (val1 op val2) {\ + return AssertionSuccess();\ + } else {\ + return AssertionFailure() \ + << "Expected: (" << expr1 << ") " #op " (" << expr2\ + << "), actual: " << FormatForComparisonFailureMessage(val1, val2)\ + << " vs " << FormatForComparisonFailureMessage(val2, val1);\ + }\ +}\ +GTEST_API_ AssertionResult CmpHelper##op_name(\ + const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) + +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. + +// Implements the helper function for {ASSERT|EXPECT}_NE +GTEST_IMPL_CMP_HELPER_(NE, !=); +// Implements the helper function for {ASSERT|EXPECT}_LE +GTEST_IMPL_CMP_HELPER_(LE, <=); +// Implements the helper function for {ASSERT|EXPECT}_LT +GTEST_IMPL_CMP_HELPER_(LT, <); +// Implements the helper function for {ASSERT|EXPECT}_GE +GTEST_IMPL_CMP_HELPER_(GE, >=); +// Implements the helper function for {ASSERT|EXPECT}_GT +GTEST_IMPL_CMP_HELPER_(GT, >); + +#undef GTEST_IMPL_CMP_HELPER_ + +// The helper function for {ASSERT|EXPECT}_STREQ. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult CmpHelperSTREQ(const char* expected_expression, + const char* actual_expression, + const char* expected, + const char* actual); + +// The helper function for {ASSERT|EXPECT}_STRCASEEQ. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult CmpHelperSTRCASEEQ(const char* expected_expression, + const char* actual_expression, + const char* expected, + const char* actual); + +// The helper function for {ASSERT|EXPECT}_STRNE. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult CmpHelperSTRNE(const char* s1_expression, + const char* s2_expression, + const char* s1, + const char* s2); + +// The helper function for {ASSERT|EXPECT}_STRCASENE. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult CmpHelperSTRCASENE(const char* s1_expression, + const char* s2_expression, + const char* s1, + const char* s2); + + +// Helper function for *_STREQ on wide strings. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult CmpHelperSTREQ(const char* expected_expression, + const char* actual_expression, + const wchar_t* expected, + const wchar_t* actual); + +// Helper function for *_STRNE on wide strings. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult CmpHelperSTRNE(const char* s1_expression, + const char* s2_expression, + const wchar_t* s1, + const wchar_t* s2); + +} // namespace internal + +// IsSubstring() and IsNotSubstring() are intended to be used as the +// first argument to {EXPECT,ASSERT}_PRED_FORMAT2(), not by +// themselves. They check whether needle is a substring of haystack +// (NULL is considered a substring of itself only), and return an +// appropriate error message when they fail. +// +// The {needle,haystack}_expr arguments are the stringified +// expressions that generated the two real arguments. +GTEST_API_ AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const char* needle, const char* haystack); +GTEST_API_ AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const wchar_t* needle, const wchar_t* haystack); +GTEST_API_ AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const char* needle, const char* haystack); +GTEST_API_ AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const wchar_t* needle, const wchar_t* haystack); +GTEST_API_ AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::string& needle, const ::std::string& haystack); +GTEST_API_ AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::string& needle, const ::std::string& haystack); + +#if GTEST_HAS_STD_WSTRING +GTEST_API_ AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::wstring& needle, const ::std::wstring& haystack); +GTEST_API_ AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::wstring& needle, const ::std::wstring& haystack); +#endif // GTEST_HAS_STD_WSTRING + +namespace internal { + +// Helper template function for comparing floating-points. +// +// Template parameter: +// +// RawType: the raw floating-point type (either float or double) +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +template +AssertionResult CmpHelperFloatingPointEQ(const char* expected_expression, + const char* actual_expression, + RawType expected, + RawType actual) { + const FloatingPoint lhs(expected), rhs(actual); + + if (lhs.AlmostEquals(rhs)) { + return AssertionSuccess(); + } + + ::std::stringstream expected_ss; + expected_ss << std::setprecision(std::numeric_limits::digits10 + 2) + << expected; + + ::std::stringstream actual_ss; + actual_ss << std::setprecision(std::numeric_limits::digits10 + 2) + << actual; + + return EqFailure(expected_expression, + actual_expression, + StringStreamToString(&expected_ss), + StringStreamToString(&actual_ss), + false); +} + +// Helper function for implementing ASSERT_NEAR. +// +// INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. +GTEST_API_ AssertionResult DoubleNearPredFormat(const char* expr1, + const char* expr2, + const char* abs_error_expr, + double val1, + double val2, + double abs_error); + +// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. +// A class that enables one to stream messages to assertion macros +class GTEST_API_ AssertHelper { + public: + // Constructor. + AssertHelper(TestPartResult::Type type, + const char* file, + int line, + const char* message); + ~AssertHelper(); + + // Message assignment is a semantic trick to enable assertion + // streaming; see the GTEST_MESSAGE_ macro below. + void operator=(const Message& message) const; + + private: + // We put our data in a struct so that the size of the AssertHelper class can + // be as small as possible. This is important because gcc is incapable of + // re-using stack space even for temporary variables, so every EXPECT_EQ + // reserves stack space for another AssertHelper. + struct AssertHelperData { + AssertHelperData(TestPartResult::Type t, + const char* srcfile, + int line_num, + const char* msg) + : type(t), file(srcfile), line(line_num), message(msg) { } + + TestPartResult::Type const type; + const char* const file; + int const line; + std::string const message; + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(AssertHelperData); + }; + + AssertHelperData* const data_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(AssertHelper); +}; + +} // namespace internal + +#if GTEST_HAS_PARAM_TEST +// The pure interface class that all value-parameterized tests inherit from. +// A value-parameterized class must inherit from both ::testing::Test and +// ::testing::WithParamInterface. In most cases that just means inheriting +// from ::testing::TestWithParam, but more complicated test hierarchies +// may need to inherit from Test and WithParamInterface at different levels. +// +// This interface has support for accessing the test parameter value via +// the GetParam() method. +// +// Use it with one of the parameter generator defining functions, like Range(), +// Values(), ValuesIn(), Bool(), and Combine(). +// +// class FooTest : public ::testing::TestWithParam { +// protected: +// FooTest() { +// // Can use GetParam() here. +// } +// virtual ~FooTest() { +// // Can use GetParam() here. +// } +// virtual void SetUp() { +// // Can use GetParam() here. +// } +// virtual void TearDown { +// // Can use GetParam() here. +// } +// }; +// TEST_P(FooTest, DoesBar) { +// // Can use GetParam() method here. +// Foo foo; +// ASSERT_TRUE(foo.DoesBar(GetParam())); +// } +// INSTANTIATE_TEST_CASE_P(OneToTenRange, FooTest, ::testing::Range(1, 10)); + +template +class WithParamInterface { + public: + typedef T ParamType; + virtual ~WithParamInterface() {} + + // The current parameter value. Is also available in the test fixture's + // constructor. This member function is non-static, even though it only + // references static data, to reduce the opportunity for incorrect uses + // like writing 'WithParamInterface::GetParam()' for a test that + // uses a fixture whose parameter type is int. + const ParamType& GetParam() const { + GTEST_CHECK_(parameter_ != NULL) + << "GetParam() can only be called inside a value-parameterized test " + << "-- did you intend to write TEST_P instead of TEST_F?"; + return *parameter_; + } + + private: + // Sets parameter value. The caller is responsible for making sure the value + // remains alive and unchanged throughout the current test. + static void SetParam(const ParamType* parameter) { + parameter_ = parameter; + } + + // Static value used for accessing parameter during a test lifetime. + static const ParamType* parameter_; + + // TestClass must be a subclass of WithParamInterface and Test. + template friend class internal::ParameterizedTestFactory; +}; + +template +const T* WithParamInterface::parameter_ = NULL; + +// Most value-parameterized classes can ignore the existence of +// WithParamInterface, and can just inherit from ::testing::TestWithParam. + +template +class TestWithParam : public Test, public WithParamInterface { +}; + +#endif // GTEST_HAS_PARAM_TEST + +// Macros for indicating success/failure in test code. + +// ADD_FAILURE unconditionally adds a failure to the current test. +// SUCCEED generates a success - it doesn't automatically make the +// current test successful, as a test is only successful when it has +// no failure. +// +// EXPECT_* verifies that a certain condition is satisfied. If not, +// it behaves like ADD_FAILURE. In particular: +// +// EXPECT_TRUE verifies that a Boolean condition is true. +// EXPECT_FALSE verifies that a Boolean condition is false. +// +// FAIL and ASSERT_* are similar to ADD_FAILURE and EXPECT_*, except +// that they will also abort the current function on failure. People +// usually want the fail-fast behavior of FAIL and ASSERT_*, but those +// writing data-driven tests often find themselves using ADD_FAILURE +// and EXPECT_* more. + +// Generates a nonfatal failure with a generic message. +#define ADD_FAILURE() GTEST_NONFATAL_FAILURE_("Failed") + +// Generates a nonfatal failure at the given source file location with +// a generic message. +#define ADD_FAILURE_AT(file, line) \ + GTEST_MESSAGE_AT_(file, line, "Failed", \ + ::testing::TestPartResult::kNonFatalFailure) + +// Generates a fatal failure with a generic message. +#define GTEST_FAIL() GTEST_FATAL_FAILURE_("Failed") + +// Define this macro to 1 to omit the definition of FAIL(), which is a +// generic name and clashes with some other libraries. +#if !GTEST_DONT_DEFINE_FAIL +# define FAIL() GTEST_FAIL() +#endif + +// Generates a success with a generic message. +#define GTEST_SUCCEED() GTEST_SUCCESS_("Succeeded") + +// Define this macro to 1 to omit the definition of SUCCEED(), which +// is a generic name and clashes with some other libraries. +#if !GTEST_DONT_DEFINE_SUCCEED +# define SUCCEED() GTEST_SUCCEED() +#endif + +// Macros for testing exceptions. +// +// * {ASSERT|EXPECT}_THROW(statement, expected_exception): +// Tests that the statement throws the expected exception. +// * {ASSERT|EXPECT}_NO_THROW(statement): +// Tests that the statement doesn't throw any exception. +// * {ASSERT|EXPECT}_ANY_THROW(statement): +// Tests that the statement throws an exception. + +#define EXPECT_THROW(statement, expected_exception) \ + GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_) +#define EXPECT_NO_THROW(statement) \ + GTEST_TEST_NO_THROW_(statement, GTEST_NONFATAL_FAILURE_) +#define EXPECT_ANY_THROW(statement) \ + GTEST_TEST_ANY_THROW_(statement, GTEST_NONFATAL_FAILURE_) +#define ASSERT_THROW(statement, expected_exception) \ + GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_) +#define ASSERT_NO_THROW(statement) \ + GTEST_TEST_NO_THROW_(statement, GTEST_FATAL_FAILURE_) +#define ASSERT_ANY_THROW(statement) \ + GTEST_TEST_ANY_THROW_(statement, GTEST_FATAL_FAILURE_) + +// Boolean assertions. Condition can be either a Boolean expression or an +// AssertionResult. For more information on how to use AssertionResult with +// these macros see comments on that class. +#define EXPECT_TRUE(condition) \ + GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ + GTEST_NONFATAL_FAILURE_) +#define EXPECT_FALSE(condition) \ + GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \ + GTEST_NONFATAL_FAILURE_) +#define ASSERT_TRUE(condition) \ + GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ + GTEST_FATAL_FAILURE_) +#define ASSERT_FALSE(condition) \ + GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \ + GTEST_FATAL_FAILURE_) + +// Includes the auto-generated header that implements a family of +// generic predicate assertion macros. +// Copyright 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// This file is AUTOMATICALLY GENERATED on 10/31/2011 by command +// 'gen_gtest_pred_impl.py 5'. DO NOT EDIT BY HAND! +// +// Implements a family of generic predicate assertion macros. + +#ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_ +#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_ + +// Makes sure this header is not included before gtest.h. +#ifndef GTEST_INCLUDE_GTEST_GTEST_H_ +# error Do not include gtest_pred_impl.h directly. Include gtest.h instead. +#endif // GTEST_INCLUDE_GTEST_GTEST_H_ + +// This header implements a family of generic predicate assertion +// macros: +// +// ASSERT_PRED_FORMAT1(pred_format, v1) +// ASSERT_PRED_FORMAT2(pred_format, v1, v2) +// ... +// +// where pred_format is a function or functor that takes n (in the +// case of ASSERT_PRED_FORMATn) values and their source expression +// text, and returns a testing::AssertionResult. See the definition +// of ASSERT_EQ in gtest.h for an example. +// +// If you don't care about formatting, you can use the more +// restrictive version: +// +// ASSERT_PRED1(pred, v1) +// ASSERT_PRED2(pred, v1, v2) +// ... +// +// where pred is an n-ary function or functor that returns bool, +// and the values v1, v2, ..., must support the << operator for +// streaming to std::ostream. +// +// We also define the EXPECT_* variations. +// +// For now we only support predicates whose arity is at most 5. +// Please email googletestframework@googlegroups.com if you need +// support for higher arities. + +// GTEST_ASSERT_ is the basic statement to which all of the assertions +// in this file reduce. Don't use this in your code. + +#define GTEST_ASSERT_(expression, on_failure) \ + GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ + if (const ::testing::AssertionResult gtest_ar = (expression)) \ + ; \ + else \ + on_failure(gtest_ar.failure_message()) + + +// Helper function for implementing {EXPECT|ASSERT}_PRED1. Don't use +// this in your code. +template +AssertionResult AssertPred1Helper(const char* pred_text, + const char* e1, + Pred pred, + const T1& v1) { + if (pred(v1)) return AssertionSuccess(); + + return AssertionFailure() << pred_text << "(" + << e1 << ") evaluates to false, where" + << "\n" << e1 << " evaluates to " << v1; +} + +// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT1. +// Don't use this in your code. +#define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\ + GTEST_ASSERT_(pred_format(#v1, v1), \ + on_failure) + +// Internal macro for implementing {EXPECT|ASSERT}_PRED1. Don't use +// this in your code. +#define GTEST_PRED1_(pred, v1, on_failure)\ + GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \ + #v1, \ + pred, \ + v1), on_failure) + +// Unary predicate assertion macros. +#define EXPECT_PRED_FORMAT1(pred_format, v1) \ + GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_) +#define EXPECT_PRED1(pred, v1) \ + GTEST_PRED1_(pred, v1, GTEST_NONFATAL_FAILURE_) +#define ASSERT_PRED_FORMAT1(pred_format, v1) \ + GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_FATAL_FAILURE_) +#define ASSERT_PRED1(pred, v1) \ + GTEST_PRED1_(pred, v1, GTEST_FATAL_FAILURE_) + + + +// Helper function for implementing {EXPECT|ASSERT}_PRED2. Don't use +// this in your code. +template +AssertionResult AssertPred2Helper(const char* pred_text, + const char* e1, + const char* e2, + Pred pred, + const T1& v1, + const T2& v2) { + if (pred(v1, v2)) return AssertionSuccess(); + + return AssertionFailure() << pred_text << "(" + << e1 << ", " + << e2 << ") evaluates to false, where" + << "\n" << e1 << " evaluates to " << v1 + << "\n" << e2 << " evaluates to " << v2; +} + +// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT2. +// Don't use this in your code. +#define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)\ + GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ + on_failure) + +// Internal macro for implementing {EXPECT|ASSERT}_PRED2. Don't use +// this in your code. +#define GTEST_PRED2_(pred, v1, v2, on_failure)\ + GTEST_ASSERT_(::testing::AssertPred2Helper(#pred, \ + #v1, \ + #v2, \ + pred, \ + v1, \ + v2), on_failure) + +// Binary predicate assertion macros. +#define EXPECT_PRED_FORMAT2(pred_format, v1, v2) \ + GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) +#define EXPECT_PRED2(pred, v1, v2) \ + GTEST_PRED2_(pred, v1, v2, GTEST_NONFATAL_FAILURE_) +#define ASSERT_PRED_FORMAT2(pred_format, v1, v2) \ + GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_) +#define ASSERT_PRED2(pred, v1, v2) \ + GTEST_PRED2_(pred, v1, v2, GTEST_FATAL_FAILURE_) + + + +// Helper function for implementing {EXPECT|ASSERT}_PRED3. Don't use +// this in your code. +template +AssertionResult AssertPred3Helper(const char* pred_text, + const char* e1, + const char* e2, + const char* e3, + Pred pred, + const T1& v1, + const T2& v2, + const T3& v3) { + if (pred(v1, v2, v3)) return AssertionSuccess(); + + return AssertionFailure() << pred_text << "(" + << e1 << ", " + << e2 << ", " + << e3 << ") evaluates to false, where" + << "\n" << e1 << " evaluates to " << v1 + << "\n" << e2 << " evaluates to " << v2 + << "\n" << e3 << " evaluates to " << v3; +} + +// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT3. +// Don't use this in your code. +#define GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, on_failure)\ + GTEST_ASSERT_(pred_format(#v1, #v2, #v3, v1, v2, v3), \ + on_failure) + +// Internal macro for implementing {EXPECT|ASSERT}_PRED3. Don't use +// this in your code. +#define GTEST_PRED3_(pred, v1, v2, v3, on_failure)\ + GTEST_ASSERT_(::testing::AssertPred3Helper(#pred, \ + #v1, \ + #v2, \ + #v3, \ + pred, \ + v1, \ + v2, \ + v3), on_failure) + +// Ternary predicate assertion macros. +#define EXPECT_PRED_FORMAT3(pred_format, v1, v2, v3) \ + GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_NONFATAL_FAILURE_) +#define EXPECT_PRED3(pred, v1, v2, v3) \ + GTEST_PRED3_(pred, v1, v2, v3, GTEST_NONFATAL_FAILURE_) +#define ASSERT_PRED_FORMAT3(pred_format, v1, v2, v3) \ + GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_FATAL_FAILURE_) +#define ASSERT_PRED3(pred, v1, v2, v3) \ + GTEST_PRED3_(pred, v1, v2, v3, GTEST_FATAL_FAILURE_) + + + +// Helper function for implementing {EXPECT|ASSERT}_PRED4. Don't use +// this in your code. +template +AssertionResult AssertPred4Helper(const char* pred_text, + const char* e1, + const char* e2, + const char* e3, + const char* e4, + Pred pred, + const T1& v1, + const T2& v2, + const T3& v3, + const T4& v4) { + if (pred(v1, v2, v3, v4)) return AssertionSuccess(); + + return AssertionFailure() << pred_text << "(" + << e1 << ", " + << e2 << ", " + << e3 << ", " + << e4 << ") evaluates to false, where" + << "\n" << e1 << " evaluates to " << v1 + << "\n" << e2 << " evaluates to " << v2 + << "\n" << e3 << " evaluates to " << v3 + << "\n" << e4 << " evaluates to " << v4; +} + +// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT4. +// Don't use this in your code. +#define GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, on_failure)\ + GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, v1, v2, v3, v4), \ + on_failure) + +// Internal macro for implementing {EXPECT|ASSERT}_PRED4. Don't use +// this in your code. +#define GTEST_PRED4_(pred, v1, v2, v3, v4, on_failure)\ + GTEST_ASSERT_(::testing::AssertPred4Helper(#pred, \ + #v1, \ + #v2, \ + #v3, \ + #v4, \ + pred, \ + v1, \ + v2, \ + v3, \ + v4), on_failure) + +// 4-ary predicate assertion macros. +#define EXPECT_PRED_FORMAT4(pred_format, v1, v2, v3, v4) \ + GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_) +#define EXPECT_PRED4(pred, v1, v2, v3, v4) \ + GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_) +#define ASSERT_PRED_FORMAT4(pred_format, v1, v2, v3, v4) \ + GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_FATAL_FAILURE_) +#define ASSERT_PRED4(pred, v1, v2, v3, v4) \ + GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_FATAL_FAILURE_) + + + +// Helper function for implementing {EXPECT|ASSERT}_PRED5. Don't use +// this in your code. +template +AssertionResult AssertPred5Helper(const char* pred_text, + const char* e1, + const char* e2, + const char* e3, + const char* e4, + const char* e5, + Pred pred, + const T1& v1, + const T2& v2, + const T3& v3, + const T4& v4, + const T5& v5) { + if (pred(v1, v2, v3, v4, v5)) return AssertionSuccess(); + + return AssertionFailure() << pred_text << "(" + << e1 << ", " + << e2 << ", " + << e3 << ", " + << e4 << ", " + << e5 << ") evaluates to false, where" + << "\n" << e1 << " evaluates to " << v1 + << "\n" << e2 << " evaluates to " << v2 + << "\n" << e3 << " evaluates to " << v3 + << "\n" << e4 << " evaluates to " << v4 + << "\n" << e5 << " evaluates to " << v5; +} + +// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT5. +// Don't use this in your code. +#define GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, on_failure)\ + GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, #v5, v1, v2, v3, v4, v5), \ + on_failure) + +// Internal macro for implementing {EXPECT|ASSERT}_PRED5. Don't use +// this in your code. +#define GTEST_PRED5_(pred, v1, v2, v3, v4, v5, on_failure)\ + GTEST_ASSERT_(::testing::AssertPred5Helper(#pred, \ + #v1, \ + #v2, \ + #v3, \ + #v4, \ + #v5, \ + pred, \ + v1, \ + v2, \ + v3, \ + v4, \ + v5), on_failure) + +// 5-ary predicate assertion macros. +#define EXPECT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5) \ + GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_) +#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5) \ + GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_) +#define ASSERT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5) \ + GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_) +#define ASSERT_PRED5(pred, v1, v2, v3, v4, v5) \ + GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_) + + + +#endif // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_ + +// Macros for testing equalities and inequalities. +// +// * {ASSERT|EXPECT}_EQ(expected, actual): Tests that expected == actual +// * {ASSERT|EXPECT}_NE(v1, v2): Tests that v1 != v2 +// * {ASSERT|EXPECT}_LT(v1, v2): Tests that v1 < v2 +// * {ASSERT|EXPECT}_LE(v1, v2): Tests that v1 <= v2 +// * {ASSERT|EXPECT}_GT(v1, v2): Tests that v1 > v2 +// * {ASSERT|EXPECT}_GE(v1, v2): Tests that v1 >= v2 +// +// When they are not, Google Test prints both the tested expressions and +// their actual values. The values must be compatible built-in types, +// or you will get a compiler error. By "compatible" we mean that the +// values can be compared by the respective operator. +// +// Note: +// +// 1. It is possible to make a user-defined type work with +// {ASSERT|EXPECT}_??(), but that requires overloading the +// comparison operators and is thus discouraged by the Google C++ +// Usage Guide. Therefore, you are advised to use the +// {ASSERT|EXPECT}_TRUE() macro to assert that two objects are +// equal. +// +// 2. The {ASSERT|EXPECT}_??() macros do pointer comparisons on +// pointers (in particular, C strings). Therefore, if you use it +// with two C strings, you are testing how their locations in memory +// are related, not how their content is related. To compare two C +// strings by content, use {ASSERT|EXPECT}_STR*(). +// +// 3. {ASSERT|EXPECT}_EQ(expected, actual) is preferred to +// {ASSERT|EXPECT}_TRUE(expected == actual), as the former tells you +// what the actual value is when it fails, and similarly for the +// other comparisons. +// +// 4. Do not depend on the order in which {ASSERT|EXPECT}_??() +// evaluate their arguments, which is undefined. +// +// 5. These macros evaluate their arguments exactly once. +// +// Examples: +// +// EXPECT_NE(5, Foo()); +// EXPECT_EQ(NULL, a_pointer); +// ASSERT_LT(i, array_size); +// ASSERT_GT(records.size(), 0) << "There is no record left."; + +#define EXPECT_EQ(expected, actual) \ + EXPECT_PRED_FORMAT2(::testing::internal:: \ + EqHelper::Compare, \ + expected, actual) +#define EXPECT_NE(expected, actual) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual) +#define EXPECT_LE(val1, val2) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2) +#define EXPECT_LT(val1, val2) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2) +#define EXPECT_GE(val1, val2) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2) +#define EXPECT_GT(val1, val2) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2) + +#define GTEST_ASSERT_EQ(expected, actual) \ + ASSERT_PRED_FORMAT2(::testing::internal:: \ + EqHelper::Compare, \ + expected, actual) +#define GTEST_ASSERT_NE(val1, val2) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2) +#define GTEST_ASSERT_LE(val1, val2) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2) +#define GTEST_ASSERT_LT(val1, val2) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2) +#define GTEST_ASSERT_GE(val1, val2) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2) +#define GTEST_ASSERT_GT(val1, val2) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2) + +// Define macro GTEST_DONT_DEFINE_ASSERT_XY to 1 to omit the definition of +// ASSERT_XY(), which clashes with some users' own code. + +#if !GTEST_DONT_DEFINE_ASSERT_EQ +# define ASSERT_EQ(val1, val2) GTEST_ASSERT_EQ(val1, val2) +#endif + +#if !GTEST_DONT_DEFINE_ASSERT_NE +# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2) +#endif + +#if !GTEST_DONT_DEFINE_ASSERT_LE +# define ASSERT_LE(val1, val2) GTEST_ASSERT_LE(val1, val2) +#endif + +#if !GTEST_DONT_DEFINE_ASSERT_LT +# define ASSERT_LT(val1, val2) GTEST_ASSERT_LT(val1, val2) +#endif + +#if !GTEST_DONT_DEFINE_ASSERT_GE +# define ASSERT_GE(val1, val2) GTEST_ASSERT_GE(val1, val2) +#endif + +#if !GTEST_DONT_DEFINE_ASSERT_GT +# define ASSERT_GT(val1, val2) GTEST_ASSERT_GT(val1, val2) +#endif + +// C-string Comparisons. All tests treat NULL and any non-NULL string +// as different. Two NULLs are equal. +// +// * {ASSERT|EXPECT}_STREQ(s1, s2): Tests that s1 == s2 +// * {ASSERT|EXPECT}_STRNE(s1, s2): Tests that s1 != s2 +// * {ASSERT|EXPECT}_STRCASEEQ(s1, s2): Tests that s1 == s2, ignoring case +// * {ASSERT|EXPECT}_STRCASENE(s1, s2): Tests that s1 != s2, ignoring case +// +// For wide or narrow string objects, you can use the +// {ASSERT|EXPECT}_??() macros. +// +// Don't depend on the order in which the arguments are evaluated, +// which is undefined. +// +// These macros evaluate their arguments exactly once. + +#define EXPECT_STREQ(expected, actual) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual) +#define EXPECT_STRNE(s1, s2) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2) +#define EXPECT_STRCASEEQ(expected, actual) \ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual) +#define EXPECT_STRCASENE(s1, s2)\ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2) + +#define ASSERT_STREQ(expected, actual) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual) +#define ASSERT_STRNE(s1, s2) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2) +#define ASSERT_STRCASEEQ(expected, actual) \ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual) +#define ASSERT_STRCASENE(s1, s2)\ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2) + +// Macros for comparing floating-point numbers. +// +// * {ASSERT|EXPECT}_FLOAT_EQ(expected, actual): +// Tests that two float values are almost equal. +// * {ASSERT|EXPECT}_DOUBLE_EQ(expected, actual): +// Tests that two double values are almost equal. +// * {ASSERT|EXPECT}_NEAR(v1, v2, abs_error): +// Tests that v1 and v2 are within the given distance to each other. +// +// Google Test uses ULP-based comparison to automatically pick a default +// error bound that is appropriate for the operands. See the +// FloatingPoint template class in gtest-internal.h if you are +// interested in the implementation details. + +#define EXPECT_FLOAT_EQ(expected, actual)\ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ, \ + expected, actual) + +#define EXPECT_DOUBLE_EQ(expected, actual)\ + EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ, \ + expected, actual) + +#define ASSERT_FLOAT_EQ(expected, actual)\ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ, \ + expected, actual) + +#define ASSERT_DOUBLE_EQ(expected, actual)\ + ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ, \ + expected, actual) + +#define EXPECT_NEAR(val1, val2, abs_error)\ + EXPECT_PRED_FORMAT3(::testing::internal::DoubleNearPredFormat, \ + val1, val2, abs_error) + +#define ASSERT_NEAR(val1, val2, abs_error)\ + ASSERT_PRED_FORMAT3(::testing::internal::DoubleNearPredFormat, \ + val1, val2, abs_error) + +// These predicate format functions work on floating-point values, and +// can be used in {ASSERT|EXPECT}_PRED_FORMAT2*(), e.g. +// +// EXPECT_PRED_FORMAT2(testing::DoubleLE, Foo(), 5.0); + +// Asserts that val1 is less than, or almost equal to, val2. Fails +// otherwise. In particular, it fails if either val1 or val2 is NaN. +GTEST_API_ AssertionResult FloatLE(const char* expr1, const char* expr2, + float val1, float val2); +GTEST_API_ AssertionResult DoubleLE(const char* expr1, const char* expr2, + double val1, double val2); + + +#if GTEST_OS_WINDOWS + +// Macros that test for HRESULT failure and success, these are only useful +// on Windows, and rely on Windows SDK macros and APIs to compile. +// +// * {ASSERT|EXPECT}_HRESULT_{SUCCEEDED|FAILED}(expr) +// +// When expr unexpectedly fails or succeeds, Google Test prints the +// expected result and the actual result with both a human-readable +// string representation of the error, if available, as well as the +// hex result code. +# define EXPECT_HRESULT_SUCCEEDED(expr) \ + EXPECT_PRED_FORMAT1(::testing::internal::IsHRESULTSuccess, (expr)) + +# define ASSERT_HRESULT_SUCCEEDED(expr) \ + ASSERT_PRED_FORMAT1(::testing::internal::IsHRESULTSuccess, (expr)) + +# define EXPECT_HRESULT_FAILED(expr) \ + EXPECT_PRED_FORMAT1(::testing::internal::IsHRESULTFailure, (expr)) + +# define ASSERT_HRESULT_FAILED(expr) \ + ASSERT_PRED_FORMAT1(::testing::internal::IsHRESULTFailure, (expr)) + +#endif // GTEST_OS_WINDOWS + +// Macros that execute statement and check that it doesn't generate new fatal +// failures in the current thread. +// +// * {ASSERT|EXPECT}_NO_FATAL_FAILURE(statement); +// +// Examples: +// +// EXPECT_NO_FATAL_FAILURE(Process()); +// ASSERT_NO_FATAL_FAILURE(Process()) << "Process() failed"; +// +#define ASSERT_NO_FATAL_FAILURE(statement) \ + GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_FATAL_FAILURE_) +#define EXPECT_NO_FATAL_FAILURE(statement) \ + GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_NONFATAL_FAILURE_) + +// Causes a trace (including the source file path, the current line +// number, and the given message) to be included in every test failure +// message generated by code in the current scope. The effect is +// undone when the control leaves the current scope. +// +// The message argument can be anything streamable to std::ostream. +// +// In the implementation, we include the current line number as part +// of the dummy variable name, thus allowing multiple SCOPED_TRACE()s +// to appear in the same block - as long as they are on different +// lines. +#define SCOPED_TRACE(message) \ + ::testing::internal::ScopedTrace GTEST_CONCAT_TOKEN_(gtest_trace_, __LINE__)(\ + __FILE__, __LINE__, ::testing::Message() << (message)) + +// Compile-time assertion for type equality. +// StaticAssertTypeEq() compiles iff type1 and type2 are +// the same type. The value it returns is not interesting. +// +// Instead of making StaticAssertTypeEq a class template, we make it a +// function template that invokes a helper class template. This +// prevents a user from misusing StaticAssertTypeEq by +// defining objects of that type. +// +// CAVEAT: +// +// When used inside a method of a class template, +// StaticAssertTypeEq() is effective ONLY IF the method is +// instantiated. For example, given: +// +// template class Foo { +// public: +// void Bar() { testing::StaticAssertTypeEq(); } +// }; +// +// the code: +// +// void Test1() { Foo foo; } +// +// will NOT generate a compiler error, as Foo::Bar() is never +// actually instantiated. Instead, you need: +// +// void Test2() { Foo foo; foo.Bar(); } +// +// to cause a compiler error. +template +bool StaticAssertTypeEq() { + (void)internal::StaticAssertTypeEqHelper(); + return true; +} + +// Defines a test. +// +// The first parameter is the name of the test case, and the second +// parameter is the name of the test within the test case. +// +// The convention is to end the test case name with "Test". For +// example, a test case for the Foo class can be named FooTest. +// +// The user should put his test code between braces after using this +// macro. Example: +// +// TEST(FooTest, InitializesCorrectly) { +// Foo foo; +// EXPECT_TRUE(foo.StatusIsOK()); +// } + +// Note that we call GetTestTypeId() instead of GetTypeId< +// ::testing::Test>() here to get the type ID of testing::Test. This +// is to work around a suspected linker bug when using Google Test as +// a framework on Mac OS X. The bug causes GetTypeId< +// ::testing::Test>() to return different values depending on whether +// the call is from the Google Test framework itself or from user test +// code. GetTestTypeId() is guaranteed to always return the same +// value, as it always calls GetTypeId<>() from the Google Test +// framework. +#define GTEST_TEST(test_case_name, test_name)\ + GTEST_TEST_(test_case_name, test_name, \ + ::testing::Test, ::testing::internal::GetTestTypeId()) + +// Define this macro to 1 to omit the definition of TEST(), which +// is a generic name and clashes with some other libraries. +#if !GTEST_DONT_DEFINE_TEST +# define TEST(test_case_name, test_name) GTEST_TEST(test_case_name, test_name) +#endif + +// Defines a test that uses a test fixture. +// +// The first parameter is the name of the test fixture class, which +// also doubles as the test case name. The second parameter is the +// name of the test within the test case. +// +// A test fixture class must be declared earlier. The user should put +// his test code between braces after using this macro. Example: +// +// class FooTest : public testing::Test { +// protected: +// virtual void SetUp() { b_.AddElement(3); } +// +// Foo a_; +// Foo b_; +// }; +// +// TEST_F(FooTest, InitializesCorrectly) { +// EXPECT_TRUE(a_.StatusIsOK()); +// } +// +// TEST_F(FooTest, ReturnsElementCountCorrectly) { +// EXPECT_EQ(0, a_.size()); +// EXPECT_EQ(1, b_.size()); +// } + +#define TEST_F(test_fixture, test_name)\ + GTEST_TEST_(test_fixture, test_name, test_fixture, \ + ::testing::internal::GetTypeId()) + +} // namespace testing + +// Use this function in main() to run all tests. It returns 0 if all +// tests are successful, or 1 otherwise. +// +// RUN_ALL_TESTS() should be invoked after the command line has been +// parsed by InitGoogleTest(). +// +// This function was formerly a macro; thus, it is in the global +// namespace and has an all-caps name. +int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_; + +inline int RUN_ALL_TESTS() { + return ::testing::UnitTest::GetInstance()->Run(); +} + +#endif // GTEST_INCLUDE_GTEST_GTEST_H_ diff --git a/tests/gtest/src/.gitignore b/tests/gtest/src/.gitignore new file mode 100644 index 00000000..302444e8 --- /dev/null +++ b/tests/gtest/src/.gitignore @@ -0,0 +1,5 @@ +*.lo +/.libs/ +/.deps/ +/libgtest_la-gtest-all.o +/libgtest_main_la-gtest_main.o diff --git a/tests/gtest/src/gtest-all.cc b/tests/gtest/src/gtest-all.cc new file mode 100644 index 00000000..311d885d --- /dev/null +++ b/tests/gtest/src/gtest-all.cc @@ -0,0 +1,9592 @@ +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: mheule@google.com (Markus Heule) +// +// Google C++ Testing Framework (Google Test) +// +// Sometimes it's desirable to build Google Test by compiling a single file. +// This file serves this purpose. + +// This line ensures that gtest.h can be compiled on its own, even +// when it's fused. +#include "gtest/gtest.h" + +// The following lines pull in the real gtest *.cc files. +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) +// +// The Google C++ Testing Framework (Google Test) + +// Copyright 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) +// +// Utilities for testing Google Test itself and code that uses Google Test +// (e.g. frameworks built on top of Google Test). + +#ifndef GTEST_INCLUDE_GTEST_GTEST_SPI_H_ +#define GTEST_INCLUDE_GTEST_GTEST_SPI_H_ + + +namespace testing { + +// This helper class can be used to mock out Google Test failure reporting +// so that we can test Google Test or code that builds on Google Test. +// +// An object of this class appends a TestPartResult object to the +// TestPartResultArray object given in the constructor whenever a Google Test +// failure is reported. It can either intercept only failures that are +// generated in the same thread that created this object or it can intercept +// all generated failures. The scope of this mock object can be controlled with +// the second argument to the two arguments constructor. +class GTEST_API_ ScopedFakeTestPartResultReporter + : public TestPartResultReporterInterface { + public: + // The two possible mocking modes of this object. + enum InterceptMode { + INTERCEPT_ONLY_CURRENT_THREAD, // Intercepts only thread local failures. + INTERCEPT_ALL_THREADS // Intercepts all failures. + }; + + // The c'tor sets this object as the test part result reporter used + // by Google Test. The 'result' parameter specifies where to report the + // results. This reporter will only catch failures generated in the current + // thread. DEPRECATED + explicit ScopedFakeTestPartResultReporter(TestPartResultArray* result); + + // Same as above, but you can choose the interception scope of this object. + ScopedFakeTestPartResultReporter(InterceptMode intercept_mode, + TestPartResultArray* result); + + // The d'tor restores the previous test part result reporter. + virtual ~ScopedFakeTestPartResultReporter(); + + // Appends the TestPartResult object to the TestPartResultArray + // received in the constructor. + // + // This method is from the TestPartResultReporterInterface + // interface. + virtual void ReportTestPartResult(const TestPartResult& result); + private: + void Init(); + + const InterceptMode intercept_mode_; + TestPartResultReporterInterface* old_reporter_; + TestPartResultArray* const result_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ScopedFakeTestPartResultReporter); +}; + +namespace internal { + +// A helper class for implementing EXPECT_FATAL_FAILURE() and +// EXPECT_NONFATAL_FAILURE(). Its destructor verifies that the given +// TestPartResultArray contains exactly one failure that has the given +// type and contains the given substring. If that's not the case, a +// non-fatal failure will be generated. +class GTEST_API_ SingleFailureChecker { + public: + // The constructor remembers the arguments. + SingleFailureChecker(const TestPartResultArray* results, + TestPartResult::Type type, + const string& substr); + ~SingleFailureChecker(); + private: + const TestPartResultArray* const results_; + const TestPartResult::Type type_; + const string substr_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(SingleFailureChecker); +}; + +} // namespace internal + +} // namespace testing + +// A set of macros for testing Google Test assertions or code that's expected +// to generate Google Test fatal failures. It verifies that the given +// statement will cause exactly one fatal Google Test failure with 'substr' +// being part of the failure message. +// +// There are two different versions of this macro. EXPECT_FATAL_FAILURE only +// affects and considers failures generated in the current thread and +// EXPECT_FATAL_FAILURE_ON_ALL_THREADS does the same but for all threads. +// +// The verification of the assertion is done correctly even when the statement +// throws an exception or aborts the current function. +// +// Known restrictions: +// - 'statement' cannot reference local non-static variables or +// non-static members of the current object. +// - 'statement' cannot return a value. +// - You cannot stream a failure message to this macro. +// +// Note that even though the implementations of the following two +// macros are much alike, we cannot refactor them to use a common +// helper macro, due to some peculiarity in how the preprocessor +// works. The AcceptsMacroThatExpandsToUnprotectedComma test in +// gtest_unittest.cc will fail to compile if we do that. +#define EXPECT_FATAL_FAILURE(statement, substr) \ + do { \ + class GTestExpectFatalFailureHelper {\ + public:\ + static void Execute() { statement; }\ + };\ + ::testing::TestPartResultArray gtest_failures;\ + ::testing::internal::SingleFailureChecker gtest_checker(\ + >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ + {\ + ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ + ::testing::ScopedFakeTestPartResultReporter:: \ + INTERCEPT_ONLY_CURRENT_THREAD, >est_failures);\ + GTestExpectFatalFailureHelper::Execute();\ + }\ + } while (::testing::internal::AlwaysFalse()) + +#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ + do { \ + class GTestExpectFatalFailureHelper {\ + public:\ + static void Execute() { statement; }\ + };\ + ::testing::TestPartResultArray gtest_failures;\ + ::testing::internal::SingleFailureChecker gtest_checker(\ + >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ + {\ + ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ + ::testing::ScopedFakeTestPartResultReporter:: \ + INTERCEPT_ALL_THREADS, >est_failures);\ + GTestExpectFatalFailureHelper::Execute();\ + }\ + } while (::testing::internal::AlwaysFalse()) + +// A macro for testing Google Test assertions or code that's expected to +// generate Google Test non-fatal failures. It asserts that the given +// statement will cause exactly one non-fatal Google Test failure with 'substr' +// being part of the failure message. +// +// There are two different versions of this macro. EXPECT_NONFATAL_FAILURE only +// affects and considers failures generated in the current thread and +// EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS does the same but for all threads. +// +// 'statement' is allowed to reference local variables and members of +// the current object. +// +// The verification of the assertion is done correctly even when the statement +// throws an exception or aborts the current function. +// +// Known restrictions: +// - You cannot stream a failure message to this macro. +// +// Note that even though the implementations of the following two +// macros are much alike, we cannot refactor them to use a common +// helper macro, due to some peculiarity in how the preprocessor +// works. If we do that, the code won't compile when the user gives +// EXPECT_NONFATAL_FAILURE() a statement that contains a macro that +// expands to code containing an unprotected comma. The +// AcceptsMacroThatExpandsToUnprotectedComma test in gtest_unittest.cc +// catches that. +// +// For the same reason, we have to write +// if (::testing::internal::AlwaysTrue()) { statement; } +// instead of +// GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) +// to avoid an MSVC warning on unreachable code. +#define EXPECT_NONFATAL_FAILURE(statement, substr) \ + do {\ + ::testing::TestPartResultArray gtest_failures;\ + ::testing::internal::SingleFailureChecker gtest_checker(\ + >est_failures, ::testing::TestPartResult::kNonFatalFailure, \ + (substr));\ + {\ + ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ + ::testing::ScopedFakeTestPartResultReporter:: \ + INTERCEPT_ONLY_CURRENT_THREAD, >est_failures);\ + if (::testing::internal::AlwaysTrue()) { statement; }\ + }\ + } while (::testing::internal::AlwaysFalse()) + +#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ + do {\ + ::testing::TestPartResultArray gtest_failures;\ + ::testing::internal::SingleFailureChecker gtest_checker(\ + >est_failures, ::testing::TestPartResult::kNonFatalFailure, \ + (substr));\ + {\ + ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ + ::testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, \ + >est_failures);\ + if (::testing::internal::AlwaysTrue()) { statement; }\ + }\ + } while (::testing::internal::AlwaysFalse()) + +#endif // GTEST_INCLUDE_GTEST_GTEST_SPI_H_ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include // NOLINT +#include +#include + +#if GTEST_OS_LINUX + +// TODO(kenton@google.com): Use autoconf to detect availability of +// gettimeofday(). +# define GTEST_HAS_GETTIMEOFDAY_ 1 + +# include // NOLINT +# include // NOLINT +# include // NOLINT +// Declares vsnprintf(). This header is not available on Windows. +# include // NOLINT +# include // NOLINT +# include // NOLINT +# include // NOLINT +# include + +#elif GTEST_OS_SYMBIAN +# define GTEST_HAS_GETTIMEOFDAY_ 1 +# include // NOLINT + +#elif GTEST_OS_ZOS +# define GTEST_HAS_GETTIMEOFDAY_ 1 +# include // NOLINT + +// On z/OS we additionally need strings.h for strcasecmp. +# include // NOLINT + +#elif GTEST_OS_WINDOWS_MOBILE // We are on Windows CE. + +# include // NOLINT + +#elif GTEST_OS_WINDOWS // We are on Windows proper. + +# include // NOLINT +# include // NOLINT +# include // NOLINT +# include // NOLINT + +# if GTEST_OS_WINDOWS_MINGW +// MinGW has gettimeofday() but not _ftime64(). +// TODO(kenton@google.com): Use autoconf to detect availability of +// gettimeofday(). +// TODO(kenton@google.com): There are other ways to get the time on +// Windows, like GetTickCount() or GetSystemTimeAsFileTime(). MinGW +// supports these. consider using them instead. +# define GTEST_HAS_GETTIMEOFDAY_ 1 +# include // NOLINT +# endif // GTEST_OS_WINDOWS_MINGW + +// cpplint thinks that the header is already included, so we want to +// silence it. +# include // NOLINT + +#else + +// Assume other platforms have gettimeofday(). +// TODO(kenton@google.com): Use autoconf to detect availability of +// gettimeofday(). +# define GTEST_HAS_GETTIMEOFDAY_ 1 + +// cpplint thinks that the header is already included, so we want to +// silence it. +# include // NOLINT +# include // NOLINT + +#endif // GTEST_OS_LINUX + +#if GTEST_HAS_EXCEPTIONS +# include +#endif + +#if GTEST_CAN_STREAM_RESULTS_ +# include // NOLINT +# include // NOLINT +#endif + +// Indicates that this translation unit is part of Google Test's +// implementation. It must come before gtest-internal-inl.h is +// included, or there will be a compiler error. This trick is to +// prevent a user from accidentally including gtest-internal-inl.h in +// his code. +#define GTEST_IMPLEMENTATION_ 1 +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Utility functions and classes used by the Google C++ testing framework. +// +// Author: wan@google.com (Zhanyong Wan) +// +// This file contains purely Google Test's internal implementation. Please +// DO NOT #INCLUDE IT IN A USER PROGRAM. + +#ifndef GTEST_SRC_GTEST_INTERNAL_INL_H_ +#define GTEST_SRC_GTEST_INTERNAL_INL_H_ + +// GTEST_IMPLEMENTATION_ is defined to 1 iff the current translation unit is +// part of Google Test's implementation; otherwise it's undefined. +#if !GTEST_IMPLEMENTATION_ +// A user is trying to include this from his code - just say no. +# error "gtest-internal-inl.h is part of Google Test's internal implementation." +# error "It must not be included except by Google Test itself." +#endif // GTEST_IMPLEMENTATION_ + +#ifndef _WIN32_WCE +# include +#endif // !_WIN32_WCE +#include +#include // For strtoll/_strtoul64/malloc/free. +#include // For memmove. + +#include +#include +#include + + +#if GTEST_CAN_STREAM_RESULTS_ +# include // NOLINT +# include // NOLINT +#endif + +#if GTEST_OS_WINDOWS +# include // NOLINT +#endif // GTEST_OS_WINDOWS + + +namespace testing { + +// Declares the flags. +// +// We don't want the users to modify this flag in the code, but want +// Google Test's own unit tests to be able to access it. Therefore we +// declare it here as opposed to in gtest.h. +GTEST_DECLARE_bool_(death_test_use_fork); + +namespace internal { + +// The value of GetTestTypeId() as seen from within the Google Test +// library. This is solely for testing GetTestTypeId(). +GTEST_API_ extern const TypeId kTestTypeIdInGoogleTest; + +// Names of the flags (needed for parsing Google Test flags). +const char kAlsoRunDisabledTestsFlag[] = "also_run_disabled_tests"; +const char kBreakOnFailureFlag[] = "break_on_failure"; +const char kCatchExceptionsFlag[] = "catch_exceptions"; +const char kColorFlag[] = "color"; +const char kFilterFlag[] = "filter"; +const char kListTestsFlag[] = "list_tests"; +const char kOutputFlag[] = "output"; +const char kPrintTimeFlag[] = "print_time"; +const char kRandomSeedFlag[] = "random_seed"; +const char kRepeatFlag[] = "repeat"; +const char kShuffleFlag[] = "shuffle"; +const char kStackTraceDepthFlag[] = "stack_trace_depth"; +const char kStreamResultToFlag[] = "stream_result_to"; +const char kThrowOnFailureFlag[] = "throw_on_failure"; + +// A valid random seed must be in [1, kMaxRandomSeed]. +const int kMaxRandomSeed = 99999; + +// g_help_flag is true iff the --help flag or an equivalent form is +// specified on the command line. +GTEST_API_ extern bool g_help_flag; + +// Returns the current time in milliseconds. +GTEST_API_ TimeInMillis GetTimeInMillis(); + +// Returns true iff Google Test should use colors in the output. +GTEST_API_ bool ShouldUseColor(bool stdout_is_tty); + +// Formats the given time in milliseconds as seconds. +GTEST_API_ std::string FormatTimeInMillisAsSeconds(TimeInMillis ms); + +// Converts the given time in milliseconds to a date string in the ISO 8601 +// format, without the timezone information. N.B.: due to the use the +// non-reentrant localtime() function, this function is not thread safe. Do +// not use it in any code that can be called from multiple threads. +GTEST_API_ std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms); + +// Parses a string for an Int32 flag, in the form of "--flag=value". +// +// On success, stores the value of the flag in *value, and returns +// true. On failure, returns false without changing *value. +GTEST_API_ bool ParseInt32Flag( + const char* str, const char* flag, Int32* value); + +// Returns a random seed in range [1, kMaxRandomSeed] based on the +// given --gtest_random_seed flag value. +inline int GetRandomSeedFromFlag(Int32 random_seed_flag) { + const unsigned int raw_seed = (random_seed_flag == 0) ? + static_cast(GetTimeInMillis()) : + static_cast(random_seed_flag); + + // Normalizes the actual seed to range [1, kMaxRandomSeed] such that + // it's easy to type. + const int normalized_seed = + static_cast((raw_seed - 1U) % + static_cast(kMaxRandomSeed)) + 1; + return normalized_seed; +} + +// Returns the first valid random seed after 'seed'. The behavior is +// undefined if 'seed' is invalid. The seed after kMaxRandomSeed is +// considered to be 1. +inline int GetNextRandomSeed(int seed) { + GTEST_CHECK_(1 <= seed && seed <= kMaxRandomSeed) + << "Invalid random seed " << seed << " - must be in [1, " + << kMaxRandomSeed << "]."; + const int next_seed = seed + 1; + return (next_seed > kMaxRandomSeed) ? 1 : next_seed; +} + +// This class saves the values of all Google Test flags in its c'tor, and +// restores them in its d'tor. +class GTestFlagSaver { + public: + // The c'tor. + GTestFlagSaver() { + also_run_disabled_tests_ = GTEST_FLAG(also_run_disabled_tests); + break_on_failure_ = GTEST_FLAG(break_on_failure); + catch_exceptions_ = GTEST_FLAG(catch_exceptions); + color_ = GTEST_FLAG(color); + death_test_style_ = GTEST_FLAG(death_test_style); + death_test_use_fork_ = GTEST_FLAG(death_test_use_fork); + filter_ = GTEST_FLAG(filter); + internal_run_death_test_ = GTEST_FLAG(internal_run_death_test); + list_tests_ = GTEST_FLAG(list_tests); + output_ = GTEST_FLAG(output); + print_time_ = GTEST_FLAG(print_time); + random_seed_ = GTEST_FLAG(random_seed); + repeat_ = GTEST_FLAG(repeat); + shuffle_ = GTEST_FLAG(shuffle); + stack_trace_depth_ = GTEST_FLAG(stack_trace_depth); + stream_result_to_ = GTEST_FLAG(stream_result_to); + throw_on_failure_ = GTEST_FLAG(throw_on_failure); + } + + // The d'tor is not virtual. DO NOT INHERIT FROM THIS CLASS. + ~GTestFlagSaver() { + GTEST_FLAG(also_run_disabled_tests) = also_run_disabled_tests_; + GTEST_FLAG(break_on_failure) = break_on_failure_; + GTEST_FLAG(catch_exceptions) = catch_exceptions_; + GTEST_FLAG(color) = color_; + GTEST_FLAG(death_test_style) = death_test_style_; + GTEST_FLAG(death_test_use_fork) = death_test_use_fork_; + GTEST_FLAG(filter) = filter_; + GTEST_FLAG(internal_run_death_test) = internal_run_death_test_; + GTEST_FLAG(list_tests) = list_tests_; + GTEST_FLAG(output) = output_; + GTEST_FLAG(print_time) = print_time_; + GTEST_FLAG(random_seed) = random_seed_; + GTEST_FLAG(repeat) = repeat_; + GTEST_FLAG(shuffle) = shuffle_; + GTEST_FLAG(stack_trace_depth) = stack_trace_depth_; + GTEST_FLAG(stream_result_to) = stream_result_to_; + GTEST_FLAG(throw_on_failure) = throw_on_failure_; + } + + private: + // Fields for saving the original values of flags. + bool also_run_disabled_tests_; + bool break_on_failure_; + bool catch_exceptions_; + std::string color_; + std::string death_test_style_; + bool death_test_use_fork_; + std::string filter_; + std::string internal_run_death_test_; + bool list_tests_; + std::string output_; + bool print_time_; + internal::Int32 random_seed_; + internal::Int32 repeat_; + bool shuffle_; + internal::Int32 stack_trace_depth_; + std::string stream_result_to_; + bool throw_on_failure_; +} GTEST_ATTRIBUTE_UNUSED_; + +// Converts a Unicode code point to a narrow string in UTF-8 encoding. +// code_point parameter is of type UInt32 because wchar_t may not be +// wide enough to contain a code point. +// If the code_point is not a valid Unicode code point +// (i.e. outside of Unicode range U+0 to U+10FFFF) it will be converted +// to "(Invalid Unicode 0xXXXXXXXX)". +GTEST_API_ std::string CodePointToUtf8(UInt32 code_point); + +// Converts a wide string to a narrow string in UTF-8 encoding. +// The wide string is assumed to have the following encoding: +// UTF-16 if sizeof(wchar_t) == 2 (on Windows, Cygwin, Symbian OS) +// UTF-32 if sizeof(wchar_t) == 4 (on Linux) +// Parameter str points to a null-terminated wide string. +// Parameter num_chars may additionally limit the number +// of wchar_t characters processed. -1 is used when the entire string +// should be processed. +// If the string contains code points that are not valid Unicode code points +// (i.e. outside of Unicode range U+0 to U+10FFFF) they will be output +// as '(Invalid Unicode 0xXXXXXXXX)'. If the string is in UTF16 encoding +// and contains invalid UTF-16 surrogate pairs, values in those pairs +// will be encoded as individual Unicode characters from Basic Normal Plane. +GTEST_API_ std::string WideStringToUtf8(const wchar_t* str, int num_chars); + +// Reads the GTEST_SHARD_STATUS_FILE environment variable, and creates the file +// if the variable is present. If a file already exists at this location, this +// function will write over it. If the variable is present, but the file cannot +// be created, prints an error and exits. +void WriteToShardStatusFileIfNeeded(); + +// Checks whether sharding is enabled by examining the relevant +// environment variable values. If the variables are present, +// but inconsistent (e.g., shard_index >= total_shards), prints +// an error and exits. If in_subprocess_for_death_test, sharding is +// disabled because it must only be applied to the original test +// process. Otherwise, we could filter out death tests we intended to execute. +GTEST_API_ bool ShouldShard(const char* total_shards_str, + const char* shard_index_str, + bool in_subprocess_for_death_test); + +// Parses the environment variable var as an Int32. If it is unset, +// returns default_val. If it is not an Int32, prints an error and +// and aborts. +GTEST_API_ Int32 Int32FromEnvOrDie(const char* env_var, Int32 default_val); + +// Given the total number of shards, the shard index, and the test id, +// returns true iff the test should be run on this shard. The test id is +// some arbitrary but unique non-negative integer assigned to each test +// method. Assumes that 0 <= shard_index < total_shards. +GTEST_API_ bool ShouldRunTestOnShard( + int total_shards, int shard_index, int test_id); + +// STL container utilities. + +// Returns the number of elements in the given container that satisfy +// the given predicate. +template +inline int CountIf(const Container& c, Predicate predicate) { + // Implemented as an explicit loop since std::count_if() in libCstd on + // Solaris has a non-standard signature. + int count = 0; + for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) { + if (predicate(*it)) + ++count; + } + return count; +} + +// Applies a function/functor to each element in the container. +template +void ForEach(const Container& c, Functor functor) { + std::for_each(c.begin(), c.end(), functor); +} + +// Returns the i-th element of the vector, or default_value if i is not +// in range [0, v.size()). +template +inline E GetElementOr(const std::vector& v, int i, E default_value) { + return (i < 0 || i >= static_cast(v.size())) ? default_value : v[i]; +} + +// Performs an in-place shuffle of a range of the vector's elements. +// 'begin' and 'end' are element indices as an STL-style range; +// i.e. [begin, end) are shuffled, where 'end' == size() means to +// shuffle to the end of the vector. +template +void ShuffleRange(internal::Random* random, int begin, int end, + std::vector* v) { + const int size = static_cast(v->size()); + GTEST_CHECK_(0 <= begin && begin <= size) + << "Invalid shuffle range start " << begin << ": must be in range [0, " + << size << "]."; + GTEST_CHECK_(begin <= end && end <= size) + << "Invalid shuffle range finish " << end << ": must be in range [" + << begin << ", " << size << "]."; + + // Fisher-Yates shuffle, from + // http://en.wikipedia.org/wiki/Fisher-Yates_shuffle + for (int range_width = end - begin; range_width >= 2; range_width--) { + const int last_in_range = begin + range_width - 1; + const int selected = begin + random->Generate(range_width); + std::swap((*v)[selected], (*v)[last_in_range]); + } +} + +// Performs an in-place shuffle of the vector's elements. +template +inline void Shuffle(internal::Random* random, std::vector* v) { + ShuffleRange(random, 0, static_cast(v->size()), v); +} + +// A function for deleting an object. Handy for being used as a +// functor. +template +static void Delete(T* x) { + delete x; +} + +// A predicate that checks the key of a TestProperty against a known key. +// +// TestPropertyKeyIs is copyable. +class TestPropertyKeyIs { + public: + // Constructor. + // + // TestPropertyKeyIs has NO default constructor. + explicit TestPropertyKeyIs(const std::string& key) : key_(key) {} + + // Returns true iff the test name of test property matches on key_. + bool operator()(const TestProperty& test_property) const { + return test_property.key() == key_; + } + + private: + std::string key_; +}; + +// Class UnitTestOptions. +// +// This class contains functions for processing options the user +// specifies when running the tests. It has only static members. +// +// In most cases, the user can specify an option using either an +// environment variable or a command line flag. E.g. you can set the +// test filter using either GTEST_FILTER or --gtest_filter. If both +// the variable and the flag are present, the latter overrides the +// former. +class GTEST_API_ UnitTestOptions { + public: + // Functions for processing the gtest_output flag. + + // Returns the output format, or "" for normal printed output. + static std::string GetOutputFormat(); + + // Returns the absolute path of the requested output file, or the + // default (test_detail.xml in the original working directory) if + // none was explicitly specified. + static std::string GetAbsolutePathToOutputFile(); + + // Functions for processing the gtest_filter flag. + + // Returns true iff the wildcard pattern matches the string. The + // first ':' or '\0' character in pattern marks the end of it. + // + // This recursive algorithm isn't very efficient, but is clear and + // works well enough for matching test names, which are short. + static bool PatternMatchesString(const char *pattern, const char *str); + + // Returns true iff the user-specified filter matches the test case + // name and the test name. + static bool FilterMatchesTest(const std::string &test_case_name, + const std::string &test_name); + +#if GTEST_OS_WINDOWS + // Function for supporting the gtest_catch_exception flag. + + // Returns EXCEPTION_EXECUTE_HANDLER if Google Test should handle the + // given SEH exception, or EXCEPTION_CONTINUE_SEARCH otherwise. + // This function is useful as an __except condition. + static int GTestShouldProcessSEH(DWORD exception_code); +#endif // GTEST_OS_WINDOWS + + // Returns true if "name" matches the ':' separated list of glob-style + // filters in "filter". + static bool MatchesFilter(const std::string& name, const char* filter); +}; + +// Returns the current application's name, removing directory path if that +// is present. Used by UnitTestOptions::GetOutputFile. +GTEST_API_ FilePath GetCurrentExecutableName(); + +// The role interface for getting the OS stack trace as a string. +class OsStackTraceGetterInterface { + public: + OsStackTraceGetterInterface() {} + virtual ~OsStackTraceGetterInterface() {} + + // Returns the current OS stack trace as an std::string. Parameters: + // + // max_depth - the maximum number of stack frames to be included + // in the trace. + // skip_count - the number of top frames to be skipped; doesn't count + // against max_depth. + virtual string CurrentStackTrace(int max_depth, int skip_count) = 0; + + // UponLeavingGTest() should be called immediately before Google Test calls + // user code. It saves some information about the current stack that + // CurrentStackTrace() will use to find and hide Google Test stack frames. + virtual void UponLeavingGTest() = 0; + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(OsStackTraceGetterInterface); +}; + +// A working implementation of the OsStackTraceGetterInterface interface. +class OsStackTraceGetter : public OsStackTraceGetterInterface { + public: + OsStackTraceGetter() : caller_frame_(NULL) {} + + virtual string CurrentStackTrace(int max_depth, int skip_count) + GTEST_LOCK_EXCLUDED_(mutex_); + + virtual void UponLeavingGTest() GTEST_LOCK_EXCLUDED_(mutex_); + + // This string is inserted in place of stack frames that are part of + // Google Test's implementation. + static const char* const kElidedFramesMarker; + + private: + Mutex mutex_; // protects all internal state + + // We save the stack frame below the frame that calls user code. + // We do this because the address of the frame immediately below + // the user code changes between the call to UponLeavingGTest() + // and any calls to CurrentStackTrace() from within the user code. + void* caller_frame_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(OsStackTraceGetter); +}; + +// Information about a Google Test trace point. +struct TraceInfo { + const char* file; + int line; + std::string message; +}; + +// This is the default global test part result reporter used in UnitTestImpl. +// This class should only be used by UnitTestImpl. +class DefaultGlobalTestPartResultReporter + : public TestPartResultReporterInterface { + public: + explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test); + // Implements the TestPartResultReporterInterface. Reports the test part + // result in the current test. + virtual void ReportTestPartResult(const TestPartResult& result); + + private: + UnitTestImpl* const unit_test_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(DefaultGlobalTestPartResultReporter); +}; + +// This is the default per thread test part result reporter used in +// UnitTestImpl. This class should only be used by UnitTestImpl. +class DefaultPerThreadTestPartResultReporter + : public TestPartResultReporterInterface { + public: + explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test); + // Implements the TestPartResultReporterInterface. The implementation just + // delegates to the current global test part result reporter of *unit_test_. + virtual void ReportTestPartResult(const TestPartResult& result); + + private: + UnitTestImpl* const unit_test_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(DefaultPerThreadTestPartResultReporter); +}; + +// The private implementation of the UnitTest class. We don't protect +// the methods under a mutex, as this class is not accessible by a +// user and the UnitTest class that delegates work to this class does +// proper locking. +class GTEST_API_ UnitTestImpl { + public: + explicit UnitTestImpl(UnitTest* parent); + virtual ~UnitTestImpl(); + + // There are two different ways to register your own TestPartResultReporter. + // You can register your own repoter to listen either only for test results + // from the current thread or for results from all threads. + // By default, each per-thread test result repoter just passes a new + // TestPartResult to the global test result reporter, which registers the + // test part result for the currently running test. + + // Returns the global test part result reporter. + TestPartResultReporterInterface* GetGlobalTestPartResultReporter(); + + // Sets the global test part result reporter. + void SetGlobalTestPartResultReporter( + TestPartResultReporterInterface* reporter); + + // Returns the test part result reporter for the current thread. + TestPartResultReporterInterface* GetTestPartResultReporterForCurrentThread(); + + // Sets the test part result reporter for the current thread. + void SetTestPartResultReporterForCurrentThread( + TestPartResultReporterInterface* reporter); + + // Gets the number of successful test cases. + int successful_test_case_count() const; + + // Gets the number of failed test cases. + int failed_test_case_count() const; + + // Gets the number of all test cases. + int total_test_case_count() const; + + // Gets the number of all test cases that contain at least one test + // that should run. + int test_case_to_run_count() const; + + // Gets the number of successful tests. + int successful_test_count() const; + + // Gets the number of failed tests. + int failed_test_count() const; + + // Gets the number of disabled tests that will be reported in the XML report. + int reportable_disabled_test_count() const; + + // Gets the number of disabled tests. + int disabled_test_count() const; + + // Gets the number of tests to be printed in the XML report. + int reportable_test_count() const; + + // Gets the number of all tests. + int total_test_count() const; + + // Gets the number of tests that should run. + int test_to_run_count() const; + + // Gets the time of the test program start, in ms from the start of the + // UNIX epoch. + TimeInMillis start_timestamp() const { return start_timestamp_; } + + // Gets the elapsed time, in milliseconds. + TimeInMillis elapsed_time() const { return elapsed_time_; } + + // Returns true iff the unit test passed (i.e. all test cases passed). + bool Passed() const { return !Failed(); } + + // Returns true iff the unit test failed (i.e. some test case failed + // or something outside of all tests failed). + bool Failed() const { + return failed_test_case_count() > 0 || ad_hoc_test_result()->Failed(); + } + + // Gets the i-th test case among all the test cases. i can range from 0 to + // total_test_case_count() - 1. If i is not in that range, returns NULL. + const TestCase* GetTestCase(int i) const { + const int index = GetElementOr(test_case_indices_, i, -1); + return index < 0 ? NULL : test_cases_[i]; + } + + // Gets the i-th test case among all the test cases. i can range from 0 to + // total_test_case_count() - 1. If i is not in that range, returns NULL. + TestCase* GetMutableTestCase(int i) { + const int index = GetElementOr(test_case_indices_, i, -1); + return index < 0 ? NULL : test_cases_[index]; + } + + // Provides access to the event listener list. + TestEventListeners* listeners() { return &listeners_; } + + // Returns the TestResult for the test that's currently running, or + // the TestResult for the ad hoc test if no test is running. + TestResult* current_test_result(); + + // Returns the TestResult for the ad hoc test. + const TestResult* ad_hoc_test_result() const { return &ad_hoc_test_result_; } + + // Sets the OS stack trace getter. + // + // Does nothing if the input and the current OS stack trace getter + // are the same; otherwise, deletes the old getter and makes the + // input the current getter. + void set_os_stack_trace_getter(OsStackTraceGetterInterface* getter); + + // Returns the current OS stack trace getter if it is not NULL; + // otherwise, creates an OsStackTraceGetter, makes it the current + // getter, and returns it. + OsStackTraceGetterInterface* os_stack_trace_getter(); + + // Returns the current OS stack trace as an std::string. + // + // The maximum number of stack frames to be included is specified by + // the gtest_stack_trace_depth flag. The skip_count parameter + // specifies the number of top frames to be skipped, which doesn't + // count against the number of frames to be included. + // + // For example, if Foo() calls Bar(), which in turn calls + // CurrentOsStackTraceExceptTop(1), Foo() will be included in the + // trace but Bar() and CurrentOsStackTraceExceptTop() won't. + std::string CurrentOsStackTraceExceptTop(int skip_count) GTEST_NO_INLINE_; + + // Finds and returns a TestCase with the given name. If one doesn't + // exist, creates one and returns it. + // + // Arguments: + // + // test_case_name: name of the test case + // type_param: the name of the test's type parameter, or NULL if + // this is not a typed or a type-parameterized test. + // set_up_tc: pointer to the function that sets up the test case + // tear_down_tc: pointer to the function that tears down the test case + TestCase* GetTestCase(const char* test_case_name, + const char* type_param, + Test::SetUpTestCaseFunc set_up_tc, + Test::TearDownTestCaseFunc tear_down_tc); + + // Adds a TestInfo to the unit test. + // + // Arguments: + // + // set_up_tc: pointer to the function that sets up the test case + // tear_down_tc: pointer to the function that tears down the test case + // test_info: the TestInfo object + void AddTestInfo(Test::SetUpTestCaseFunc set_up_tc, + Test::TearDownTestCaseFunc tear_down_tc, + TestInfo* test_info) { + // In order to support thread-safe death tests, we need to + // remember the original working directory when the test program + // was first invoked. We cannot do this in RUN_ALL_TESTS(), as + // the user may have changed the current directory before calling + // RUN_ALL_TESTS(). Therefore we capture the current directory in + // AddTestInfo(), which is called to register a TEST or TEST_F + // before main() is reached. + if (original_working_dir_.IsEmpty()) { + original_working_dir_.Set(FilePath::GetCurrentDir()); + GTEST_CHECK_(!original_working_dir_.IsEmpty()) + << "Failed to get the current working directory."; + } + + GetTestCase(test_info->test_case_name(), + test_info->type_param(), + set_up_tc, + tear_down_tc)->AddTestInfo(test_info); + } + +#if GTEST_HAS_PARAM_TEST + // Returns ParameterizedTestCaseRegistry object used to keep track of + // value-parameterized tests and instantiate and register them. + internal::ParameterizedTestCaseRegistry& parameterized_test_registry() { + return parameterized_test_registry_; + } +#endif // GTEST_HAS_PARAM_TEST + + // Sets the TestCase object for the test that's currently running. + void set_current_test_case(TestCase* a_current_test_case) { + current_test_case_ = a_current_test_case; + } + + // Sets the TestInfo object for the test that's currently running. If + // current_test_info is NULL, the assertion results will be stored in + // ad_hoc_test_result_. + void set_current_test_info(TestInfo* a_current_test_info) { + current_test_info_ = a_current_test_info; + } + + // Registers all parameterized tests defined using TEST_P and + // INSTANTIATE_TEST_CASE_P, creating regular tests for each test/parameter + // combination. This method can be called more then once; it has guards + // protecting from registering the tests more then once. If + // value-parameterized tests are disabled, RegisterParameterizedTests is + // present but does nothing. + void RegisterParameterizedTests(); + + // Runs all tests in this UnitTest object, prints the result, and + // returns true if all tests are successful. If any exception is + // thrown during a test, this test is considered to be failed, but + // the rest of the tests will still be run. + bool RunAllTests(); + + // Clears the results of all tests, except the ad hoc tests. + void ClearNonAdHocTestResult() { + ForEach(test_cases_, TestCase::ClearTestCaseResult); + } + + // Clears the results of ad-hoc test assertions. + void ClearAdHocTestResult() { + ad_hoc_test_result_.Clear(); + } + + // Adds a TestProperty to the current TestResult object when invoked in a + // context of a test or a test case, or to the global property set. If the + // result already contains a property with the same key, the value will be + // updated. + void RecordProperty(const TestProperty& test_property); + + enum ReactionToSharding { + HONOR_SHARDING_PROTOCOL, + IGNORE_SHARDING_PROTOCOL + }; + + // Matches the full name of each test against the user-specified + // filter to decide whether the test should run, then records the + // result in each TestCase and TestInfo object. + // If shard_tests == HONOR_SHARDING_PROTOCOL, further filters tests + // based on sharding variables in the environment. + // Returns the number of tests that should run. + int FilterTests(ReactionToSharding shard_tests); + + // Prints the names of the tests matching the user-specified filter flag. + void ListTestsMatchingFilter(); + + const TestCase* current_test_case() const { return current_test_case_; } + TestInfo* current_test_info() { return current_test_info_; } + const TestInfo* current_test_info() const { return current_test_info_; } + + // Returns the vector of environments that need to be set-up/torn-down + // before/after the tests are run. + std::vector& environments() { return environments_; } + + // Getters for the per-thread Google Test trace stack. + std::vector& gtest_trace_stack() { + return *(gtest_trace_stack_.pointer()); + } + const std::vector& gtest_trace_stack() const { + return gtest_trace_stack_.get(); + } + +#if GTEST_HAS_DEATH_TEST + void InitDeathTestSubprocessControlInfo() { + internal_run_death_test_flag_.reset(ParseInternalRunDeathTestFlag()); + } + // Returns a pointer to the parsed --gtest_internal_run_death_test + // flag, or NULL if that flag was not specified. + // This information is useful only in a death test child process. + // Must not be called before a call to InitGoogleTest. + const InternalRunDeathTestFlag* internal_run_death_test_flag() const { + return internal_run_death_test_flag_.get(); + } + + // Returns a pointer to the current death test factory. + internal::DeathTestFactory* death_test_factory() { + return death_test_factory_.get(); + } + + void SuppressTestEventsIfInSubprocess(); + + friend class ReplaceDeathTestFactory; +#endif // GTEST_HAS_DEATH_TEST + + // Initializes the event listener performing XML output as specified by + // UnitTestOptions. Must not be called before InitGoogleTest. + void ConfigureXmlOutput(); + +#if GTEST_CAN_STREAM_RESULTS_ + // Initializes the event listener for streaming test results to a socket. + // Must not be called before InitGoogleTest. + void ConfigureStreamingOutput(); +#endif + + // Performs initialization dependent upon flag values obtained in + // ParseGoogleTestFlagsOnly. Is called from InitGoogleTest after the call to + // ParseGoogleTestFlagsOnly. In case a user neglects to call InitGoogleTest + // this function is also called from RunAllTests. Since this function can be + // called more than once, it has to be idempotent. + void PostFlagParsingInit(); + + // Gets the random seed used at the start of the current test iteration. + int random_seed() const { return random_seed_; } + + // Gets the random number generator. + internal::Random* random() { return &random_; } + + // Shuffles all test cases, and the tests within each test case, + // making sure that death tests are still run first. + void ShuffleTests(); + + // Restores the test cases and tests to their order before the first shuffle. + void UnshuffleTests(); + + // Returns the value of GTEST_FLAG(catch_exceptions) at the moment + // UnitTest::Run() starts. + bool catch_exceptions() const { return catch_exceptions_; } + + private: + friend class ::testing::UnitTest; + + // Used by UnitTest::Run() to capture the state of + // GTEST_FLAG(catch_exceptions) at the moment it starts. + void set_catch_exceptions(bool value) { catch_exceptions_ = value; } + + // The UnitTest object that owns this implementation object. + UnitTest* const parent_; + + // The working directory when the first TEST() or TEST_F() was + // executed. + internal::FilePath original_working_dir_; + + // The default test part result reporters. + DefaultGlobalTestPartResultReporter default_global_test_part_result_reporter_; + DefaultPerThreadTestPartResultReporter + default_per_thread_test_part_result_reporter_; + + // Points to (but doesn't own) the global test part result reporter. + TestPartResultReporterInterface* global_test_part_result_repoter_; + + // Protects read and write access to global_test_part_result_reporter_. + internal::Mutex global_test_part_result_reporter_mutex_; + + // Points to (but doesn't own) the per-thread test part result reporter. + internal::ThreadLocal + per_thread_test_part_result_reporter_; + + // The vector of environments that need to be set-up/torn-down + // before/after the tests are run. + std::vector environments_; + + // The vector of TestCases in their original order. It owns the + // elements in the vector. + std::vector test_cases_; + + // Provides a level of indirection for the test case list to allow + // easy shuffling and restoring the test case order. The i-th + // element of this vector is the index of the i-th test case in the + // shuffled order. + std::vector test_case_indices_; + +#if GTEST_HAS_PARAM_TEST + // ParameterizedTestRegistry object used to register value-parameterized + // tests. + internal::ParameterizedTestCaseRegistry parameterized_test_registry_; + + // Indicates whether RegisterParameterizedTests() has been called already. + bool parameterized_tests_registered_; +#endif // GTEST_HAS_PARAM_TEST + + // Index of the last death test case registered. Initially -1. + int last_death_test_case_; + + // This points to the TestCase for the currently running test. It + // changes as Google Test goes through one test case after another. + // When no test is running, this is set to NULL and Google Test + // stores assertion results in ad_hoc_test_result_. Initially NULL. + TestCase* current_test_case_; + + // This points to the TestInfo for the currently running test. It + // changes as Google Test goes through one test after another. When + // no test is running, this is set to NULL and Google Test stores + // assertion results in ad_hoc_test_result_. Initially NULL. + TestInfo* current_test_info_; + + // Normally, a user only writes assertions inside a TEST or TEST_F, + // or inside a function called by a TEST or TEST_F. Since Google + // Test keeps track of which test is current running, it can + // associate such an assertion with the test it belongs to. + // + // If an assertion is encountered when no TEST or TEST_F is running, + // Google Test attributes the assertion result to an imaginary "ad hoc" + // test, and records the result in ad_hoc_test_result_. + TestResult ad_hoc_test_result_; + + // The list of event listeners that can be used to track events inside + // Google Test. + TestEventListeners listeners_; + + // The OS stack trace getter. Will be deleted when the UnitTest + // object is destructed. By default, an OsStackTraceGetter is used, + // but the user can set this field to use a custom getter if that is + // desired. + OsStackTraceGetterInterface* os_stack_trace_getter_; + + // True iff PostFlagParsingInit() has been called. + bool post_flag_parse_init_performed_; + + // The random number seed used at the beginning of the test run. + int random_seed_; + + // Our random number generator. + internal::Random random_; + + // The time of the test program start, in ms from the start of the + // UNIX epoch. + TimeInMillis start_timestamp_; + + // How long the test took to run, in milliseconds. + TimeInMillis elapsed_time_; + +#if GTEST_HAS_DEATH_TEST + // The decomposed components of the gtest_internal_run_death_test flag, + // parsed when RUN_ALL_TESTS is called. + internal::scoped_ptr internal_run_death_test_flag_; + internal::scoped_ptr death_test_factory_; +#endif // GTEST_HAS_DEATH_TEST + + // A per-thread stack of traces created by the SCOPED_TRACE() macro. + internal::ThreadLocal > gtest_trace_stack_; + + // The value of GTEST_FLAG(catch_exceptions) at the moment RunAllTests() + // starts. + bool catch_exceptions_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(UnitTestImpl); +}; // class UnitTestImpl + +// Convenience function for accessing the global UnitTest +// implementation object. +inline UnitTestImpl* GetUnitTestImpl() { + return UnitTest::GetInstance()->impl(); +} + +#if GTEST_USES_SIMPLE_RE + +// Internal helper functions for implementing the simple regular +// expression matcher. +GTEST_API_ bool IsInSet(char ch, const char* str); +GTEST_API_ bool IsAsciiDigit(char ch); +GTEST_API_ bool IsAsciiPunct(char ch); +GTEST_API_ bool IsRepeat(char ch); +GTEST_API_ bool IsAsciiWhiteSpace(char ch); +GTEST_API_ bool IsAsciiWordChar(char ch); +GTEST_API_ bool IsValidEscape(char ch); +GTEST_API_ bool AtomMatchesChar(bool escaped, char pattern, char ch); +GTEST_API_ bool ValidateRegex(const char* regex); +GTEST_API_ bool MatchRegexAtHead(const char* regex, const char* str); +GTEST_API_ bool MatchRepetitionAndRegexAtHead( + bool escaped, char ch, char repeat, const char* regex, const char* str); +GTEST_API_ bool MatchRegexAnywhere(const char* regex, const char* str); + +#endif // GTEST_USES_SIMPLE_RE + +// Parses the command line for Google Test flags, without initializing +// other parts of Google Test. +GTEST_API_ void ParseGoogleTestFlagsOnly(int* argc, char** argv); +GTEST_API_ void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv); + +#if GTEST_HAS_DEATH_TEST + +// Returns the message describing the last system error, regardless of the +// platform. +GTEST_API_ std::string GetLastErrnoDescription(); + +# if GTEST_OS_WINDOWS +// Provides leak-safe Windows kernel handle ownership. +class AutoHandle { + public: + AutoHandle() : handle_(INVALID_HANDLE_VALUE) {} + explicit AutoHandle(HANDLE handle) : handle_(handle) {} + + ~AutoHandle() { Reset(); } + + HANDLE Get() const { return handle_; } + void Reset() { Reset(INVALID_HANDLE_VALUE); } + void Reset(HANDLE handle) { + if (handle != handle_) { + if (handle_ != INVALID_HANDLE_VALUE) + ::CloseHandle(handle_); + handle_ = handle; + } + } + + private: + HANDLE handle_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(AutoHandle); +}; +# endif // GTEST_OS_WINDOWS + +// Attempts to parse a string into a positive integer pointed to by the +// number parameter. Returns true if that is possible. +// GTEST_HAS_DEATH_TEST implies that we have ::std::string, so we can use +// it here. +template +bool ParseNaturalNumber(const ::std::string& str, Integer* number) { + // Fail fast if the given string does not begin with a digit; + // this bypasses strtoXXX's "optional leading whitespace and plus + // or minus sign" semantics, which are undesirable here. + if (str.empty() || !IsDigit(str[0])) { + return false; + } + errno = 0; + + char* end; + // BiggestConvertible is the largest integer type that system-provided + // string-to-number conversion routines can return. + +# if GTEST_OS_WINDOWS && !defined(__GNUC__) + + // MSVC and C++ Builder define __int64 instead of the standard long long. + typedef unsigned __int64 BiggestConvertible; + const BiggestConvertible parsed = _strtoui64(str.c_str(), &end, 10); + +# else + + typedef unsigned long long BiggestConvertible; // NOLINT + const BiggestConvertible parsed = strtoull(str.c_str(), &end, 10); + +# endif // GTEST_OS_WINDOWS && !defined(__GNUC__) + + const bool parse_success = *end == '\0' && errno == 0; + + // TODO(vladl@google.com): Convert this to compile time assertion when it is + // available. + GTEST_CHECK_(sizeof(Integer) <= sizeof(parsed)); + + const Integer result = static_cast(parsed); + if (parse_success && static_cast(result) == parsed) { + *number = result; + return true; + } + return false; +} +#endif // GTEST_HAS_DEATH_TEST + +// TestResult contains some private methods that should be hidden from +// Google Test user but are required for testing. This class allow our tests +// to access them. +// +// This class is supplied only for the purpose of testing Google Test's own +// constructs. Do not use it in user tests, either directly or indirectly. +class TestResultAccessor { + public: + static void RecordProperty(TestResult* test_result, + const std::string& xml_element, + const TestProperty& property) { + test_result->RecordProperty(xml_element, property); + } + + static void ClearTestPartResults(TestResult* test_result) { + test_result->ClearTestPartResults(); + } + + static const std::vector& test_part_results( + const TestResult& test_result) { + return test_result.test_part_results(); + } +}; + +#if GTEST_CAN_STREAM_RESULTS_ + +// Streams test results to the given port on the given host machine. +class StreamingListener : public EmptyTestEventListener { + public: + // Abstract base class for writing strings to a socket. + class AbstractSocketWriter { + public: + virtual ~AbstractSocketWriter() {} + + // Sends a string to the socket. + virtual void Send(const string& message) = 0; + + // Closes the socket. + virtual void CloseConnection() {} + + // Sends a string and a newline to the socket. + void SendLn(const string& message) { + Send(message + "\n"); + } + }; + + // Concrete class for actually writing strings to a socket. + class SocketWriter : public AbstractSocketWriter { + public: + SocketWriter(const string& host, const string& port) + : sockfd_(-1), host_name_(host), port_num_(port) { + MakeConnection(); + } + + virtual ~SocketWriter() { + if (sockfd_ != -1) + CloseConnection(); + } + + // Sends a string to the socket. + virtual void Send(const string& message) { + GTEST_CHECK_(sockfd_ != -1) + << "Send() can be called only when there is a connection."; + + const int len = static_cast(message.length()); + if (write(sockfd_, message.c_str(), len) != len) { + GTEST_LOG_(WARNING) + << "stream_result_to: failed to stream to " + << host_name_ << ":" << port_num_; + } + } + + private: + // Creates a client socket and connects to the server. + void MakeConnection(); + + // Closes the socket. + void CloseConnection() { + GTEST_CHECK_(sockfd_ != -1) + << "CloseConnection() can be called only when there is a connection."; + + close(sockfd_); + sockfd_ = -1; + } + + int sockfd_; // socket file descriptor + const string host_name_; + const string port_num_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(SocketWriter); + }; // class SocketWriter + + // Escapes '=', '&', '%', and '\n' characters in str as "%xx". + static string UrlEncode(const char* str); + + StreamingListener(const string& host, const string& port) + : socket_writer_(new SocketWriter(host, port)) { Start(); } + + explicit StreamingListener(AbstractSocketWriter* socket_writer) + : socket_writer_(socket_writer) { Start(); } + + void OnTestProgramStart(const UnitTest& /* unit_test */) { + SendLn("event=TestProgramStart"); + } + + void OnTestProgramEnd(const UnitTest& unit_test) { + // Note that Google Test current only report elapsed time for each + // test iteration, not for the entire test program. + SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed())); + + // Notify the streaming server to stop. + socket_writer_->CloseConnection(); + } + + void OnTestIterationStart(const UnitTest& /* unit_test */, int iteration) { + SendLn("event=TestIterationStart&iteration=" + + StreamableToString(iteration)); + } + + void OnTestIterationEnd(const UnitTest& unit_test, int /* iteration */) { + SendLn("event=TestIterationEnd&passed=" + + FormatBool(unit_test.Passed()) + "&elapsed_time=" + + StreamableToString(unit_test.elapsed_time()) + "ms"); + } + + void OnTestCaseStart(const TestCase& test_case) { + SendLn(std::string("event=TestCaseStart&name=") + test_case.name()); + } + + void OnTestCaseEnd(const TestCase& test_case) { + SendLn("event=TestCaseEnd&passed=" + FormatBool(test_case.Passed()) + + "&elapsed_time=" + StreamableToString(test_case.elapsed_time()) + + "ms"); + } + + void OnTestStart(const TestInfo& test_info) { + SendLn(std::string("event=TestStart&name=") + test_info.name()); + } + + void OnTestEnd(const TestInfo& test_info) { + SendLn("event=TestEnd&passed=" + + FormatBool((test_info.result())->Passed()) + + "&elapsed_time=" + + StreamableToString((test_info.result())->elapsed_time()) + "ms"); + } + + void OnTestPartResult(const TestPartResult& test_part_result) { + const char* file_name = test_part_result.file_name(); + if (file_name == NULL) + file_name = ""; + SendLn("event=TestPartResult&file=" + UrlEncode(file_name) + + "&line=" + StreamableToString(test_part_result.line_number()) + + "&message=" + UrlEncode(test_part_result.message())); + } + + private: + // Sends the given message and a newline to the socket. + void SendLn(const string& message) { socket_writer_->SendLn(message); } + + // Called at the start of streaming to notify the receiver what + // protocol we are using. + void Start() { SendLn("gtest_streaming_protocol_version=1.0"); } + + string FormatBool(bool value) { return value ? "1" : "0"; } + + const scoped_ptr socket_writer_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(StreamingListener); +}; // class StreamingListener + +#endif // GTEST_CAN_STREAM_RESULTS_ + +} // namespace internal +} // namespace testing + +#endif // GTEST_SRC_GTEST_INTERNAL_INL_H_ +#undef GTEST_IMPLEMENTATION_ + +#if GTEST_OS_WINDOWS +# define vsnprintf _vsnprintf +#endif // GTEST_OS_WINDOWS + +namespace testing { + +using internal::CountIf; +using internal::ForEach; +using internal::GetElementOr; +using internal::Shuffle; + +// Constants. + +// A test whose test case name or test name matches this filter is +// disabled and not run. +static const char kDisableTestFilter[] = "DISABLED_*:*/DISABLED_*"; + +// A test case whose name matches this filter is considered a death +// test case and will be run before test cases whose name doesn't +// match this filter. +static const char kDeathTestCaseFilter[] = "*DeathTest:*DeathTest/*"; + +// A test filter that matches everything. +static const char kUniversalFilter[] = "*"; + +// The default output file for XML output. +static const char kDefaultOutputFile[] = "test_detail.xml"; + +// The environment variable name for the test shard index. +static const char kTestShardIndex[] = "GTEST_SHARD_INDEX"; +// The environment variable name for the total number of test shards. +static const char kTestTotalShards[] = "GTEST_TOTAL_SHARDS"; +// The environment variable name for the test shard status file. +static const char kTestShardStatusFile[] = "GTEST_SHARD_STATUS_FILE"; + +namespace internal { + +// The text used in failure messages to indicate the start of the +// stack trace. +const char kStackTraceMarker[] = "\nStack trace:\n"; + +// g_help_flag is true iff the --help flag or an equivalent form is +// specified on the command line. +bool g_help_flag = false; + +} // namespace internal + +static const char* GetDefaultFilter() { + return kUniversalFilter; +} + +GTEST_DEFINE_bool_( + also_run_disabled_tests, + internal::BoolFromGTestEnv("also_run_disabled_tests", false), + "Run disabled tests too, in addition to the tests normally being run."); + +GTEST_DEFINE_bool_( + break_on_failure, + internal::BoolFromGTestEnv("break_on_failure", false), + "True iff a failed assertion should be a debugger break-point."); + +GTEST_DEFINE_bool_( + catch_exceptions, + internal::BoolFromGTestEnv("catch_exceptions", true), + "True iff " GTEST_NAME_ + " should catch exceptions and treat them as test failures."); + +GTEST_DEFINE_string_( + color, + internal::StringFromGTestEnv("color", "auto"), + "Whether to use colors in the output. Valid values: yes, no, " + "and auto. 'auto' means to use colors if the output is " + "being sent to a terminal and the TERM environment variable " + "is set to a terminal type that supports colors."); + +GTEST_DEFINE_string_( + filter, + internal::StringFromGTestEnv("filter", GetDefaultFilter()), + "A colon-separated list of glob (not regex) patterns " + "for filtering the tests to run, optionally followed by a " + "'-' and a : separated list of negative patterns (tests to " + "exclude). A test is run if it matches one of the positive " + "patterns and does not match any of the negative patterns."); + +GTEST_DEFINE_bool_(list_tests, false, + "List all tests without running them."); + +GTEST_DEFINE_string_( + output, + internal::StringFromGTestEnv("output", ""), + "A format (currently must be \"xml\"), optionally followed " + "by a colon and an output file name or directory. A directory " + "is indicated by a trailing pathname separator. " + "Examples: \"xml:filename.xml\", \"xml::directoryname/\". " + "If a directory is specified, output files will be created " + "within that directory, with file-names based on the test " + "executable's name and, if necessary, made unique by adding " + "digits."); + +GTEST_DEFINE_bool_( + print_time, + internal::BoolFromGTestEnv("print_time", true), + "True iff " GTEST_NAME_ + " should display elapsed time in text output."); + +GTEST_DEFINE_int32_( + random_seed, + internal::Int32FromGTestEnv("random_seed", 0), + "Random number seed to use when shuffling test orders. Must be in range " + "[1, 99999], or 0 to use a seed based on the current time."); + +GTEST_DEFINE_int32_( + repeat, + internal::Int32FromGTestEnv("repeat", 1), + "How many times to repeat each test. Specify a negative number " + "for repeating forever. Useful for shaking out flaky tests."); + +GTEST_DEFINE_bool_( + show_internal_stack_frames, false, + "True iff " GTEST_NAME_ " should include internal stack frames when " + "printing test failure stack traces."); + +GTEST_DEFINE_bool_( + shuffle, + internal::BoolFromGTestEnv("shuffle", false), + "True iff " GTEST_NAME_ + " should randomize tests' order on every run."); + +GTEST_DEFINE_int32_( + stack_trace_depth, + internal::Int32FromGTestEnv("stack_trace_depth", kMaxStackTraceDepth), + "The maximum number of stack frames to print when an " + "assertion fails. The valid range is 0 through 100, inclusive."); + +GTEST_DEFINE_string_( + stream_result_to, + internal::StringFromGTestEnv("stream_result_to", ""), + "This flag specifies the host name and the port number on which to stream " + "test results. Example: \"localhost:555\". The flag is effective only on " + "Linux."); + +GTEST_DEFINE_bool_( + throw_on_failure, + internal::BoolFromGTestEnv("throw_on_failure", false), + "When this flag is specified, a failed assertion will throw an exception " + "if exceptions are enabled or exit the program with a non-zero code " + "otherwise."); + +namespace internal { + +// Generates a random number from [0, range), using a Linear +// Congruential Generator (LCG). Crashes if 'range' is 0 or greater +// than kMaxRange. +UInt32 Random::Generate(UInt32 range) { + // These constants are the same as are used in glibc's rand(3). + state_ = (1103515245U*state_ + 12345U) % kMaxRange; + + GTEST_CHECK_(range > 0) + << "Cannot generate a number in the range [0, 0)."; + GTEST_CHECK_(range <= kMaxRange) + << "Generation of a number in [0, " << range << ") was requested, " + << "but this can only generate numbers in [0, " << kMaxRange << ")."; + + // Converting via modulus introduces a bit of downward bias, but + // it's simple, and a linear congruential generator isn't too good + // to begin with. + return state_ % range; +} + +// GTestIsInitialized() returns true iff the user has initialized +// Google Test. Useful for catching the user mistake of not initializing +// Google Test before calling RUN_ALL_TESTS(). +// +// A user must call testing::InitGoogleTest() to initialize Google +// Test. g_init_gtest_count is set to the number of times +// InitGoogleTest() has been called. We don't protect this variable +// under a mutex as it is only accessed in the main thread. +GTEST_API_ int g_init_gtest_count = 0; +static bool GTestIsInitialized() { return g_init_gtest_count != 0; } + +// Iterates over a vector of TestCases, keeping a running sum of the +// results of calling a given int-returning method on each. +// Returns the sum. +static int SumOverTestCaseList(const std::vector& case_list, + int (TestCase::*method)() const) { + int sum = 0; + for (size_t i = 0; i < case_list.size(); i++) { + sum += (case_list[i]->*method)(); + } + return sum; +} + +// Returns true iff the test case passed. +static bool TestCasePassed(const TestCase* test_case) { + return test_case->should_run() && test_case->Passed(); +} + +// Returns true iff the test case failed. +static bool TestCaseFailed(const TestCase* test_case) { + return test_case->should_run() && test_case->Failed(); +} + +// Returns true iff test_case contains at least one test that should +// run. +static bool ShouldRunTestCase(const TestCase* test_case) { + return test_case->should_run(); +} + +// AssertHelper constructor. +AssertHelper::AssertHelper(TestPartResult::Type type, + const char* file, + int line, + const char* message) + : data_(new AssertHelperData(type, file, line, message)) { +} + +AssertHelper::~AssertHelper() { + delete data_; +} + +// Message assignment, for assertion streaming support. +void AssertHelper::operator=(const Message& message) const { + UnitTest::GetInstance()-> + AddTestPartResult(data_->type, data_->file, data_->line, + AppendUserMessage(data_->message, message), + UnitTest::GetInstance()->impl() + ->CurrentOsStackTraceExceptTop(1) + // Skips the stack frame for this function itself. + ); // NOLINT +} + +// Mutex for linked pointers. +GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_(g_linked_ptr_mutex); + +// Application pathname gotten in InitGoogleTest. +std::string g_executable_path; + +// Returns the current application's name, removing directory path if that +// is present. +FilePath GetCurrentExecutableName() { + FilePath result; + +#if GTEST_OS_WINDOWS + result.Set(FilePath(g_executable_path).RemoveExtension("exe")); +#else + result.Set(FilePath(g_executable_path)); +#endif // GTEST_OS_WINDOWS + + return result.RemoveDirectoryName(); +} + +// Functions for processing the gtest_output flag. + +// Returns the output format, or "" for normal printed output. +std::string UnitTestOptions::GetOutputFormat() { + const char* const gtest_output_flag = GTEST_FLAG(output).c_str(); + if (gtest_output_flag == NULL) return std::string(""); + + const char* const colon = strchr(gtest_output_flag, ':'); + return (colon == NULL) ? + std::string(gtest_output_flag) : + std::string(gtest_output_flag, colon - gtest_output_flag); +} + +// Returns the name of the requested output file, or the default if none +// was explicitly specified. +std::string UnitTestOptions::GetAbsolutePathToOutputFile() { + const char* const gtest_output_flag = GTEST_FLAG(output).c_str(); + if (gtest_output_flag == NULL) + return ""; + + const char* const colon = strchr(gtest_output_flag, ':'); + if (colon == NULL) + return internal::FilePath::ConcatPaths( + internal::FilePath( + UnitTest::GetInstance()->original_working_dir()), + internal::FilePath(kDefaultOutputFile)).string(); + + internal::FilePath output_name(colon + 1); + if (!output_name.IsAbsolutePath()) + // TODO(wan@google.com): on Windows \some\path is not an absolute + // path (as its meaning depends on the current drive), yet the + // following logic for turning it into an absolute path is wrong. + // Fix it. + output_name = internal::FilePath::ConcatPaths( + internal::FilePath(UnitTest::GetInstance()->original_working_dir()), + internal::FilePath(colon + 1)); + + if (!output_name.IsDirectory()) + return output_name.string(); + + internal::FilePath result(internal::FilePath::GenerateUniqueFileName( + output_name, internal::GetCurrentExecutableName(), + GetOutputFormat().c_str())); + return result.string(); +} + +// Returns true iff the wildcard pattern matches the string. The +// first ':' or '\0' character in pattern marks the end of it. +// +// This recursive algorithm isn't very efficient, but is clear and +// works well enough for matching test names, which are short. +bool UnitTestOptions::PatternMatchesString(const char *pattern, + const char *str) { + switch (*pattern) { + case '\0': + case ':': // Either ':' or '\0' marks the end of the pattern. + return *str == '\0'; + case '?': // Matches any single character. + return *str != '\0' && PatternMatchesString(pattern + 1, str + 1); + case '*': // Matches any string (possibly empty) of characters. + return (*str != '\0' && PatternMatchesString(pattern, str + 1)) || + PatternMatchesString(pattern + 1, str); + default: // Non-special character. Matches itself. + return *pattern == *str && + PatternMatchesString(pattern + 1, str + 1); + } +} + +bool UnitTestOptions::MatchesFilter( + const std::string& name, const char* filter) { + const char *cur_pattern = filter; + for (;;) { + if (PatternMatchesString(cur_pattern, name.c_str())) { + return true; + } + + // Finds the next pattern in the filter. + cur_pattern = strchr(cur_pattern, ':'); + + // Returns if no more pattern can be found. + if (cur_pattern == NULL) { + return false; + } + + // Skips the pattern separater (the ':' character). + cur_pattern++; + } +} + +// Returns true iff the user-specified filter matches the test case +// name and the test name. +bool UnitTestOptions::FilterMatchesTest(const std::string &test_case_name, + const std::string &test_name) { + const std::string& full_name = test_case_name + "." + test_name.c_str(); + + // Split --gtest_filter at '-', if there is one, to separate into + // positive filter and negative filter portions + const char* const p = GTEST_FLAG(filter).c_str(); + const char* const dash = strchr(p, '-'); + std::string positive; + std::string negative; + if (dash == NULL) { + positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter + negative = ""; + } else { + positive = std::string(p, dash); // Everything up to the dash + negative = std::string(dash + 1); // Everything after the dash + if (positive.empty()) { + // Treat '-test1' as the same as '*-test1' + positive = kUniversalFilter; + } + } + + // A filter is a colon-separated list of patterns. It matches a + // test if any pattern in it matches the test. + return (MatchesFilter(full_name, positive.c_str()) && + !MatchesFilter(full_name, negative.c_str())); +} + +#if GTEST_HAS_SEH +// Returns EXCEPTION_EXECUTE_HANDLER if Google Test should handle the +// given SEH exception, or EXCEPTION_CONTINUE_SEARCH otherwise. +// This function is useful as an __except condition. +int UnitTestOptions::GTestShouldProcessSEH(DWORD exception_code) { + // Google Test should handle a SEH exception if: + // 1. the user wants it to, AND + // 2. this is not a breakpoint exception, AND + // 3. this is not a C++ exception (VC++ implements them via SEH, + // apparently). + // + // SEH exception code for C++ exceptions. + // (see http://support.microsoft.com/kb/185294 for more information). + const DWORD kCxxExceptionCode = 0xe06d7363; + + bool should_handle = true; + + if (!GTEST_FLAG(catch_exceptions)) + should_handle = false; + else if (exception_code == EXCEPTION_BREAKPOINT) + should_handle = false; + else if (exception_code == kCxxExceptionCode) + should_handle = false; + + return should_handle ? EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH; +} +#endif // GTEST_HAS_SEH + +} // namespace internal + +// The c'tor sets this object as the test part result reporter used by +// Google Test. The 'result' parameter specifies where to report the +// results. Intercepts only failures from the current thread. +ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter( + TestPartResultArray* result) + : intercept_mode_(INTERCEPT_ONLY_CURRENT_THREAD), + result_(result) { + Init(); +} + +// The c'tor sets this object as the test part result reporter used by +// Google Test. The 'result' parameter specifies where to report the +// results. +ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter( + InterceptMode intercept_mode, TestPartResultArray* result) + : intercept_mode_(intercept_mode), + result_(result) { + Init(); +} + +void ScopedFakeTestPartResultReporter::Init() { + internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); + if (intercept_mode_ == INTERCEPT_ALL_THREADS) { + old_reporter_ = impl->GetGlobalTestPartResultReporter(); + impl->SetGlobalTestPartResultReporter(this); + } else { + old_reporter_ = impl->GetTestPartResultReporterForCurrentThread(); + impl->SetTestPartResultReporterForCurrentThread(this); + } +} + +// The d'tor restores the test part result reporter used by Google Test +// before. +ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter() { + internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); + if (intercept_mode_ == INTERCEPT_ALL_THREADS) { + impl->SetGlobalTestPartResultReporter(old_reporter_); + } else { + impl->SetTestPartResultReporterForCurrentThread(old_reporter_); + } +} + +// Increments the test part result count and remembers the result. +// This method is from the TestPartResultReporterInterface interface. +void ScopedFakeTestPartResultReporter::ReportTestPartResult( + const TestPartResult& result) { + result_->Append(result); +} + +namespace internal { + +// Returns the type ID of ::testing::Test. We should always call this +// instead of GetTypeId< ::testing::Test>() to get the type ID of +// testing::Test. This is to work around a suspected linker bug when +// using Google Test as a framework on Mac OS X. The bug causes +// GetTypeId< ::testing::Test>() to return different values depending +// on whether the call is from the Google Test framework itself or +// from user test code. GetTestTypeId() is guaranteed to always +// return the same value, as it always calls GetTypeId<>() from the +// gtest.cc, which is within the Google Test framework. +TypeId GetTestTypeId() { + return GetTypeId(); +} + +// The value of GetTestTypeId() as seen from within the Google Test +// library. This is solely for testing GetTestTypeId(). +extern const TypeId kTestTypeIdInGoogleTest = GetTestTypeId(); + +// This predicate-formatter checks that 'results' contains a test part +// failure of the given type and that the failure message contains the +// given substring. +AssertionResult HasOneFailure(const char* /* results_expr */, + const char* /* type_expr */, + const char* /* substr_expr */, + const TestPartResultArray& results, + TestPartResult::Type type, + const string& substr) { + const std::string expected(type == TestPartResult::kFatalFailure ? + "1 fatal failure" : + "1 non-fatal failure"); + Message msg; + if (results.size() != 1) { + msg << "Expected: " << expected << "\n" + << " Actual: " << results.size() << " failures"; + for (int i = 0; i < results.size(); i++) { + msg << "\n" << results.GetTestPartResult(i); + } + return AssertionFailure() << msg; + } + + const TestPartResult& r = results.GetTestPartResult(0); + if (r.type() != type) { + return AssertionFailure() << "Expected: " << expected << "\n" + << " Actual:\n" + << r; + } + + if (strstr(r.message(), substr.c_str()) == NULL) { + return AssertionFailure() << "Expected: " << expected << " containing \"" + << substr << "\"\n" + << " Actual:\n" + << r; + } + + return AssertionSuccess(); +} + +// The constructor of SingleFailureChecker remembers where to look up +// test part results, what type of failure we expect, and what +// substring the failure message should contain. +SingleFailureChecker:: SingleFailureChecker( + const TestPartResultArray* results, + TestPartResult::Type type, + const string& substr) + : results_(results), + type_(type), + substr_(substr) {} + +// The destructor of SingleFailureChecker verifies that the given +// TestPartResultArray contains exactly one failure that has the given +// type and contains the given substring. If that's not the case, a +// non-fatal failure will be generated. +SingleFailureChecker::~SingleFailureChecker() { + EXPECT_PRED_FORMAT3(HasOneFailure, *results_, type_, substr_); +} + +DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter( + UnitTestImpl* unit_test) : unit_test_(unit_test) {} + +void DefaultGlobalTestPartResultReporter::ReportTestPartResult( + const TestPartResult& result) { + unit_test_->current_test_result()->AddTestPartResult(result); + unit_test_->listeners()->repeater()->OnTestPartResult(result); +} + +DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter( + UnitTestImpl* unit_test) : unit_test_(unit_test) {} + +void DefaultPerThreadTestPartResultReporter::ReportTestPartResult( + const TestPartResult& result) { + unit_test_->GetGlobalTestPartResultReporter()->ReportTestPartResult(result); +} + +// Returns the global test part result reporter. +TestPartResultReporterInterface* +UnitTestImpl::GetGlobalTestPartResultReporter() { + internal::MutexLock lock(&global_test_part_result_reporter_mutex_); + return global_test_part_result_repoter_; +} + +// Sets the global test part result reporter. +void UnitTestImpl::SetGlobalTestPartResultReporter( + TestPartResultReporterInterface* reporter) { + internal::MutexLock lock(&global_test_part_result_reporter_mutex_); + global_test_part_result_repoter_ = reporter; +} + +// Returns the test part result reporter for the current thread. +TestPartResultReporterInterface* +UnitTestImpl::GetTestPartResultReporterForCurrentThread() { + return per_thread_test_part_result_reporter_.get(); +} + +// Sets the test part result reporter for the current thread. +void UnitTestImpl::SetTestPartResultReporterForCurrentThread( + TestPartResultReporterInterface* reporter) { + per_thread_test_part_result_reporter_.set(reporter); +} + +// Gets the number of successful test cases. +int UnitTestImpl::successful_test_case_count() const { + return CountIf(test_cases_, TestCasePassed); +} + +// Gets the number of failed test cases. +int UnitTestImpl::failed_test_case_count() const { + return CountIf(test_cases_, TestCaseFailed); +} + +// Gets the number of all test cases. +int UnitTestImpl::total_test_case_count() const { + return static_cast(test_cases_.size()); +} + +// Gets the number of all test cases that contain at least one test +// that should run. +int UnitTestImpl::test_case_to_run_count() const { + return CountIf(test_cases_, ShouldRunTestCase); +} + +// Gets the number of successful tests. +int UnitTestImpl::successful_test_count() const { + return SumOverTestCaseList(test_cases_, &TestCase::successful_test_count); +} + +// Gets the number of failed tests. +int UnitTestImpl::failed_test_count() const { + return SumOverTestCaseList(test_cases_, &TestCase::failed_test_count); +} + +// Gets the number of disabled tests that will be reported in the XML report. +int UnitTestImpl::reportable_disabled_test_count() const { + return SumOverTestCaseList(test_cases_, + &TestCase::reportable_disabled_test_count); +} + +// Gets the number of disabled tests. +int UnitTestImpl::disabled_test_count() const { + return SumOverTestCaseList(test_cases_, &TestCase::disabled_test_count); +} + +// Gets the number of tests to be printed in the XML report. +int UnitTestImpl::reportable_test_count() const { + return SumOverTestCaseList(test_cases_, &TestCase::reportable_test_count); +} + +// Gets the number of all tests. +int UnitTestImpl::total_test_count() const { + return SumOverTestCaseList(test_cases_, &TestCase::total_test_count); +} + +// Gets the number of tests that should run. +int UnitTestImpl::test_to_run_count() const { + return SumOverTestCaseList(test_cases_, &TestCase::test_to_run_count); +} + +// Returns the current OS stack trace as an std::string. +// +// The maximum number of stack frames to be included is specified by +// the gtest_stack_trace_depth flag. The skip_count parameter +// specifies the number of top frames to be skipped, which doesn't +// count against the number of frames to be included. +// +// For example, if Foo() calls Bar(), which in turn calls +// CurrentOsStackTraceExceptTop(1), Foo() will be included in the +// trace but Bar() and CurrentOsStackTraceExceptTop() won't. +std::string UnitTestImpl::CurrentOsStackTraceExceptTop(int skip_count) { + (void)skip_count; + return ""; +} + +// Returns the current time in milliseconds. +TimeInMillis GetTimeInMillis() { +#if GTEST_OS_WINDOWS_MOBILE || defined(__BORLANDC__) + // Difference between 1970-01-01 and 1601-01-01 in milliseconds. + // http://analogous.blogspot.com/2005/04/epoch.html + const TimeInMillis kJavaEpochToWinFileTimeDelta = + static_cast(116444736UL) * 100000UL; + const DWORD kTenthMicrosInMilliSecond = 10000; + + SYSTEMTIME now_systime; + FILETIME now_filetime; + ULARGE_INTEGER now_int64; + // TODO(kenton@google.com): Shouldn't this just use + // GetSystemTimeAsFileTime()? + GetSystemTime(&now_systime); + if (SystemTimeToFileTime(&now_systime, &now_filetime)) { + now_int64.LowPart = now_filetime.dwLowDateTime; + now_int64.HighPart = now_filetime.dwHighDateTime; + now_int64.QuadPart = (now_int64.QuadPart / kTenthMicrosInMilliSecond) - + kJavaEpochToWinFileTimeDelta; + return now_int64.QuadPart; + } + return 0; +#elif GTEST_OS_WINDOWS && !GTEST_HAS_GETTIMEOFDAY_ + __timeb64 now; + +# ifdef _MSC_VER + + // MSVC 8 deprecates _ftime64(), so we want to suppress warning 4996 + // (deprecated function) there. + // TODO(kenton@google.com): Use GetTickCount()? Or use + // SystemTimeToFileTime() +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4996) // Temporarily disables warning 4996. + _ftime64(&now); +# pragma warning(pop) // Restores the warning state. +# else + + _ftime64(&now); + +# endif // _MSC_VER + + return static_cast(now.time) * 1000 + now.millitm; +#elif GTEST_HAS_GETTIMEOFDAY_ + struct timeval now; + gettimeofday(&now, NULL); + return static_cast(now.tv_sec) * 1000 + now.tv_usec / 1000; +#else +# error "Don't know how to get the current time on your system." +#endif +} + +// Utilities + +// class String. + +#if GTEST_OS_WINDOWS_MOBILE +// Creates a UTF-16 wide string from the given ANSI string, allocating +// memory using new. The caller is responsible for deleting the return +// value using delete[]. Returns the wide string, or NULL if the +// input is NULL. +LPCWSTR String::AnsiToUtf16(const char* ansi) { + if (!ansi) return NULL; + const int length = strlen(ansi); + const int unicode_length = + MultiByteToWideChar(CP_ACP, 0, ansi, length, + NULL, 0); + WCHAR* unicode = new WCHAR[unicode_length + 1]; + MultiByteToWideChar(CP_ACP, 0, ansi, length, + unicode, unicode_length); + unicode[unicode_length] = 0; + return unicode; +} + +// Creates an ANSI string from the given wide string, allocating +// memory using new. The caller is responsible for deleting the return +// value using delete[]. Returns the ANSI string, or NULL if the +// input is NULL. +const char* String::Utf16ToAnsi(LPCWSTR utf16_str) { + if (!utf16_str) return NULL; + const int ansi_length = + WideCharToMultiByte(CP_ACP, 0, utf16_str, -1, + NULL, 0, NULL, NULL); + char* ansi = new char[ansi_length + 1]; + WideCharToMultiByte(CP_ACP, 0, utf16_str, -1, + ansi, ansi_length, NULL, NULL); + ansi[ansi_length] = 0; + return ansi; +} + +#endif // GTEST_OS_WINDOWS_MOBILE + +// Compares two C strings. Returns true iff they have the same content. +// +// Unlike strcmp(), this function can handle NULL argument(s). A NULL +// C string is considered different to any non-NULL C string, +// including the empty string. +bool String::CStringEquals(const char * lhs, const char * rhs) { + if ( lhs == NULL ) return rhs == NULL; + + if ( rhs == NULL ) return false; + + return strcmp(lhs, rhs) == 0; +} + +#if GTEST_HAS_STD_WSTRING || GTEST_HAS_GLOBAL_WSTRING + +// Converts an array of wide chars to a narrow string using the UTF-8 +// encoding, and streams the result to the given Message object. +static void StreamWideCharsToMessage(const wchar_t* wstr, size_t length, + Message* msg) { + for (size_t i = 0; i != length; ) { // NOLINT + if (wstr[i] != L'\0') { + *msg << WideStringToUtf8(wstr + i, static_cast(length - i)); + while (i != length && wstr[i] != L'\0') + i++; + } else { + *msg << '\0'; + i++; + } + } +} + +#endif // GTEST_HAS_STD_WSTRING || GTEST_HAS_GLOBAL_WSTRING + +} // namespace internal + +// Constructs an empty Message. +// We allocate the stringstream separately because otherwise each use of +// ASSERT/EXPECT in a procedure adds over 200 bytes to the procedure's +// stack frame leading to huge stack frames in some cases; gcc does not reuse +// the stack space. +Message::Message() : ss_(new ::std::stringstream) { + // By default, we want there to be enough precision when printing + // a double to a Message. + *ss_ << std::setprecision(std::numeric_limits::digits10 + 2); +} + +// These two overloads allow streaming a wide C string to a Message +// using the UTF-8 encoding. +Message& Message::operator <<(const wchar_t* wide_c_str) { + return *this << internal::String::ShowWideCString(wide_c_str); +} +Message& Message::operator <<(wchar_t* wide_c_str) { + return *this << internal::String::ShowWideCString(wide_c_str); +} + +#if GTEST_HAS_STD_WSTRING +// Converts the given wide string to a narrow string using the UTF-8 +// encoding, and streams the result to this Message object. +Message& Message::operator <<(const ::std::wstring& wstr) { + internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this); + return *this; +} +#endif // GTEST_HAS_STD_WSTRING + +#if GTEST_HAS_GLOBAL_WSTRING +// Converts the given wide string to a narrow string using the UTF-8 +// encoding, and streams the result to this Message object. +Message& Message::operator <<(const ::wstring& wstr) { + internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this); + return *this; +} +#endif // GTEST_HAS_GLOBAL_WSTRING + +// Gets the text streamed to this object so far as an std::string. +// Each '\0' character in the buffer is replaced with "\\0". +std::string Message::GetString() const { + return internal::StringStreamToString(ss_.get()); +} + +// AssertionResult constructors. +// Used in EXPECT_TRUE/FALSE(assertion_result). +AssertionResult::AssertionResult(const AssertionResult& other) + : success_(other.success_), + message_(other.message_.get() != NULL ? + new ::std::string(*other.message_) : + static_cast< ::std::string*>(NULL)) { +} + +// Returns the assertion's negation. Used with EXPECT/ASSERT_FALSE. +AssertionResult AssertionResult::operator!() const { + AssertionResult negation(!success_); + if (message_.get() != NULL) + negation << *message_; + return negation; +} + +// Makes a successful assertion result. +AssertionResult AssertionSuccess() { + return AssertionResult(true); +} + +// Makes a failed assertion result. +AssertionResult AssertionFailure() { + return AssertionResult(false); +} + +// Makes a failed assertion result with the given failure message. +// Deprecated; use AssertionFailure() << message. +AssertionResult AssertionFailure(const Message& message) { + return AssertionFailure() << message; +} + +namespace internal { + +// Constructs and returns the message for an equality assertion +// (e.g. ASSERT_EQ, EXPECT_STREQ, etc) failure. +// +// The first four parameters are the expressions used in the assertion +// and their values, as strings. For example, for ASSERT_EQ(foo, bar) +// where foo is 5 and bar is 6, we have: +// +// expected_expression: "foo" +// actual_expression: "bar" +// expected_value: "5" +// actual_value: "6" +// +// The ignoring_case parameter is true iff the assertion is a +// *_STRCASEEQ*. When it's true, the string " (ignoring case)" will +// be inserted into the message. +AssertionResult EqFailure(const char* expected_expression, + const char* actual_expression, + const std::string& expected_value, + const std::string& actual_value, + bool ignoring_case) { + Message msg; + msg << "Value of: " << actual_expression; + if (actual_value != actual_expression) { + msg << "\n Actual: " << actual_value; + } + + msg << "\nExpected: " << expected_expression; + if (ignoring_case) { + msg << " (ignoring case)"; + } + if (expected_value != expected_expression) { + msg << "\nWhich is: " << expected_value; + } + + return AssertionFailure() << msg; +} + +// Constructs a failure message for Boolean assertions such as EXPECT_TRUE. +std::string GetBoolAssertionFailureMessage( + const AssertionResult& assertion_result, + const char* expression_text, + const char* actual_predicate_value, + const char* expected_predicate_value) { + const char* actual_message = assertion_result.message(); + Message msg; + msg << "Value of: " << expression_text + << "\n Actual: " << actual_predicate_value; + if (actual_message[0] != '\0') + msg << " (" << actual_message << ")"; + msg << "\nExpected: " << expected_predicate_value; + return msg.GetString(); +} + +// Helper function for implementing ASSERT_NEAR. +AssertionResult DoubleNearPredFormat(const char* expr1, + const char* expr2, + const char* abs_error_expr, + double val1, + double val2, + double abs_error) { + const double diff = fabs(val1 - val2); + if (diff <= abs_error) return AssertionSuccess(); + + // TODO(wan): do not print the value of an expression if it's + // already a literal. + return AssertionFailure() + << "The difference between " << expr1 << " and " << expr2 + << " is " << diff << ", which exceeds " << abs_error_expr << ", where\n" + << expr1 << " evaluates to " << val1 << ",\n" + << expr2 << " evaluates to " << val2 << ", and\n" + << abs_error_expr << " evaluates to " << abs_error << "."; +} + + +// Helper template for implementing FloatLE() and DoubleLE(). +template +AssertionResult FloatingPointLE(const char* expr1, + const char* expr2, + RawType val1, + RawType val2) { + // Returns success if val1 is less than val2, + if (val1 < val2) { + return AssertionSuccess(); + } + + // or if val1 is almost equal to val2. + const FloatingPoint lhs(val1), rhs(val2); + if (lhs.AlmostEquals(rhs)) { + return AssertionSuccess(); + } + + // Note that the above two checks will both fail if either val1 or + // val2 is NaN, as the IEEE floating-point standard requires that + // any predicate involving a NaN must return false. + + ::std::stringstream val1_ss; + val1_ss << std::setprecision(std::numeric_limits::digits10 + 2) + << val1; + + ::std::stringstream val2_ss; + val2_ss << std::setprecision(std::numeric_limits::digits10 + 2) + << val2; + + return AssertionFailure() + << "Expected: (" << expr1 << ") <= (" << expr2 << ")\n" + << " Actual: " << StringStreamToString(&val1_ss) << " vs " + << StringStreamToString(&val2_ss); +} + +} // namespace internal + +// Asserts that val1 is less than, or almost equal to, val2. Fails +// otherwise. In particular, it fails if either val1 or val2 is NaN. +AssertionResult FloatLE(const char* expr1, const char* expr2, + float val1, float val2) { + return internal::FloatingPointLE(expr1, expr2, val1, val2); +} + +// Asserts that val1 is less than, or almost equal to, val2. Fails +// otherwise. In particular, it fails if either val1 or val2 is NaN. +AssertionResult DoubleLE(const char* expr1, const char* expr2, + double val1, double val2) { + return internal::FloatingPointLE(expr1, expr2, val1, val2); +} + +namespace internal { + +// The helper function for {ASSERT|EXPECT}_EQ with int or enum +// arguments. +AssertionResult CmpHelperEQ(const char* expected_expression, + const char* actual_expression, + BiggestInt expected, + BiggestInt actual) { + if (expected == actual) { + return AssertionSuccess(); + } + + return EqFailure(expected_expression, + actual_expression, + FormatForComparisonFailureMessage(expected, actual), + FormatForComparisonFailureMessage(actual, expected), + false); +} + +// A macro for implementing the helper functions needed to implement +// ASSERT_?? and EXPECT_?? with integer or enum arguments. It is here +// just to avoid copy-and-paste of similar code. +#define GTEST_IMPL_CMP_HELPER_(op_name, op)\ +AssertionResult CmpHelper##op_name(const char* expr1, const char* expr2, \ + BiggestInt val1, BiggestInt val2) {\ + if (val1 op val2) {\ + return AssertionSuccess();\ + } else {\ + return AssertionFailure() \ + << "Expected: (" << expr1 << ") " #op " (" << expr2\ + << "), actual: " << FormatForComparisonFailureMessage(val1, val2)\ + << " vs " << FormatForComparisonFailureMessage(val2, val1);\ + }\ +} + +// Implements the helper function for {ASSERT|EXPECT}_NE with int or +// enum arguments. +GTEST_IMPL_CMP_HELPER_(NE, !=) +// Implements the helper function for {ASSERT|EXPECT}_LE with int or +// enum arguments. +GTEST_IMPL_CMP_HELPER_(LE, <=) +// Implements the helper function for {ASSERT|EXPECT}_LT with int or +// enum arguments. +GTEST_IMPL_CMP_HELPER_(LT, < ) +// Implements the helper function for {ASSERT|EXPECT}_GE with int or +// enum arguments. +GTEST_IMPL_CMP_HELPER_(GE, >=) +// Implements the helper function for {ASSERT|EXPECT}_GT with int or +// enum arguments. +GTEST_IMPL_CMP_HELPER_(GT, > ) + +#undef GTEST_IMPL_CMP_HELPER_ + +// The helper function for {ASSERT|EXPECT}_STREQ. +AssertionResult CmpHelperSTREQ(const char* expected_expression, + const char* actual_expression, + const char* expected, + const char* actual) { + if (String::CStringEquals(expected, actual)) { + return AssertionSuccess(); + } + + return EqFailure(expected_expression, + actual_expression, + PrintToString(expected), + PrintToString(actual), + false); +} + +// The helper function for {ASSERT|EXPECT}_STRCASEEQ. +AssertionResult CmpHelperSTRCASEEQ(const char* expected_expression, + const char* actual_expression, + const char* expected, + const char* actual) { + if (String::CaseInsensitiveCStringEquals(expected, actual)) { + return AssertionSuccess(); + } + + return EqFailure(expected_expression, + actual_expression, + PrintToString(expected), + PrintToString(actual), + true); +} + +// The helper function for {ASSERT|EXPECT}_STRNE. +AssertionResult CmpHelperSTRNE(const char* s1_expression, + const char* s2_expression, + const char* s1, + const char* s2) { + if (!String::CStringEquals(s1, s2)) { + return AssertionSuccess(); + } else { + return AssertionFailure() << "Expected: (" << s1_expression << ") != (" + << s2_expression << "), actual: \"" + << s1 << "\" vs \"" << s2 << "\""; + } +} + +// The helper function for {ASSERT|EXPECT}_STRCASENE. +AssertionResult CmpHelperSTRCASENE(const char* s1_expression, + const char* s2_expression, + const char* s1, + const char* s2) { + if (!String::CaseInsensitiveCStringEquals(s1, s2)) { + return AssertionSuccess(); + } else { + return AssertionFailure() + << "Expected: (" << s1_expression << ") != (" + << s2_expression << ") (ignoring case), actual: \"" + << s1 << "\" vs \"" << s2 << "\""; + } +} + +} // namespace internal + +namespace { + +// Helper functions for implementing IsSubString() and IsNotSubstring(). + +// This group of overloaded functions return true iff needle is a +// substring of haystack. NULL is considered a substring of itself +// only. + +bool IsSubstringPred(const char* needle, const char* haystack) { + if (needle == NULL || haystack == NULL) + return needle == haystack; + + return strstr(haystack, needle) != NULL; +} + +bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { + if (needle == NULL || haystack == NULL) + return needle == haystack; + + return wcsstr(haystack, needle) != NULL; +} + +// StringType here can be either ::std::string or ::std::wstring. +template +bool IsSubstringPred(const StringType& needle, + const StringType& haystack) { + return haystack.find(needle) != StringType::npos; +} + +// This function implements either IsSubstring() or IsNotSubstring(), +// depending on the value of the expected_to_be_substring parameter. +// StringType here can be const char*, const wchar_t*, ::std::string, +// or ::std::wstring. +template +AssertionResult IsSubstringImpl( + bool expected_to_be_substring, + const char* needle_expr, const char* haystack_expr, + const StringType& needle, const StringType& haystack) { + if (IsSubstringPred(needle, haystack) == expected_to_be_substring) + return AssertionSuccess(); + + const bool is_wide_string = sizeof(needle[0]) > 1; + const char* const begin_string_quote = is_wide_string ? "L\"" : "\""; + return AssertionFailure() + << "Value of: " << needle_expr << "\n" + << " Actual: " << begin_string_quote << needle << "\"\n" + << "Expected: " << (expected_to_be_substring ? "" : "not ") + << "a substring of " << haystack_expr << "\n" + << "Which is: " << begin_string_quote << haystack << "\""; +} + +} // namespace + +// IsSubstring() and IsNotSubstring() check whether needle is a +// substring of haystack (NULL is considered a substring of itself +// only), and return an appropriate error message when they fail. + +AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const char* needle, const char* haystack) { + return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); +} + +AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const wchar_t* needle, const wchar_t* haystack) { + return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); +} + +AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const char* needle, const char* haystack) { + return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); +} + +AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const wchar_t* needle, const wchar_t* haystack) { + return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); +} + +AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::string& needle, const ::std::string& haystack) { + return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); +} + +AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::string& needle, const ::std::string& haystack) { + return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); +} + +#if GTEST_HAS_STD_WSTRING +AssertionResult IsSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::wstring& needle, const ::std::wstring& haystack) { + return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); +} + +AssertionResult IsNotSubstring( + const char* needle_expr, const char* haystack_expr, + const ::std::wstring& needle, const ::std::wstring& haystack) { + return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); +} +#endif // GTEST_HAS_STD_WSTRING + +namespace internal { + +#if GTEST_OS_WINDOWS + +namespace { + +// Helper function for IsHRESULT{SuccessFailure} predicates +AssertionResult HRESULTFailureHelper(const char* expr, + const char* expected, + long hr) { // NOLINT +# if GTEST_OS_WINDOWS_MOBILE + + // Windows CE doesn't support FormatMessage. + const char error_text[] = ""; + +# else + + // Looks up the human-readable system message for the HRESULT code + // and since we're not passing any params to FormatMessage, we don't + // want inserts expanded. + const DWORD kFlags = FORMAT_MESSAGE_FROM_SYSTEM | + FORMAT_MESSAGE_IGNORE_INSERTS; + const DWORD kBufSize = 4096; + // Gets the system's human readable message string for this HRESULT. + char error_text[kBufSize] = { '\0' }; + DWORD message_length = ::FormatMessageA(kFlags, + 0, // no source, we're asking system + hr, // the error + 0, // no line width restrictions + error_text, // output buffer + kBufSize, // buf size + NULL); // no arguments for inserts + // Trims tailing white space (FormatMessage leaves a trailing CR-LF) + for (; message_length && IsSpace(error_text[message_length - 1]); + --message_length) { + error_text[message_length - 1] = '\0'; + } + +# endif // GTEST_OS_WINDOWS_MOBILE + + const std::string error_hex("0x" + String::FormatHexInt(hr)); + return ::testing::AssertionFailure() + << "Expected: " << expr << " " << expected << ".\n" + << " Actual: " << error_hex << " " << error_text << "\n"; +} + +} // namespace + +AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT + if (SUCCEEDED(hr)) { + return AssertionSuccess(); + } + return HRESULTFailureHelper(expr, "succeeds", hr); +} + +AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT + if (FAILED(hr)) { + return AssertionSuccess(); + } + return HRESULTFailureHelper(expr, "fails", hr); +} + +#endif // GTEST_OS_WINDOWS + +// Utility functions for encoding Unicode text (wide strings) in +// UTF-8. + +// A Unicode code-point can have upto 21 bits, and is encoded in UTF-8 +// like this: +// +// Code-point length Encoding +// 0 - 7 bits 0xxxxxxx +// 8 - 11 bits 110xxxxx 10xxxxxx +// 12 - 16 bits 1110xxxx 10xxxxxx 10xxxxxx +// 17 - 21 bits 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx + +// The maximum code-point a one-byte UTF-8 sequence can represent. +const UInt32 kMaxCodePoint1 = (static_cast(1) << 7) - 1; + +// The maximum code-point a two-byte UTF-8 sequence can represent. +const UInt32 kMaxCodePoint2 = (static_cast(1) << (5 + 6)) - 1; + +// The maximum code-point a three-byte UTF-8 sequence can represent. +const UInt32 kMaxCodePoint3 = (static_cast(1) << (4 + 2*6)) - 1; + +// The maximum code-point a four-byte UTF-8 sequence can represent. +const UInt32 kMaxCodePoint4 = (static_cast(1) << (3 + 3*6)) - 1; + +// Chops off the n lowest bits from a bit pattern. Returns the n +// lowest bits. As a side effect, the original bit pattern will be +// shifted to the right by n bits. +inline UInt32 ChopLowBits(UInt32* bits, int n) { + const UInt32 low_bits = *bits & ((static_cast(1) << n) - 1); + *bits >>= n; + return low_bits; +} + +// Converts a Unicode code point to a narrow string in UTF-8 encoding. +// code_point parameter is of type UInt32 because wchar_t may not be +// wide enough to contain a code point. +// If the code_point is not a valid Unicode code point +// (i.e. outside of Unicode range U+0 to U+10FFFF) it will be converted +// to "(Invalid Unicode 0xXXXXXXXX)". +std::string CodePointToUtf8(UInt32 code_point) { + if (code_point > kMaxCodePoint4) { + return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")"; + } + + char str[5]; // Big enough for the largest valid code point. + if (code_point <= kMaxCodePoint1) { + str[1] = '\0'; + str[0] = static_cast(code_point); // 0xxxxxxx + } else if (code_point <= kMaxCodePoint2) { + str[2] = '\0'; + str[1] = static_cast(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx + str[0] = static_cast(0xC0 | code_point); // 110xxxxx + } else if (code_point <= kMaxCodePoint3) { + str[3] = '\0'; + str[2] = static_cast(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx + str[1] = static_cast(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx + str[0] = static_cast(0xE0 | code_point); // 1110xxxx + } else { // code_point <= kMaxCodePoint4 + str[4] = '\0'; + str[3] = static_cast(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx + str[2] = static_cast(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx + str[1] = static_cast(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx + str[0] = static_cast(0xF0 | code_point); // 11110xxx + } + return str; +} + +// The following two functions only make sense if the the system +// uses UTF-16 for wide string encoding. All supported systems +// with 16 bit wchar_t (Windows, Cygwin, Symbian OS) do use UTF-16. + +// Determines if the arguments constitute UTF-16 surrogate pair +// and thus should be combined into a single Unicode code point +// using CreateCodePointFromUtf16SurrogatePair. +inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) { + return sizeof(wchar_t) == 2 && + (first & 0xFC00) == 0xD800 && (second & 0xFC00) == 0xDC00; +} + +// Creates a Unicode code point from UTF16 surrogate pair. +inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first, + wchar_t second) { + const UInt32 mask = (1 << 10) - 1; + return (sizeof(wchar_t) == 2) ? + (((first & mask) << 10) | (second & mask)) + 0x10000 : + // This function should not be called when the condition is + // false, but we provide a sensible default in case it is. + static_cast(first); +} + +// Converts a wide string to a narrow string in UTF-8 encoding. +// The wide string is assumed to have the following encoding: +// UTF-16 if sizeof(wchar_t) == 2 (on Windows, Cygwin, Symbian OS) +// UTF-32 if sizeof(wchar_t) == 4 (on Linux) +// Parameter str points to a null-terminated wide string. +// Parameter num_chars may additionally limit the number +// of wchar_t characters processed. -1 is used when the entire string +// should be processed. +// If the string contains code points that are not valid Unicode code points +// (i.e. outside of Unicode range U+0 to U+10FFFF) they will be output +// as '(Invalid Unicode 0xXXXXXXXX)'. If the string is in UTF16 encoding +// and contains invalid UTF-16 surrogate pairs, values in those pairs +// will be encoded as individual Unicode characters from Basic Normal Plane. +std::string WideStringToUtf8(const wchar_t* str, int num_chars) { + if (num_chars == -1) + num_chars = static_cast(wcslen(str)); + + ::std::stringstream stream; + for (int i = 0; i < num_chars; ++i) { + UInt32 unicode_code_point; + + if (str[i] == L'\0') { + break; + } else if (i + 1 < num_chars && IsUtf16SurrogatePair(str[i], str[i + 1])) { + unicode_code_point = CreateCodePointFromUtf16SurrogatePair(str[i], + str[i + 1]); + i++; + } else { + unicode_code_point = static_cast(str[i]); + } + + stream << CodePointToUtf8(unicode_code_point); + } + return StringStreamToString(&stream); +} + +// Converts a wide C string to an std::string using the UTF-8 encoding. +// NULL will be converted to "(null)". +std::string String::ShowWideCString(const wchar_t * wide_c_str) { + if (wide_c_str == NULL) return "(null)"; + + return internal::WideStringToUtf8(wide_c_str, -1); +} + +// Compares two wide C strings. Returns true iff they have the same +// content. +// +// Unlike wcscmp(), this function can handle NULL argument(s). A NULL +// C string is considered different to any non-NULL C string, +// including the empty string. +bool String::WideCStringEquals(const wchar_t * lhs, const wchar_t * rhs) { + if (lhs == NULL) return rhs == NULL; + + if (rhs == NULL) return false; + + return wcscmp(lhs, rhs) == 0; +} + +// Helper function for *_STREQ on wide strings. +AssertionResult CmpHelperSTREQ(const char* expected_expression, + const char* actual_expression, + const wchar_t* expected, + const wchar_t* actual) { + if (String::WideCStringEquals(expected, actual)) { + return AssertionSuccess(); + } + + return EqFailure(expected_expression, + actual_expression, + PrintToString(expected), + PrintToString(actual), + false); +} + +// Helper function for *_STRNE on wide strings. +AssertionResult CmpHelperSTRNE(const char* s1_expression, + const char* s2_expression, + const wchar_t* s1, + const wchar_t* s2) { + if (!String::WideCStringEquals(s1, s2)) { + return AssertionSuccess(); + } + + return AssertionFailure() << "Expected: (" << s1_expression << ") != (" + << s2_expression << "), actual: " + << PrintToString(s1) + << " vs " << PrintToString(s2); +} + +// Compares two C strings, ignoring case. Returns true iff they have +// the same content. +// +// Unlike strcasecmp(), this function can handle NULL argument(s). A +// NULL C string is considered different to any non-NULL C string, +// including the empty string. +bool String::CaseInsensitiveCStringEquals(const char * lhs, const char * rhs) { + if (lhs == NULL) + return rhs == NULL; + if (rhs == NULL) + return false; + return posix::StrCaseCmp(lhs, rhs) == 0; +} + + // Compares two wide C strings, ignoring case. Returns true iff they + // have the same content. + // + // Unlike wcscasecmp(), this function can handle NULL argument(s). + // A NULL C string is considered different to any non-NULL wide C string, + // including the empty string. + // NB: The implementations on different platforms slightly differ. + // On windows, this method uses _wcsicmp which compares according to LC_CTYPE + // environment variable. On GNU platform this method uses wcscasecmp + // which compares according to LC_CTYPE category of the current locale. + // On MacOS X, it uses towlower, which also uses LC_CTYPE category of the + // current locale. +bool String::CaseInsensitiveWideCStringEquals(const wchar_t* lhs, + const wchar_t* rhs) { + if (lhs == NULL) return rhs == NULL; + + if (rhs == NULL) return false; + +#if GTEST_OS_WINDOWS + return _wcsicmp(lhs, rhs) == 0; +#elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID + return wcscasecmp(lhs, rhs) == 0; +#else + // Android, Mac OS X and Cygwin don't define wcscasecmp. + // Other unknown OSes may not define it either. + wint_t left, right; + do { + left = towlower(*lhs++); + right = towlower(*rhs++); + } while (left && left == right); + return left == right; +#endif // OS selector +} + +// Returns true iff str ends with the given suffix, ignoring case. +// Any string is considered to end with an empty suffix. +bool String::EndsWithCaseInsensitive( + const std::string& str, const std::string& suffix) { + const size_t str_len = str.length(); + const size_t suffix_len = suffix.length(); + return (str_len >= suffix_len) && + CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, + suffix.c_str()); +} + +// Formats an int value as "%02d". +std::string String::FormatIntWidth2(int value) { + std::stringstream ss; + ss << std::setfill('0') << std::setw(2) << value; + return ss.str(); +} + +// Formats an int value as "%X". +std::string String::FormatHexInt(int value) { + std::stringstream ss; + ss << std::hex << std::uppercase << value; + return ss.str(); +} + +// Formats a byte as "%02X". +std::string String::FormatByte(unsigned char value) { + std::stringstream ss; + ss << std::setfill('0') << std::setw(2) << std::hex << std::uppercase + << static_cast(value); + return ss.str(); +} + +// Converts the buffer in a stringstream to an std::string, converting NUL +// bytes to "\\0" along the way. +std::string StringStreamToString(::std::stringstream* ss) { + const ::std::string& str = ss->str(); + const char* const start = str.c_str(); + const char* const end = start + str.length(); + + std::string result; + result.reserve(2 * (end - start)); + for (const char* ch = start; ch != end; ++ch) { + if (*ch == '\0') { + result += "\\0"; // Replaces NUL with "\\0"; + } else { + result += *ch; + } + } + + return result; +} + +// Appends the user-supplied message to the Google-Test-generated message. +std::string AppendUserMessage(const std::string& gtest_msg, + const Message& user_msg) { + // Appends the user message if it's non-empty. + const std::string user_msg_string = user_msg.GetString(); + if (user_msg_string.empty()) { + return gtest_msg; + } + + return gtest_msg + "\n" + user_msg_string; +} + +} // namespace internal + +// class TestResult + +// Creates an empty TestResult. +TestResult::TestResult() + : death_test_count_(0), + elapsed_time_(0) { +} + +// D'tor. +TestResult::~TestResult() { +} + +// Returns the i-th test part result among all the results. i can +// range from 0 to total_part_count() - 1. If i is not in that range, +// aborts the program. +const TestPartResult& TestResult::GetTestPartResult(int i) const { + if (i < 0 || i >= total_part_count()) + internal::posix::Abort(); + return test_part_results_.at(i); +} + +// Returns the i-th test property. i can range from 0 to +// test_property_count() - 1. If i is not in that range, aborts the +// program. +const TestProperty& TestResult::GetTestProperty(int i) const { + if (i < 0 || i >= test_property_count()) + internal::posix::Abort(); + return test_properties_.at(i); +} + +// Clears the test part results. +void TestResult::ClearTestPartResults() { + test_part_results_.clear(); +} + +// Adds a test part result to the list. +void TestResult::AddTestPartResult(const TestPartResult& test_part_result) { + test_part_results_.push_back(test_part_result); +} + +// Adds a test property to the list. If a property with the same key as the +// supplied property is already represented, the value of this test_property +// replaces the old value for that key. +void TestResult::RecordProperty(const std::string& xml_element, + const TestProperty& test_property) { + if (!ValidateTestProperty(xml_element, test_property)) { + return; + } + internal::MutexLock lock(&test_properites_mutex_); + const std::vector::iterator property_with_matching_key = + std::find_if(test_properties_.begin(), test_properties_.end(), + internal::TestPropertyKeyIs(test_property.key())); + if (property_with_matching_key == test_properties_.end()) { + test_properties_.push_back(test_property); + return; + } + property_with_matching_key->SetValue(test_property.value()); +} + +// The list of reserved attributes used in the element of XML +// output. +static const char* const kReservedTestSuitesAttributes[] = { + "disabled", + "errors", + "failures", + "name", + "random_seed", + "tests", + "time", + "timestamp" +}; + +// The list of reserved attributes used in the element of XML +// output. +static const char* const kReservedTestSuiteAttributes[] = { + "disabled", + "errors", + "failures", + "name", + "tests", + "time" +}; + +// The list of reserved attributes used in the element of XML output. +static const char* const kReservedTestCaseAttributes[] = { + "classname", + "name", + "status", + "time", + "type_param", + "value_param" +}; + +template +std::vector ArrayAsVector(const char* const (&array)[kSize]) { + return std::vector(array, array + kSize); +} + +static std::vector GetReservedAttributesForElement( + const std::string& xml_element) { + if (xml_element == "testsuites") { + return ArrayAsVector(kReservedTestSuitesAttributes); + } else if (xml_element == "testsuite") { + return ArrayAsVector(kReservedTestSuiteAttributes); + } else if (xml_element == "testcase") { + return ArrayAsVector(kReservedTestCaseAttributes); + } else { + GTEST_CHECK_(false) << "Unrecognized xml_element provided: " << xml_element; + } + // This code is unreachable but some compilers may not realizes that. + return std::vector(); +} + +static std::string FormatWordList(const std::vector& words) { + Message word_list; + for (size_t i = 0; i < words.size(); ++i) { + if (i > 0 && words.size() > 2) { + word_list << ", "; + } + if (i == words.size() - 1) { + word_list << "and "; + } + word_list << "'" << words[i] << "'"; + } + return word_list.GetString(); +} + +bool ValidateTestPropertyName(const std::string& property_name, + const std::vector& reserved_names) { + if (std::find(reserved_names.begin(), reserved_names.end(), property_name) != + reserved_names.end()) { + ADD_FAILURE() << "Reserved key used in RecordProperty(): " << property_name + << " (" << FormatWordList(reserved_names) + << " are reserved by " << GTEST_NAME_ << ")"; + return false; + } + return true; +} + +// Adds a failure if the key is a reserved attribute of the element named +// xml_element. Returns true if the property is valid. +bool TestResult::ValidateTestProperty(const std::string& xml_element, + const TestProperty& test_property) { + return ValidateTestPropertyName(test_property.key(), + GetReservedAttributesForElement(xml_element)); +} + +// Clears the object. +void TestResult::Clear() { + test_part_results_.clear(); + test_properties_.clear(); + death_test_count_ = 0; + elapsed_time_ = 0; +} + +// Returns true iff the test failed. +bool TestResult::Failed() const { + for (int i = 0; i < total_part_count(); ++i) { + if (GetTestPartResult(i).failed()) + return true; + } + return false; +} + +// Returns true iff the test part fatally failed. +static bool TestPartFatallyFailed(const TestPartResult& result) { + return result.fatally_failed(); +} + +// Returns true iff the test fatally failed. +bool TestResult::HasFatalFailure() const { + return CountIf(test_part_results_, TestPartFatallyFailed) > 0; +} + +// Returns true iff the test part non-fatally failed. +static bool TestPartNonfatallyFailed(const TestPartResult& result) { + return result.nonfatally_failed(); +} + +// Returns true iff the test has a non-fatal failure. +bool TestResult::HasNonfatalFailure() const { + return CountIf(test_part_results_, TestPartNonfatallyFailed) > 0; +} + +// Gets the number of all test parts. This is the sum of the number +// of successful test parts and the number of failed test parts. +int TestResult::total_part_count() const { + return static_cast(test_part_results_.size()); +} + +// Returns the number of the test properties. +int TestResult::test_property_count() const { + return static_cast(test_properties_.size()); +} + +// class Test + +// Creates a Test object. + +// The c'tor saves the values of all Google Test flags. +Test::Test() + : gtest_flag_saver_(new internal::GTestFlagSaver) { +} + +// The d'tor restores the values of all Google Test flags. +Test::~Test() { + delete gtest_flag_saver_; +} + +// Sets up the test fixture. +// +// A sub-class may override this. +void Test::SetUp() { +} + +// Tears down the test fixture. +// +// A sub-class may override this. +void Test::TearDown() { +} + +// Allows user supplied key value pairs to be recorded for later output. +void Test::RecordProperty(const std::string& key, const std::string& value) { + UnitTest::GetInstance()->RecordProperty(key, value); +} + +// Allows user supplied key value pairs to be recorded for later output. +void Test::RecordProperty(const std::string& key, int value) { + Message value_message; + value_message << value; + RecordProperty(key, value_message.GetString().c_str()); +} + +namespace internal { + +void ReportFailureInUnknownLocation(TestPartResult::Type result_type, + const std::string& message) { + // This function is a friend of UnitTest and as such has access to + // AddTestPartResult. + UnitTest::GetInstance()->AddTestPartResult( + result_type, + NULL, // No info about the source file where the exception occurred. + -1, // We have no info on which line caused the exception. + message, + ""); // No stack trace, either. +} + +} // namespace internal + +// Google Test requires all tests in the same test case to use the same test +// fixture class. This function checks if the current test has the +// same fixture class as the first test in the current test case. If +// yes, it returns true; otherwise it generates a Google Test failure and +// returns false. +bool Test::HasSameFixtureClass() { + internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); + const TestCase* const test_case = impl->current_test_case(); + + // Info about the first test in the current test case. + const TestInfo* const first_test_info = test_case->test_info_list()[0]; + const internal::TypeId first_fixture_id = first_test_info->fixture_class_id_; + const char* const first_test_name = first_test_info->name(); + + // Info about the current test. + const TestInfo* const this_test_info = impl->current_test_info(); + const internal::TypeId this_fixture_id = this_test_info->fixture_class_id_; + const char* const this_test_name = this_test_info->name(); + + if (this_fixture_id != first_fixture_id) { + // Is the first test defined using TEST? + const bool first_is_TEST = first_fixture_id == internal::GetTestTypeId(); + // Is this test defined using TEST? + const bool this_is_TEST = this_fixture_id == internal::GetTestTypeId(); + + if (first_is_TEST || this_is_TEST) { + // The user mixed TEST and TEST_F in this test case - we'll tell + // him/her how to fix it. + + // Gets the name of the TEST and the name of the TEST_F. Note + // that first_is_TEST and this_is_TEST cannot both be true, as + // the fixture IDs are different for the two tests. + const char* const TEST_name = + first_is_TEST ? first_test_name : this_test_name; + const char* const TEST_F_name = + first_is_TEST ? this_test_name : first_test_name; + + ADD_FAILURE() + << "All tests in the same test case must use the same test fixture\n" + << "class, so mixing TEST_F and TEST in the same test case is\n" + << "illegal. In test case " << this_test_info->test_case_name() + << ",\n" + << "test " << TEST_F_name << " is defined using TEST_F but\n" + << "test " << TEST_name << " is defined using TEST. You probably\n" + << "want to change the TEST to TEST_F or move it to another test\n" + << "case."; + } else { + // The user defined two fixture classes with the same name in + // two namespaces - we'll tell him/her how to fix it. + ADD_FAILURE() + << "All tests in the same test case must use the same test fixture\n" + << "class. However, in test case " + << this_test_info->test_case_name() << ",\n" + << "you defined test " << first_test_name + << " and test " << this_test_name << "\n" + << "using two different test fixture classes. This can happen if\n" + << "the two classes are from different namespaces or translation\n" + << "units and have the same name. You should probably rename one\n" + << "of the classes to put the tests into different test cases."; + } + return false; + } + + return true; +} + +#if GTEST_HAS_SEH + +// Adds an "exception thrown" fatal failure to the current test. This +// function returns its result via an output parameter pointer because VC++ +// prohibits creation of objects with destructors on stack in functions +// using __try (see error C2712). +static std::string* FormatSehExceptionMessage(DWORD exception_code, + const char* location) { + Message message; + message << "SEH exception with code 0x" << std::setbase(16) << + exception_code << std::setbase(10) << " thrown in " << location << "."; + + return new std::string(message.GetString()); +} + +#endif // GTEST_HAS_SEH + +namespace internal { + +#if GTEST_HAS_EXCEPTIONS + +// Adds an "exception thrown" fatal failure to the current test. +static std::string FormatCxxExceptionMessage(const char* description, + const char* location) { + Message message; + if (description != NULL) { + message << "C++ exception with description \"" << description << "\""; + } else { + message << "Unknown C++ exception"; + } + message << " thrown in " << location << "."; + + return message.GetString(); +} + +static std::string PrintTestPartResultToString( + const TestPartResult& test_part_result); + +GoogleTestFailureException::GoogleTestFailureException( + const TestPartResult& failure) + : ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {} + +#endif // GTEST_HAS_EXCEPTIONS + +// We put these helper functions in the internal namespace as IBM's xlC +// compiler rejects the code if they were declared static. + +// Runs the given method and handles SEH exceptions it throws, when +// SEH is supported; returns the 0-value for type Result in case of an +// SEH exception. (Microsoft compilers cannot handle SEH and C++ +// exceptions in the same function. Therefore, we provide a separate +// wrapper function for handling SEH exceptions.) +template +Result HandleSehExceptionsInMethodIfSupported( + T* object, Result (T::*method)(), const char* location) { +#if GTEST_HAS_SEH + __try { + return (object->*method)(); + } __except (internal::UnitTestOptions::GTestShouldProcessSEH( // NOLINT + GetExceptionCode())) { + // We create the exception message on the heap because VC++ prohibits + // creation of objects with destructors on stack in functions using __try + // (see error C2712). + std::string* exception_message = FormatSehExceptionMessage( + GetExceptionCode(), location); + internal::ReportFailureInUnknownLocation(TestPartResult::kFatalFailure, + *exception_message); + delete exception_message; + return static_cast(0); + } +#else + (void)location; + return (object->*method)(); +#endif // GTEST_HAS_SEH +} + +// Runs the given method and catches and reports C++ and/or SEH-style +// exceptions, if they are supported; returns the 0-value for type +// Result in case of an SEH exception. +template +Result HandleExceptionsInMethodIfSupported( + T* object, Result (T::*method)(), const char* location) { + // NOTE: The user code can affect the way in which Google Test handles + // exceptions by setting GTEST_FLAG(catch_exceptions), but only before + // RUN_ALL_TESTS() starts. It is technically possible to check the flag + // after the exception is caught and either report or re-throw the + // exception based on the flag's value: + // + // try { + // // Perform the test method. + // } catch (...) { + // if (GTEST_FLAG(catch_exceptions)) + // // Report the exception as failure. + // else + // throw; // Re-throws the original exception. + // } + // + // However, the purpose of this flag is to allow the program to drop into + // the debugger when the exception is thrown. On most platforms, once the + // control enters the catch block, the exception origin information is + // lost and the debugger will stop the program at the point of the + // re-throw in this function -- instead of at the point of the original + // throw statement in the code under test. For this reason, we perform + // the check early, sacrificing the ability to affect Google Test's + // exception handling in the method where the exception is thrown. + if (internal::GetUnitTestImpl()->catch_exceptions()) { +#if GTEST_HAS_EXCEPTIONS + try { + return HandleSehExceptionsInMethodIfSupported(object, method, location); + } catch (const internal::GoogleTestFailureException&) { // NOLINT + // This exception type can only be thrown by a failed Google + // Test assertion with the intention of letting another testing + // framework catch it. Therefore we just re-throw it. + throw; + } catch (const std::exception& e) { // NOLINT + internal::ReportFailureInUnknownLocation( + TestPartResult::kFatalFailure, + FormatCxxExceptionMessage(e.what(), location)); + } catch (...) { // NOLINT + internal::ReportFailureInUnknownLocation( + TestPartResult::kFatalFailure, + FormatCxxExceptionMessage(NULL, location)); + } + return static_cast(0); +#else + return HandleSehExceptionsInMethodIfSupported(object, method, location); +#endif // GTEST_HAS_EXCEPTIONS + } else { + return (object->*method)(); + } +} + +} // namespace internal + +// Runs the test and updates the test result. +void Test::Run() { + if (!HasSameFixtureClass()) return; + + internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); + impl->os_stack_trace_getter()->UponLeavingGTest(); + internal::HandleExceptionsInMethodIfSupported(this, &Test::SetUp, "SetUp()"); + // We will run the test only if SetUp() was successful. + if (!HasFatalFailure()) { + impl->os_stack_trace_getter()->UponLeavingGTest(); + internal::HandleExceptionsInMethodIfSupported( + this, &Test::TestBody, "the test body"); + } + + // However, we want to clean up as much as possible. Hence we will + // always call TearDown(), even if SetUp() or the test body has + // failed. + impl->os_stack_trace_getter()->UponLeavingGTest(); + internal::HandleExceptionsInMethodIfSupported( + this, &Test::TearDown, "TearDown()"); +} + +// Returns true iff the current test has a fatal failure. +bool Test::HasFatalFailure() { + return internal::GetUnitTestImpl()->current_test_result()->HasFatalFailure(); +} + +// Returns true iff the current test has a non-fatal failure. +bool Test::HasNonfatalFailure() { + return internal::GetUnitTestImpl()->current_test_result()-> + HasNonfatalFailure(); +} + +// class TestInfo + +// Constructs a TestInfo object. It assumes ownership of the test factory +// object. +TestInfo::TestInfo(const std::string& a_test_case_name, + const std::string& a_name, + const char* a_type_param, + const char* a_value_param, + internal::TypeId fixture_class_id, + internal::TestFactoryBase* factory) + : test_case_name_(a_test_case_name), + name_(a_name), + type_param_(a_type_param ? new std::string(a_type_param) : NULL), + value_param_(a_value_param ? new std::string(a_value_param) : NULL), + fixture_class_id_(fixture_class_id), + should_run_(false), + is_disabled_(false), + matches_filter_(false), + factory_(factory), + result_() {} + +// Destructs a TestInfo object. +TestInfo::~TestInfo() { delete factory_; } + +namespace internal { + +// Creates a new TestInfo object and registers it with Google Test; +// returns the created object. +// +// Arguments: +// +// test_case_name: name of the test case +// name: name of the test +// type_param: the name of the test's type parameter, or NULL if +// this is not a typed or a type-parameterized test. +// value_param: text representation of the test's value parameter, +// or NULL if this is not a value-parameterized test. +// fixture_class_id: ID of the test fixture class +// set_up_tc: pointer to the function that sets up the test case +// tear_down_tc: pointer to the function that tears down the test case +// factory: pointer to the factory that creates a test object. +// The newly created TestInfo instance will assume +// ownership of the factory object. +TestInfo* MakeAndRegisterTestInfo( + const char* test_case_name, + const char* name, + const char* type_param, + const char* value_param, + TypeId fixture_class_id, + SetUpTestCaseFunc set_up_tc, + TearDownTestCaseFunc tear_down_tc, + TestFactoryBase* factory) { + TestInfo* const test_info = + new TestInfo(test_case_name, name, type_param, value_param, + fixture_class_id, factory); + GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); + return test_info; +} + +#if GTEST_HAS_PARAM_TEST +void ReportInvalidTestCaseType(const char* test_case_name, + const char* file, int line) { + Message errors; + errors + << "Attempted redefinition of test case " << test_case_name << ".\n" + << "All tests in the same test case must use the same test fixture\n" + << "class. However, in test case " << test_case_name << ", you tried\n" + << "to define a test using a fixture class different from the one\n" + << "used earlier. This can happen if the two fixture classes are\n" + << "from different namespaces and have the same name. You should\n" + << "probably rename one of the classes to put the tests into different\n" + << "test cases."; + + fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(), + errors.GetString().c_str()); +} +#endif // GTEST_HAS_PARAM_TEST + +} // namespace internal + +namespace { + +// A predicate that checks the test name of a TestInfo against a known +// value. +// +// This is used for implementation of the TestCase class only. We put +// it in the anonymous namespace to prevent polluting the outer +// namespace. +// +// TestNameIs is copyable. +class TestNameIs { + public: + // Constructor. + // + // TestNameIs has NO default constructor. + explicit TestNameIs(const char* name) + : name_(name) {} + + // Returns true iff the test name of test_info matches name_. + bool operator()(const TestInfo * test_info) const { + return test_info && test_info->name() == name_; + } + + private: + std::string name_; +}; + +} // namespace + +namespace internal { + +// This method expands all parameterized tests registered with macros TEST_P +// and INSTANTIATE_TEST_CASE_P into regular tests and registers those. +// This will be done just once during the program runtime. +void UnitTestImpl::RegisterParameterizedTests() { +#if GTEST_HAS_PARAM_TEST + if (!parameterized_tests_registered_) { + parameterized_test_registry_.RegisterTests(); + parameterized_tests_registered_ = true; + } +#endif +} + +} // namespace internal + +// Creates the test object, runs it, records its result, and then +// deletes it. +void TestInfo::Run() { + if (!should_run_) return; + + // Tells UnitTest where to store test result. + internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); + impl->set_current_test_info(this); + + TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater(); + + // Notifies the unit test event listeners that a test is about to start. + repeater->OnTestStart(*this); + + const TimeInMillis start = internal::GetTimeInMillis(); + + impl->os_stack_trace_getter()->UponLeavingGTest(); + + // Creates the test object. + Test* const test = internal::HandleExceptionsInMethodIfSupported( + factory_, &internal::TestFactoryBase::CreateTest, + "the test fixture's constructor"); + + // Runs the test only if the test object was created and its + // constructor didn't generate a fatal failure. + if ((test != NULL) && !Test::HasFatalFailure()) { + // This doesn't throw as all user code that can throw are wrapped into + // exception handling code. + test->Run(); + } + + // Deletes the test object. + impl->os_stack_trace_getter()->UponLeavingGTest(); + internal::HandleExceptionsInMethodIfSupported( + test, &Test::DeleteSelf_, "the test fixture's destructor"); + + result_.set_elapsed_time(internal::GetTimeInMillis() - start); + + // Notifies the unit test event listener that a test has just finished. + repeater->OnTestEnd(*this); + + // Tells UnitTest to stop associating assertion results to this + // test. + impl->set_current_test_info(NULL); +} + +// class TestCase + +// Gets the number of successful tests in this test case. +int TestCase::successful_test_count() const { + return CountIf(test_info_list_, TestPassed); +} + +// Gets the number of failed tests in this test case. +int TestCase::failed_test_count() const { + return CountIf(test_info_list_, TestFailed); +} + +// Gets the number of disabled tests that will be reported in the XML report. +int TestCase::reportable_disabled_test_count() const { + return CountIf(test_info_list_, TestReportableDisabled); +} + +// Gets the number of disabled tests in this test case. +int TestCase::disabled_test_count() const { + return CountIf(test_info_list_, TestDisabled); +} + +// Gets the number of tests to be printed in the XML report. +int TestCase::reportable_test_count() const { + return CountIf(test_info_list_, TestReportable); +} + +// Get the number of tests in this test case that should run. +int TestCase::test_to_run_count() const { + return CountIf(test_info_list_, ShouldRunTest); +} + +// Gets the number of all tests. +int TestCase::total_test_count() const { + return static_cast(test_info_list_.size()); +} + +// Creates a TestCase with the given name. +// +// Arguments: +// +// name: name of the test case +// a_type_param: the name of the test case's type parameter, or NULL if +// this is not a typed or a type-parameterized test case. +// set_up_tc: pointer to the function that sets up the test case +// tear_down_tc: pointer to the function that tears down the test case +TestCase::TestCase(const char* a_name, const char* a_type_param, + Test::SetUpTestCaseFunc set_up_tc, + Test::TearDownTestCaseFunc tear_down_tc) + : name_(a_name), + type_param_(a_type_param ? new std::string(a_type_param) : NULL), + set_up_tc_(set_up_tc), + tear_down_tc_(tear_down_tc), + should_run_(false), + elapsed_time_(0) { +} + +// Destructor of TestCase. +TestCase::~TestCase() { + // Deletes every Test in the collection. + ForEach(test_info_list_, internal::Delete); +} + +// Returns the i-th test among all the tests. i can range from 0 to +// total_test_count() - 1. If i is not in that range, returns NULL. +const TestInfo* TestCase::GetTestInfo(int i) const { + const int index = GetElementOr(test_indices_, i, -1); + return index < 0 ? NULL : test_info_list_[index]; +} + +// Returns the i-th test among all the tests. i can range from 0 to +// total_test_count() - 1. If i is not in that range, returns NULL. +TestInfo* TestCase::GetMutableTestInfo(int i) { + const int index = GetElementOr(test_indices_, i, -1); + return index < 0 ? NULL : test_info_list_[index]; +} + +// Adds a test to this test case. Will delete the test upon +// destruction of the TestCase object. +void TestCase::AddTestInfo(TestInfo * test_info) { + test_info_list_.push_back(test_info); + test_indices_.push_back(static_cast(test_indices_.size())); +} + +// Runs every test in this TestCase. +void TestCase::Run() { + if (!should_run_) return; + + internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); + impl->set_current_test_case(this); + + TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater(); + + repeater->OnTestCaseStart(*this); + impl->os_stack_trace_getter()->UponLeavingGTest(); + internal::HandleExceptionsInMethodIfSupported( + this, &TestCase::RunSetUpTestCase, "SetUpTestCase()"); + + const internal::TimeInMillis start = internal::GetTimeInMillis(); + for (int i = 0; i < total_test_count(); i++) { + GetMutableTestInfo(i)->Run(); + } + elapsed_time_ = internal::GetTimeInMillis() - start; + + impl->os_stack_trace_getter()->UponLeavingGTest(); + internal::HandleExceptionsInMethodIfSupported( + this, &TestCase::RunTearDownTestCase, "TearDownTestCase()"); + + repeater->OnTestCaseEnd(*this); + impl->set_current_test_case(NULL); +} + +// Clears the results of all tests in this test case. +void TestCase::ClearResult() { + ad_hoc_test_result_.Clear(); + ForEach(test_info_list_, TestInfo::ClearTestResult); +} + +// Shuffles the tests in this test case. +void TestCase::ShuffleTests(internal::Random* random) { + Shuffle(random, &test_indices_); +} + +// Restores the test order to before the first shuffle. +void TestCase::UnshuffleTests() { + for (size_t i = 0; i < test_indices_.size(); i++) { + test_indices_[i] = static_cast(i); + } +} + +// Formats a countable noun. Depending on its quantity, either the +// singular form or the plural form is used. e.g. +// +// FormatCountableNoun(1, "formula", "formuli") returns "1 formula". +// FormatCountableNoun(5, "book", "books") returns "5 books". +static std::string FormatCountableNoun(int count, + const char * singular_form, + const char * plural_form) { + return internal::StreamableToString(count) + " " + + (count == 1 ? singular_form : plural_form); +} + +// Formats the count of tests. +static std::string FormatTestCount(int test_count) { + return FormatCountableNoun(test_count, "test", "tests"); +} + +// Formats the count of test cases. +static std::string FormatTestCaseCount(int test_case_count) { + return FormatCountableNoun(test_case_count, "test case", "test cases"); +} + +// Converts a TestPartResult::Type enum to human-friendly string +// representation. Both kNonFatalFailure and kFatalFailure are translated +// to "Failure", as the user usually doesn't care about the difference +// between the two when viewing the test result. +static const char * TestPartResultTypeToString(TestPartResult::Type type) { + switch (type) { + case TestPartResult::kSuccess: + return "Success"; + + case TestPartResult::kNonFatalFailure: + case TestPartResult::kFatalFailure: +#ifdef _MSC_VER + return "error: "; +#else + return "Failure\n"; +#endif + default: + return "Unknown result type"; + } +} + +namespace internal { + +// Prints a TestPartResult to an std::string. +static std::string PrintTestPartResultToString( + const TestPartResult& test_part_result) { + return (Message() + << internal::FormatFileLocation(test_part_result.file_name(), + test_part_result.line_number()) + << " " << TestPartResultTypeToString(test_part_result.type()) + << test_part_result.message()).GetString(); +} + +// Prints a TestPartResult. +static void PrintTestPartResult(const TestPartResult& test_part_result) { + const std::string& result = + PrintTestPartResultToString(test_part_result); + printf("%s\n", result.c_str()); + fflush(stdout); + // If the test program runs in Visual Studio or a debugger, the + // following statements add the test part result message to the Output + // window such that the user can double-click on it to jump to the + // corresponding source code location; otherwise they do nothing. +#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE + // We don't call OutputDebugString*() on Windows Mobile, as printing + // to stdout is done by OutputDebugString() there already - we don't + // want the same message printed twice. + ::OutputDebugStringA(result.c_str()); + ::OutputDebugStringA("\n"); +#endif +} + +// class PrettyUnitTestResultPrinter + +enum GTestColor { + COLOR_DEFAULT, + COLOR_RED, + COLOR_GREEN, + COLOR_YELLOW +}; + +#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE + +// Returns the character attribute for the given color. +WORD GetColorAttribute(GTestColor color) { + switch (color) { + case COLOR_RED: return FOREGROUND_RED; + case COLOR_GREEN: return FOREGROUND_GREEN; + case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN; + default: return 0; + } +} + +#else + +// Returns the ANSI color code for the given color. COLOR_DEFAULT is +// an invalid input. +const char* GetAnsiColorCode(GTestColor color) { + switch (color) { + case COLOR_RED: return "1"; + case COLOR_GREEN: return "2"; + case COLOR_YELLOW: return "3"; + default: return NULL; + }; +} + +#endif // GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE + +// Returns true iff Google Test should use colors in the output. +bool ShouldUseColor(bool stdout_is_tty) { + const char* const gtest_color = GTEST_FLAG(color).c_str(); + + if (String::CaseInsensitiveCStringEquals(gtest_color, "auto")) { +#if GTEST_OS_WINDOWS + // On Windows the TERM variable is usually not set, but the + // console there does support colors. + return stdout_is_tty; +#else + // On non-Windows platforms, we rely on the TERM variable. + const char* const term = posix::GetEnv("TERM"); + const bool term_supports_color = + String::CStringEquals(term, "xterm") || + String::CStringEquals(term, "xterm-color") || + String::CStringEquals(term, "xterm-256color") || + String::CStringEquals(term, "screen") || + String::CStringEquals(term, "screen-256color") || + String::CStringEquals(term, "linux") || + String::CStringEquals(term, "cygwin"); + return stdout_is_tty && term_supports_color; +#endif // GTEST_OS_WINDOWS + } + + return String::CaseInsensitiveCStringEquals(gtest_color, "yes") || + String::CaseInsensitiveCStringEquals(gtest_color, "true") || + String::CaseInsensitiveCStringEquals(gtest_color, "t") || + String::CStringEquals(gtest_color, "1"); + // We take "yes", "true", "t", and "1" as meaning "yes". If the + // value is neither one of these nor "auto", we treat it as "no" to + // be conservative. +} + +// Helpers for printing colored strings to stdout. Note that on Windows, we +// cannot simply emit special characters and have the terminal change colors. +// This routine must actually emit the characters rather than return a string +// that would be colored when printed, as can be done on Linux. +void ColoredPrintf(GTestColor color, const char* fmt, ...) { + va_list args; + va_start(args, fmt); + +#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || GTEST_OS_ZOS || GTEST_OS_IOS + const bool use_color = false; +#else + static const bool in_color_mode = + ShouldUseColor(posix::IsATTY(posix::FileNo(stdout)) != 0); + const bool use_color = in_color_mode && (color != COLOR_DEFAULT); +#endif // GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || GTEST_OS_ZOS + // The '!= 0' comparison is necessary to satisfy MSVC 7.1. + + if (!use_color) { + vprintf(fmt, args); + va_end(args); + return; + } + +#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE + const HANDLE stdout_handle = GetStdHandle(STD_OUTPUT_HANDLE); + + // Gets the current text color. + CONSOLE_SCREEN_BUFFER_INFO buffer_info; + GetConsoleScreenBufferInfo(stdout_handle, &buffer_info); + const WORD old_color_attrs = buffer_info.wAttributes; + + // We need to flush the stream buffers into the console before each + // SetConsoleTextAttribute call lest it affect the text that is already + // printed but has not yet reached the console. + fflush(stdout); + SetConsoleTextAttribute(stdout_handle, + GetColorAttribute(color) | FOREGROUND_INTENSITY); + vprintf(fmt, args); + + fflush(stdout); + // Restores the text color. + SetConsoleTextAttribute(stdout_handle, old_color_attrs); +#else + printf("\033[0;3%sm", GetAnsiColorCode(color)); + vprintf(fmt, args); + printf("\033[m"); // Resets the terminal to default. +#endif // GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE + va_end(args); +} + +// Text printed in Google Test's text output and --gunit_list_tests +// output to label the type parameter and value parameter for a test. +static const char kTypeParamLabel[] = "TypeParam"; +static const char kValueParamLabel[] = "GetParam()"; + +void PrintFullTestCommentIfPresent(const TestInfo& test_info) { + const char* const type_param = test_info.type_param(); + const char* const value_param = test_info.value_param(); + + if (type_param != NULL || value_param != NULL) { + printf(", where "); + if (type_param != NULL) { + printf("%s = %s", kTypeParamLabel, type_param); + if (value_param != NULL) + printf(" and "); + } + if (value_param != NULL) { + printf("%s = %s", kValueParamLabel, value_param); + } + } +} + +// This class implements the TestEventListener interface. +// +// Class PrettyUnitTestResultPrinter is copyable. +class PrettyUnitTestResultPrinter : public TestEventListener { + public: + PrettyUnitTestResultPrinter() {} + static void PrintTestName(const char * test_case, const char * test) { + printf("%s.%s", test_case, test); + } + + // The following methods override what's in the TestEventListener class. + virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {} + virtual void OnTestIterationStart(const UnitTest& unit_test, int iteration); + virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test); + virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {} + virtual void OnTestCaseStart(const TestCase& test_case); + virtual void OnTestStart(const TestInfo& test_info); + virtual void OnTestPartResult(const TestPartResult& result); + virtual void OnTestEnd(const TestInfo& test_info); + virtual void OnTestCaseEnd(const TestCase& test_case); + virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test); + virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/) {} + virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration); + virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {} + + private: + static void PrintFailedTests(const UnitTest& unit_test); +}; + + // Fired before each iteration of tests starts. +void PrettyUnitTestResultPrinter::OnTestIterationStart( + const UnitTest& unit_test, int iteration) { + if (GTEST_FLAG(repeat) != 1) + printf("\nRepeating all tests (iteration %d) . . .\n\n", iteration + 1); + + const char* const filter = GTEST_FLAG(filter).c_str(); + + // Prints the filter if it's not *. This reminds the user that some + // tests may be skipped. + if (!String::CStringEquals(filter, kUniversalFilter)) { + ColoredPrintf(COLOR_YELLOW, + "Note: %s filter = %s\n", GTEST_NAME_, filter); + } + + if (internal::ShouldShard(kTestTotalShards, kTestShardIndex, false)) { + const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); + ColoredPrintf(COLOR_YELLOW, + "Note: This is test shard %d of %s.\n", + static_cast(shard_index) + 1, + internal::posix::GetEnv(kTestTotalShards)); + } + + if (GTEST_FLAG(shuffle)) { + ColoredPrintf(COLOR_YELLOW, + "Note: Randomizing tests' orders with a seed of %d .\n", + unit_test.random_seed()); + } + + ColoredPrintf(COLOR_GREEN, "[==========] "); + printf("Running %s from %s.\n", + FormatTestCount(unit_test.test_to_run_count()).c_str(), + FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str()); + fflush(stdout); +} + +void PrettyUnitTestResultPrinter::OnEnvironmentsSetUpStart( + const UnitTest& /*unit_test*/) { + ColoredPrintf(COLOR_GREEN, "[----------] "); + printf("Global test environment set-up.\n"); + fflush(stdout); +} + +void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) { + const std::string counts = + FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); + ColoredPrintf(COLOR_GREEN, "[----------] "); + printf("%s from %s", counts.c_str(), test_case.name()); + if (test_case.type_param() == NULL) { + printf("\n"); + } else { + printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param()); + } + fflush(stdout); +} + +void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) { + ColoredPrintf(COLOR_GREEN, "[ RUN ] "); + PrintTestName(test_info.test_case_name(), test_info.name()); + printf("\n"); + fflush(stdout); +} + +// Called after an assertion failure. +void PrettyUnitTestResultPrinter::OnTestPartResult( + const TestPartResult& result) { + // If the test part succeeded, we don't need to do anything. + if (result.type() == TestPartResult::kSuccess) + return; + + // Print failure message from the assertion (e.g. expected this and got that). + PrintTestPartResult(result); + fflush(stdout); +} + +void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) { + if (test_info.result()->Passed()) { + ColoredPrintf(COLOR_GREEN, "[ OK ] "); + } else { + ColoredPrintf(COLOR_RED, "[ FAILED ] "); + } + PrintTestName(test_info.test_case_name(), test_info.name()); + if (test_info.result()->Failed()) + PrintFullTestCommentIfPresent(test_info); + + if (GTEST_FLAG(print_time)) { + printf(" (%s ms)\n", internal::StreamableToString( + test_info.result()->elapsed_time()).c_str()); + } else { + printf("\n"); + } + fflush(stdout); +} + +void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) { + if (!GTEST_FLAG(print_time)) return; + + const std::string counts = + FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); + ColoredPrintf(COLOR_GREEN, "[----------] "); + printf("%s from %s (%s ms total)\n\n", + counts.c_str(), test_case.name(), + internal::StreamableToString(test_case.elapsed_time()).c_str()); + fflush(stdout); +} + +void PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart( + const UnitTest& /*unit_test*/) { + ColoredPrintf(COLOR_GREEN, "[----------] "); + printf("Global test environment tear-down\n"); + fflush(stdout); +} + +// Internal helper for printing the list of failed tests. +void PrettyUnitTestResultPrinter::PrintFailedTests(const UnitTest& unit_test) { + const int failed_test_count = unit_test.failed_test_count(); + if (failed_test_count == 0) { + return; + } + + for (int i = 0; i < unit_test.total_test_case_count(); ++i) { + const TestCase& test_case = *unit_test.GetTestCase(i); + if (!test_case.should_run() || (test_case.failed_test_count() == 0)) { + continue; + } + for (int j = 0; j < test_case.total_test_count(); ++j) { + const TestInfo& test_info = *test_case.GetTestInfo(j); + if (!test_info.should_run() || test_info.result()->Passed()) { + continue; + } + ColoredPrintf(COLOR_RED, "[ FAILED ] "); + printf("%s.%s", test_case.name(), test_info.name()); + PrintFullTestCommentIfPresent(test_info); + printf("\n"); + } + } +} + +void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, + int /*iteration*/) { + ColoredPrintf(COLOR_GREEN, "[==========] "); + printf("%s from %s ran.", + FormatTestCount(unit_test.test_to_run_count()).c_str(), + FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str()); + if (GTEST_FLAG(print_time)) { + printf(" (%s ms total)", + internal::StreamableToString(unit_test.elapsed_time()).c_str()); + } + printf("\n"); + ColoredPrintf(COLOR_GREEN, "[ PASSED ] "); + printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str()); + + int num_failures = unit_test.failed_test_count(); + if (!unit_test.Passed()) { + const int failed_test_count = unit_test.failed_test_count(); + ColoredPrintf(COLOR_RED, "[ FAILED ] "); + printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str()); + PrintFailedTests(unit_test); + printf("\n%2d FAILED %s\n", num_failures, + num_failures == 1 ? "TEST" : "TESTS"); + } + + int num_disabled = unit_test.reportable_disabled_test_count(); + if (num_disabled && !GTEST_FLAG(also_run_disabled_tests)) { + if (!num_failures) { + printf("\n"); // Add a spacer if no FAILURE banner is displayed. + } + ColoredPrintf(COLOR_YELLOW, + " YOU HAVE %d DISABLED %s\n\n", + num_disabled, + num_disabled == 1 ? "TEST" : "TESTS"); + } + // Ensure that Google Test output is printed before, e.g., heapchecker output. + fflush(stdout); +} + +// End PrettyUnitTestResultPrinter + +// class TestEventRepeater +// +// This class forwards events to other event listeners. +class TestEventRepeater : public TestEventListener { + public: + TestEventRepeater() : forwarding_enabled_(true) {} + virtual ~TestEventRepeater(); + void Append(TestEventListener *listener); + TestEventListener* Release(TestEventListener* listener); + + // Controls whether events will be forwarded to listeners_. Set to false + // in death test child processes. + bool forwarding_enabled() const { return forwarding_enabled_; } + void set_forwarding_enabled(bool enable) { forwarding_enabled_ = enable; } + + virtual void OnTestProgramStart(const UnitTest& unit_test); + virtual void OnTestIterationStart(const UnitTest& unit_test, int iteration); + virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test); + virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test); + virtual void OnTestCaseStart(const TestCase& test_case); + virtual void OnTestStart(const TestInfo& test_info); + virtual void OnTestPartResult(const TestPartResult& result); + virtual void OnTestEnd(const TestInfo& test_info); + virtual void OnTestCaseEnd(const TestCase& test_case); + virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test); + virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test); + virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration); + virtual void OnTestProgramEnd(const UnitTest& unit_test); + + private: + // Controls whether events will be forwarded to listeners_. Set to false + // in death test child processes. + bool forwarding_enabled_; + // The list of listeners that receive events. + std::vector listeners_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(TestEventRepeater); +}; + +TestEventRepeater::~TestEventRepeater() { + ForEach(listeners_, Delete); +} + +void TestEventRepeater::Append(TestEventListener *listener) { + listeners_.push_back(listener); +} + +// TODO(vladl@google.com): Factor the search functionality into Vector::Find. +TestEventListener* TestEventRepeater::Release(TestEventListener *listener) { + for (size_t i = 0; i < listeners_.size(); ++i) { + if (listeners_[i] == listener) { + listeners_.erase(listeners_.begin() + i); + return listener; + } + } + + return NULL; +} + +// Since most methods are very similar, use macros to reduce boilerplate. +// This defines a member that forwards the call to all listeners. +#define GTEST_REPEATER_METHOD_(Name, Type) \ +void TestEventRepeater::Name(const Type& parameter) { \ + if (forwarding_enabled_) { \ + for (size_t i = 0; i < listeners_.size(); i++) { \ + listeners_[i]->Name(parameter); \ + } \ + } \ +} +// This defines a member that forwards the call to all listeners in reverse +// order. +#define GTEST_REVERSE_REPEATER_METHOD_(Name, Type) \ +void TestEventRepeater::Name(const Type& parameter) { \ + if (forwarding_enabled_) { \ + for (int i = static_cast(listeners_.size()) - 1; i >= 0; i--) { \ + listeners_[i]->Name(parameter); \ + } \ + } \ +} + +GTEST_REPEATER_METHOD_(OnTestProgramStart, UnitTest) +GTEST_REPEATER_METHOD_(OnEnvironmentsSetUpStart, UnitTest) +GTEST_REPEATER_METHOD_(OnTestCaseStart, TestCase) +GTEST_REPEATER_METHOD_(OnTestStart, TestInfo) +GTEST_REPEATER_METHOD_(OnTestPartResult, TestPartResult) +GTEST_REPEATER_METHOD_(OnEnvironmentsTearDownStart, UnitTest) +GTEST_REVERSE_REPEATER_METHOD_(OnEnvironmentsSetUpEnd, UnitTest) +GTEST_REVERSE_REPEATER_METHOD_(OnEnvironmentsTearDownEnd, UnitTest) +GTEST_REVERSE_REPEATER_METHOD_(OnTestEnd, TestInfo) +GTEST_REVERSE_REPEATER_METHOD_(OnTestCaseEnd, TestCase) +GTEST_REVERSE_REPEATER_METHOD_(OnTestProgramEnd, UnitTest) + +#undef GTEST_REPEATER_METHOD_ +#undef GTEST_REVERSE_REPEATER_METHOD_ + +void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test, + int iteration) { + if (forwarding_enabled_) { + for (size_t i = 0; i < listeners_.size(); i++) { + listeners_[i]->OnTestIterationStart(unit_test, iteration); + } + } +} + +void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test, + int iteration) { + if (forwarding_enabled_) { + for (int i = static_cast(listeners_.size()) - 1; i >= 0; i--) { + listeners_[i]->OnTestIterationEnd(unit_test, iteration); + } + } +} + +// End TestEventRepeater + +// This class generates an XML output file. +class XmlUnitTestResultPrinter : public EmptyTestEventListener { + public: + explicit XmlUnitTestResultPrinter(const char* output_file); + + virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration); + + private: + // Is c a whitespace character that is normalized to a space character + // when it appears in an XML attribute value? + static bool IsNormalizableWhitespace(char c) { + return c == 0x9 || c == 0xA || c == 0xD; + } + + // May c appear in a well-formed XML document? + static bool IsValidXmlCharacter(char c) { + return IsNormalizableWhitespace(c) || c >= 0x20; + } + + // Returns an XML-escaped copy of the input string str. If + // is_attribute is true, the text is meant to appear as an attribute + // value, and normalizable whitespace is preserved by replacing it + // with character references. + static std::string EscapeXml(const std::string& str, bool is_attribute); + + // Returns the given string with all characters invalid in XML removed. + static std::string RemoveInvalidXmlCharacters(const std::string& str); + + // Convenience wrapper around EscapeXml when str is an attribute value. + static std::string EscapeXmlAttribute(const std::string& str) { + return EscapeXml(str, true); + } + + // Convenience wrapper around EscapeXml when str is not an attribute value. + static std::string EscapeXmlText(const char* str) { + return EscapeXml(str, false); + } + + // Verifies that the given attribute belongs to the given element and + // streams the attribute as XML. + static void OutputXmlAttribute(std::ostream* stream, + const std::string& element_name, + const std::string& name, + const std::string& value); + + // Streams an XML CDATA section, escaping invalid CDATA sequences as needed. + static void OutputXmlCDataSection(::std::ostream* stream, const char* data); + + // Streams an XML representation of a TestInfo object. + static void OutputXmlTestInfo(::std::ostream* stream, + const char* test_case_name, + const TestInfo& test_info); + + // Prints an XML representation of a TestCase object + static void PrintXmlTestCase(::std::ostream* stream, + const TestCase& test_case); + + // Prints an XML summary of unit_test to output stream out. + static void PrintXmlUnitTest(::std::ostream* stream, + const UnitTest& unit_test); + + // Produces a string representing the test properties in a result as space + // delimited XML attributes based on the property key="value" pairs. + // When the std::string is not empty, it includes a space at the beginning, + // to delimit this attribute from prior attributes. + static std::string TestPropertiesAsXmlAttributes(const TestResult& result); + + // The output file. + const std::string output_file_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(XmlUnitTestResultPrinter); +}; + +// Creates a new XmlUnitTestResultPrinter. +XmlUnitTestResultPrinter::XmlUnitTestResultPrinter(const char* output_file) + : output_file_(output_file) { + if (output_file_.c_str() == NULL || output_file_.empty()) { + fprintf(stderr, "XML output file may not be null\n"); + fflush(stderr); + exit(EXIT_FAILURE); + } +} + +// Called after the unit test ends. +void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, + int /*iteration*/) { + FILE* xmlout = NULL; + FilePath output_file(output_file_); + FilePath output_dir(output_file.RemoveFileName()); + + if (output_dir.CreateDirectoriesRecursively()) { + xmlout = posix::FOpen(output_file_.c_str(), "w"); + } + if (xmlout == NULL) { + // TODO(wan): report the reason of the failure. + // + // We don't do it for now as: + // + // 1. There is no urgent need for it. + // 2. It's a bit involved to make the errno variable thread-safe on + // all three operating systems (Linux, Windows, and Mac OS). + // 3. To interpret the meaning of errno in a thread-safe way, + // we need the strerror_r() function, which is not available on + // Windows. + fprintf(stderr, + "Unable to open file \"%s\"\n", + output_file_.c_str()); + fflush(stderr); + exit(EXIT_FAILURE); + } + std::stringstream stream; + PrintXmlUnitTest(&stream, unit_test); + fprintf(xmlout, "%s", StringStreamToString(&stream).c_str()); + fclose(xmlout); +} + +// Returns an XML-escaped copy of the input string str. If is_attribute +// is true, the text is meant to appear as an attribute value, and +// normalizable whitespace is preserved by replacing it with character +// references. +// +// Invalid XML characters in str, if any, are stripped from the output. +// It is expected that most, if not all, of the text processed by this +// module will consist of ordinary English text. +// If this module is ever modified to produce version 1.1 XML output, +// most invalid characters can be retained using character references. +// TODO(wan): It might be nice to have a minimally invasive, human-readable +// escaping scheme for invalid characters, rather than dropping them. +std::string XmlUnitTestResultPrinter::EscapeXml( + const std::string& str, bool is_attribute) { + Message m; + + for (size_t i = 0; i < str.size(); ++i) { + const char ch = str[i]; + switch (ch) { + case '<': + m << "<"; + break; + case '>': + m << ">"; + break; + case '&': + m << "&"; + break; + case '\'': + if (is_attribute) + m << "'"; + else + m << '\''; + break; + case '"': + if (is_attribute) + m << """; + else + m << '"'; + break; + default: + if (IsValidXmlCharacter(ch)) { + if (is_attribute && IsNormalizableWhitespace(ch)) + m << "&#x" << String::FormatByte(static_cast(ch)) + << ";"; + else + m << ch; + } + break; + } + } + + return m.GetString(); +} + +// Returns the given string with all characters invalid in XML removed. +// Currently invalid characters are dropped from the string. An +// alternative is to replace them with certain characters such as . or ?. +std::string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters( + const std::string& str) { + std::string output; + output.reserve(str.size()); + for (std::string::const_iterator it = str.begin(); it != str.end(); ++it) + if (IsValidXmlCharacter(*it)) + output.push_back(*it); + + return output; +} + +// The following routines generate an XML representation of a UnitTest +// object. +// +// This is how Google Test concepts map to the DTD: +// +// <-- corresponds to a UnitTest object +// <-- corresponds to a TestCase object +// <-- corresponds to a TestInfo object +// ... +// ... +// ... +// <-- individual assertion failures +// +// +// + +// Formats the given time in milliseconds as seconds. +std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) { + ::std::stringstream ss; + ss << ms/1000.0; + return ss.str(); +} + +// Converts the given epoch time in milliseconds to a date string in the ISO +// 8601 format, without the timezone information. +std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) { + // Using non-reentrant version as localtime_r is not portable. + time_t seconds = static_cast(ms / 1000); +#ifdef _MSC_VER +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4996) // Temporarily disables warning 4996 + // (function or variable may be unsafe). + const struct tm* const time_struct = localtime(&seconds); // NOLINT +# pragma warning(pop) // Restores the warning state again. +#else + const struct tm* const time_struct = localtime(&seconds); // NOLINT +#endif + if (time_struct == NULL) + return ""; // Invalid ms value + + // YYYY-MM-DDThh:mm:ss + return StreamableToString(time_struct->tm_year + 1900) + "-" + + String::FormatIntWidth2(time_struct->tm_mon + 1) + "-" + + String::FormatIntWidth2(time_struct->tm_mday) + "T" + + String::FormatIntWidth2(time_struct->tm_hour) + ":" + + String::FormatIntWidth2(time_struct->tm_min) + ":" + + String::FormatIntWidth2(time_struct->tm_sec); +} + +// Streams an XML CDATA section, escaping invalid CDATA sequences as needed. +void XmlUnitTestResultPrinter::OutputXmlCDataSection(::std::ostream* stream, + const char* data) { + const char* segment = data; + *stream << ""); + if (next_segment != NULL) { + stream->write( + segment, static_cast(next_segment - segment)); + *stream << "]]>]]>"); + } else { + *stream << segment; + break; + } + } + *stream << "]]>"; +} + +void XmlUnitTestResultPrinter::OutputXmlAttribute( + std::ostream* stream, + const std::string& element_name, + const std::string& name, + const std::string& value) { + const std::vector& allowed_names = + GetReservedAttributesForElement(element_name); + + GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) != + allowed_names.end()) + << "Attribute " << name << " is not allowed for element <" << element_name + << ">."; + + *stream << " " << name << "=\"" << EscapeXmlAttribute(value) << "\""; +} + +// Prints an XML representation of a TestInfo object. +// TODO(wan): There is also value in printing properties with the plain printer. +void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream, + const char* test_case_name, + const TestInfo& test_info) { + const TestResult& result = *test_info.result(); + const std::string kTestcase = "testcase"; + + *stream << " \n"; + } + const string location = internal::FormatCompilerIndependentFileLocation( + part.file_name(), part.line_number()); + const string summary = location + "\n" + part.summary(); + *stream << " "; + const string detail = location + "\n" + part.message(); + OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).c_str()); + *stream << "\n"; + } + } + + if (failures == 0) + *stream << " />\n"; + else + *stream << " \n"; +} + +// Prints an XML representation of a TestCase object +void XmlUnitTestResultPrinter::PrintXmlTestCase(std::ostream* stream, + const TestCase& test_case) { + const std::string kTestsuite = "testsuite"; + *stream << " <" << kTestsuite; + OutputXmlAttribute(stream, kTestsuite, "name", test_case.name()); + OutputXmlAttribute(stream, kTestsuite, "tests", + StreamableToString(test_case.reportable_test_count())); + OutputXmlAttribute(stream, kTestsuite, "failures", + StreamableToString(test_case.failed_test_count())); + OutputXmlAttribute( + stream, kTestsuite, "disabled", + StreamableToString(test_case.reportable_disabled_test_count())); + OutputXmlAttribute(stream, kTestsuite, "errors", "0"); + OutputXmlAttribute(stream, kTestsuite, "time", + FormatTimeInMillisAsSeconds(test_case.elapsed_time())); + *stream << TestPropertiesAsXmlAttributes(test_case.ad_hoc_test_result()) + << ">\n"; + + for (int i = 0; i < test_case.total_test_count(); ++i) { + if (test_case.GetTestInfo(i)->is_reportable()) + OutputXmlTestInfo(stream, test_case.name(), *test_case.GetTestInfo(i)); + } + *stream << " \n"; +} + +// Prints an XML summary of unit_test to output stream out. +void XmlUnitTestResultPrinter::PrintXmlUnitTest(std::ostream* stream, + const UnitTest& unit_test) { + const std::string kTestsuites = "testsuites"; + + *stream << "\n"; + *stream << "<" << kTestsuites; + + OutputXmlAttribute(stream, kTestsuites, "tests", + StreamableToString(unit_test.reportable_test_count())); + OutputXmlAttribute(stream, kTestsuites, "failures", + StreamableToString(unit_test.failed_test_count())); + OutputXmlAttribute( + stream, kTestsuites, "disabled", + StreamableToString(unit_test.reportable_disabled_test_count())); + OutputXmlAttribute(stream, kTestsuites, "errors", "0"); + OutputXmlAttribute( + stream, kTestsuites, "timestamp", + FormatEpochTimeInMillisAsIso8601(unit_test.start_timestamp())); + OutputXmlAttribute(stream, kTestsuites, "time", + FormatTimeInMillisAsSeconds(unit_test.elapsed_time())); + + if (GTEST_FLAG(shuffle)) { + OutputXmlAttribute(stream, kTestsuites, "random_seed", + StreamableToString(unit_test.random_seed())); + } + + *stream << TestPropertiesAsXmlAttributes(unit_test.ad_hoc_test_result()); + + OutputXmlAttribute(stream, kTestsuites, "name", "AllTests"); + *stream << ">\n"; + + for (int i = 0; i < unit_test.total_test_case_count(); ++i) { + if (unit_test.GetTestCase(i)->reportable_test_count() > 0) + PrintXmlTestCase(stream, *unit_test.GetTestCase(i)); + } + *stream << "\n"; +} + +// Produces a string representing the test properties in a result as space +// delimited XML attributes based on the property key="value" pairs. +std::string XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes( + const TestResult& result) { + Message attributes; + for (int i = 0; i < result.test_property_count(); ++i) { + const TestProperty& property = result.GetTestProperty(i); + attributes << " " << property.key() << "=" + << "\"" << EscapeXmlAttribute(property.value()) << "\""; + } + return attributes.GetString(); +} + +// End XmlUnitTestResultPrinter + +#if GTEST_CAN_STREAM_RESULTS_ + +// Checks if str contains '=', '&', '%' or '\n' characters. If yes, +// replaces them by "%xx" where xx is their hexadecimal value. For +// example, replaces "=" with "%3D". This algorithm is O(strlen(str)) +// in both time and space -- important as the input str may contain an +// arbitrarily long test failure message and stack trace. +string StreamingListener::UrlEncode(const char* str) { + string result; + result.reserve(strlen(str) + 1); + for (char ch = *str; ch != '\0'; ch = *++str) { + switch (ch) { + case '%': + case '=': + case '&': + case '\n': + result.append("%" + String::FormatByte(static_cast(ch))); + break; + default: + result.push_back(ch); + break; + } + } + return result; +} + +void StreamingListener::SocketWriter::MakeConnection() { + GTEST_CHECK_(sockfd_ == -1) + << "MakeConnection() can't be called when there is already a connection."; + + addrinfo hints; + memset(&hints, 0, sizeof(hints)); + hints.ai_family = AF_UNSPEC; // To allow both IPv4 and IPv6 addresses. + hints.ai_socktype = SOCK_STREAM; + addrinfo* servinfo = NULL; + + // Use the getaddrinfo() to get a linked list of IP addresses for + // the given host name. + const int error_num = getaddrinfo( + host_name_.c_str(), port_num_.c_str(), &hints, &servinfo); + if (error_num != 0) { + GTEST_LOG_(WARNING) << "stream_result_to: getaddrinfo() failed: " + << gai_strerror(error_num); + } + + // Loop through all the results and connect to the first we can. + for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; + cur_addr = cur_addr->ai_next) { + sockfd_ = socket( + cur_addr->ai_family, cur_addr->ai_socktype, cur_addr->ai_protocol); + if (sockfd_ != -1) { + // Connect the client socket to the server socket. + if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { + close(sockfd_); + sockfd_ = -1; + } + } + } + + freeaddrinfo(servinfo); // all done with this structure + + if (sockfd_ == -1) { + GTEST_LOG_(WARNING) << "stream_result_to: failed to connect to " + << host_name_ << ":" << port_num_; + } +} + +// End of class Streaming Listener +#endif // GTEST_CAN_STREAM_RESULTS__ + +// Class ScopedTrace + +// Pushes the given source file location and message onto a per-thread +// trace stack maintained by Google Test. +ScopedTrace::ScopedTrace(const char* file, int line, const Message& message) + GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) { + TraceInfo trace; + trace.file = file; + trace.line = line; + trace.message = message.GetString(); + + UnitTest::GetInstance()->PushGTestTrace(trace); +} + +// Pops the info pushed by the c'tor. +ScopedTrace::~ScopedTrace() + GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) { + UnitTest::GetInstance()->PopGTestTrace(); +} + + +// class OsStackTraceGetter + +// Returns the current OS stack trace as an std::string. Parameters: +// +// max_depth - the maximum number of stack frames to be included +// in the trace. +// skip_count - the number of top frames to be skipped; doesn't count +// against max_depth. +// +string OsStackTraceGetter::CurrentStackTrace(int /* max_depth */, + int /* skip_count */) + GTEST_LOCK_EXCLUDED_(mutex_) { + return ""; +} + +void OsStackTraceGetter::UponLeavingGTest() + GTEST_LOCK_EXCLUDED_(mutex_) { +} + +const char* const +OsStackTraceGetter::kElidedFramesMarker = + "... " GTEST_NAME_ " internal frames ..."; + +// A helper class that creates the premature-exit file in its +// constructor and deletes the file in its destructor. +class ScopedPrematureExitFile { + public: + explicit ScopedPrematureExitFile(const char* premature_exit_filepath) + : premature_exit_filepath_(premature_exit_filepath) { + // If a path to the premature-exit file is specified... + if (premature_exit_filepath != NULL && *premature_exit_filepath != '\0') { + // create the file with a single "0" character in it. I/O + // errors are ignored as there's nothing better we can do and we + // don't want to fail the test because of this. + FILE* pfile = posix::FOpen(premature_exit_filepath, "w"); + fwrite("0", 1, 1, pfile); + fclose(pfile); + } + } + + ~ScopedPrematureExitFile() { + if (premature_exit_filepath_ != NULL && *premature_exit_filepath_ != '\0') { + remove(premature_exit_filepath_); + } + } + + private: + const char* const premature_exit_filepath_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(ScopedPrematureExitFile); +}; + +} // namespace internal + +// class TestEventListeners + +TestEventListeners::TestEventListeners() + : repeater_(new internal::TestEventRepeater()), + default_result_printer_(NULL), + default_xml_generator_(NULL) { +} + +TestEventListeners::~TestEventListeners() { delete repeater_; } + +// Returns the standard listener responsible for the default console +// output. Can be removed from the listeners list to shut down default +// console output. Note that removing this object from the listener list +// with Release transfers its ownership to the user. +void TestEventListeners::Append(TestEventListener* listener) { + repeater_->Append(listener); +} + +// Removes the given event listener from the list and returns it. It then +// becomes the caller's responsibility to delete the listener. Returns +// NULL if the listener is not found in the list. +TestEventListener* TestEventListeners::Release(TestEventListener* listener) { + if (listener == default_result_printer_) + default_result_printer_ = NULL; + else if (listener == default_xml_generator_) + default_xml_generator_ = NULL; + return repeater_->Release(listener); +} + +// Returns repeater that broadcasts the TestEventListener events to all +// subscribers. +TestEventListener* TestEventListeners::repeater() { return repeater_; } + +// Sets the default_result_printer attribute to the provided listener. +// The listener is also added to the listener list and previous +// default_result_printer is removed from it and deleted. The listener can +// also be NULL in which case it will not be added to the list. Does +// nothing if the previous and the current listener objects are the same. +void TestEventListeners::SetDefaultResultPrinter(TestEventListener* listener) { + if (default_result_printer_ != listener) { + // It is an error to pass this method a listener that is already in the + // list. + delete Release(default_result_printer_); + default_result_printer_ = listener; + if (listener != NULL) + Append(listener); + } +} + +// Sets the default_xml_generator attribute to the provided listener. The +// listener is also added to the listener list and previous +// default_xml_generator is removed from it and deleted. The listener can +// also be NULL in which case it will not be added to the list. Does +// nothing if the previous and the current listener objects are the same. +void TestEventListeners::SetDefaultXmlGenerator(TestEventListener* listener) { + if (default_xml_generator_ != listener) { + // It is an error to pass this method a listener that is already in the + // list. + delete Release(default_xml_generator_); + default_xml_generator_ = listener; + if (listener != NULL) + Append(listener); + } +} + +// Controls whether events will be forwarded by the repeater to the +// listeners in the list. +bool TestEventListeners::EventForwardingEnabled() const { + return repeater_->forwarding_enabled(); +} + +void TestEventListeners::SuppressEventForwarding() { + repeater_->set_forwarding_enabled(false); +} + +// class UnitTest + +// Gets the singleton UnitTest object. The first time this method is +// called, a UnitTest object is constructed and returned. Consecutive +// calls will return the same object. +// +// We don't protect this under mutex_ as a user is not supposed to +// call this before main() starts, from which point on the return +// value will never change. +UnitTest* UnitTest::GetInstance() { + // When compiled with MSVC 7.1 in optimized mode, destroying the + // UnitTest object upon exiting the program messes up the exit code, + // causing successful tests to appear failed. We have to use a + // different implementation in this case to bypass the compiler bug. + // This implementation makes the compiler happy, at the cost of + // leaking the UnitTest object. + + // CodeGear C++Builder insists on a public destructor for the + // default implementation. Use this implementation to keep good OO + // design with private destructor. + +#if (_MSC_VER == 1310 && !defined(_DEBUG)) || defined(__BORLANDC__) + static UnitTest* const instance = new UnitTest; + return instance; +#else + static UnitTest instance; + return &instance; +#endif // (_MSC_VER == 1310 && !defined(_DEBUG)) || defined(__BORLANDC__) +} + +// Gets the number of successful test cases. +int UnitTest::successful_test_case_count() const { + return impl()->successful_test_case_count(); +} + +// Gets the number of failed test cases. +int UnitTest::failed_test_case_count() const { + return impl()->failed_test_case_count(); +} + +// Gets the number of all test cases. +int UnitTest::total_test_case_count() const { + return impl()->total_test_case_count(); +} + +// Gets the number of all test cases that contain at least one test +// that should run. +int UnitTest::test_case_to_run_count() const { + return impl()->test_case_to_run_count(); +} + +// Gets the number of successful tests. +int UnitTest::successful_test_count() const { + return impl()->successful_test_count(); +} + +// Gets the number of failed tests. +int UnitTest::failed_test_count() const { return impl()->failed_test_count(); } + +// Gets the number of disabled tests that will be reported in the XML report. +int UnitTest::reportable_disabled_test_count() const { + return impl()->reportable_disabled_test_count(); +} + +// Gets the number of disabled tests. +int UnitTest::disabled_test_count() const { + return impl()->disabled_test_count(); +} + +// Gets the number of tests to be printed in the XML report. +int UnitTest::reportable_test_count() const { + return impl()->reportable_test_count(); +} + +// Gets the number of all tests. +int UnitTest::total_test_count() const { return impl()->total_test_count(); } + +// Gets the number of tests that should run. +int UnitTest::test_to_run_count() const { return impl()->test_to_run_count(); } + +// Gets the time of the test program start, in ms from the start of the +// UNIX epoch. +internal::TimeInMillis UnitTest::start_timestamp() const { + return impl()->start_timestamp(); +} + +// Gets the elapsed time, in milliseconds. +internal::TimeInMillis UnitTest::elapsed_time() const { + return impl()->elapsed_time(); +} + +// Returns true iff the unit test passed (i.e. all test cases passed). +bool UnitTest::Passed() const { return impl()->Passed(); } + +// Returns true iff the unit test failed (i.e. some test case failed +// or something outside of all tests failed). +bool UnitTest::Failed() const { return impl()->Failed(); } + +// Gets the i-th test case among all the test cases. i can range from 0 to +// total_test_case_count() - 1. If i is not in that range, returns NULL. +const TestCase* UnitTest::GetTestCase(int i) const { + return impl()->GetTestCase(i); +} + +// Returns the TestResult containing information on test failures and +// properties logged outside of individual test cases. +const TestResult& UnitTest::ad_hoc_test_result() const { + return *impl()->ad_hoc_test_result(); +} + +// Gets the i-th test case among all the test cases. i can range from 0 to +// total_test_case_count() - 1. If i is not in that range, returns NULL. +TestCase* UnitTest::GetMutableTestCase(int i) { + return impl()->GetMutableTestCase(i); +} + +// Returns the list of event listeners that can be used to track events +// inside Google Test. +TestEventListeners& UnitTest::listeners() { + return *impl()->listeners(); +} + +// Registers and returns a global test environment. When a test +// program is run, all global test environments will be set-up in the +// order they were registered. After all tests in the program have +// finished, all global test environments will be torn-down in the +// *reverse* order they were registered. +// +// The UnitTest object takes ownership of the given environment. +// +// We don't protect this under mutex_, as we only support calling it +// from the main thread. +Environment* UnitTest::AddEnvironment(Environment* env) { + if (env == NULL) { + return NULL; + } + + impl_->environments().push_back(env); + return env; +} + +// Adds a TestPartResult to the current TestResult object. All Google Test +// assertion macros (e.g. ASSERT_TRUE, EXPECT_EQ, etc) eventually call +// this to report their results. The user code should use the +// assertion macros instead of calling this directly. +void UnitTest::AddTestPartResult( + TestPartResult::Type result_type, + const char* file_name, + int line_number, + const std::string& message, + const std::string& os_stack_trace) GTEST_LOCK_EXCLUDED_(mutex_) { + Message msg; + msg << message; + + internal::MutexLock lock(&mutex_); + if (impl_->gtest_trace_stack().size() > 0) { + msg << "\n" << GTEST_NAME_ << " trace:"; + + for (int i = static_cast(impl_->gtest_trace_stack().size()); + i > 0; --i) { + const internal::TraceInfo& trace = impl_->gtest_trace_stack()[i - 1]; + msg << "\n" << internal::FormatFileLocation(trace.file, trace.line) + << " " << trace.message; + } + } + + if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) { + msg << internal::kStackTraceMarker << os_stack_trace; + } + + const TestPartResult result = + TestPartResult(result_type, file_name, line_number, + msg.GetString().c_str()); + impl_->GetTestPartResultReporterForCurrentThread()-> + ReportTestPartResult(result); + + if (result_type != TestPartResult::kSuccess) { + // gtest_break_on_failure takes precedence over + // gtest_throw_on_failure. This allows a user to set the latter + // in the code (perhaps in order to use Google Test assertions + // with another testing framework) and specify the former on the + // command line for debugging. + if (GTEST_FLAG(break_on_failure)) { +#if GTEST_OS_WINDOWS + // Using DebugBreak on Windows allows gtest to still break into a debugger + // when a failure happens and both the --gtest_break_on_failure and + // the --gtest_catch_exceptions flags are specified. + DebugBreak(); +#else + // Dereference NULL through a volatile pointer to prevent the compiler + // from removing. We use this rather than abort() or __builtin_trap() for + // portability: Symbian doesn't implement abort() well, and some debuggers + // don't correctly trap abort(). + *static_cast(NULL) = 1; +#endif // GTEST_OS_WINDOWS + } else if (GTEST_FLAG(throw_on_failure)) { +#if GTEST_HAS_EXCEPTIONS + throw internal::GoogleTestFailureException(result); +#else + // We cannot call abort() as it generates a pop-up in debug mode + // that cannot be suppressed in VC 7.1 or below. + exit(1); +#endif + } + } +} + +// Adds a TestProperty to the current TestResult object when invoked from +// inside a test, to current TestCase's ad_hoc_test_result_ when invoked +// from SetUpTestCase or TearDownTestCase, or to the global property set +// when invoked elsewhere. If the result already contains a property with +// the same key, the value will be updated. +void UnitTest::RecordProperty(const std::string& key, + const std::string& value) { + impl_->RecordProperty(TestProperty(key, value)); +} + +// Runs all tests in this UnitTest object and prints the result. +// Returns 0 if successful, or 1 otherwise. +// +// We don't protect this under mutex_, as we only support calling it +// from the main thread. +int UnitTest::Run() { + const bool in_death_test_child_process = + internal::GTEST_FLAG(internal_run_death_test).length() > 0; + + // Google Test implements this protocol for catching that a test + // program exits before returning control to Google Test: + // + // 1. Upon start, Google Test creates a file whose absolute path + // is specified by the environment variable + // TEST_PREMATURE_EXIT_FILE. + // 2. When Google Test has finished its work, it deletes the file. + // + // This allows a test runner to set TEST_PREMATURE_EXIT_FILE before + // running a Google-Test-based test program and check the existence + // of the file at the end of the test execution to see if it has + // exited prematurely. + + // If we are in the child process of a death test, don't + // create/delete the premature exit file, as doing so is unnecessary + // and will confuse the parent process. Otherwise, create/delete + // the file upon entering/leaving this function. If the program + // somehow exits before this function has a chance to return, the + // premature-exit file will be left undeleted, causing a test runner + // that understands the premature-exit-file protocol to report the + // test as having failed. + const internal::ScopedPrematureExitFile premature_exit_file( + in_death_test_child_process ? + NULL : internal::posix::GetEnv("TEST_PREMATURE_EXIT_FILE")); + + // Captures the value of GTEST_FLAG(catch_exceptions). This value will be + // used for the duration of the program. + impl()->set_catch_exceptions(GTEST_FLAG(catch_exceptions)); + +#if GTEST_HAS_SEH + // Either the user wants Google Test to catch exceptions thrown by the + // tests or this is executing in the context of death test child + // process. In either case the user does not want to see pop-up dialogs + // about crashes - they are expected. + if (impl()->catch_exceptions() || in_death_test_child_process) { +# if !GTEST_OS_WINDOWS_MOBILE + // SetErrorMode doesn't exist on CE. + SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOALIGNMENTFAULTEXCEPT | + SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); +# endif // !GTEST_OS_WINDOWS_MOBILE + +# if (defined(_MSC_VER) || GTEST_OS_WINDOWS_MINGW) && !GTEST_OS_WINDOWS_MOBILE + // Death test children can be terminated with _abort(). On Windows, + // _abort() can show a dialog with a warning message. This forces the + // abort message to go to stderr instead. + _set_error_mode(_OUT_TO_STDERR); +# endif + +# if _MSC_VER >= 1400 && !GTEST_OS_WINDOWS_MOBILE + // In the debug version, Visual Studio pops up a separate dialog + // offering a choice to debug the aborted program. We need to suppress + // this dialog or it will pop up for every EXPECT/ASSERT_DEATH statement + // executed. Google Test will notify the user of any unexpected + // failure via stderr. + // + // VC++ doesn't define _set_abort_behavior() prior to the version 8.0. + // Users of prior VC versions shall suffer the agony and pain of + // clicking through the countless debug dialogs. + // TODO(vladl@google.com): find a way to suppress the abort dialog() in the + // debug mode when compiled with VC 7.1 or lower. + if (!GTEST_FLAG(break_on_failure)) + _set_abort_behavior( + 0x0, // Clear the following flags: + _WRITE_ABORT_MSG | _CALL_REPORTFAULT); // pop-up window, core dump. +# endif + } +#endif // GTEST_HAS_SEH + + return internal::HandleExceptionsInMethodIfSupported( + impl(), + &internal::UnitTestImpl::RunAllTests, + "auxiliary test code (environments or event listeners)") ? 0 : 1; +} + +// Returns the working directory when the first TEST() or TEST_F() was +// executed. +const char* UnitTest::original_working_dir() const { + return impl_->original_working_dir_.c_str(); +} + +// Returns the TestCase object for the test that's currently running, +// or NULL if no test is running. +const TestCase* UnitTest::current_test_case() const + GTEST_LOCK_EXCLUDED_(mutex_) { + internal::MutexLock lock(&mutex_); + return impl_->current_test_case(); +} + +// Returns the TestInfo object for the test that's currently running, +// or NULL if no test is running. +const TestInfo* UnitTest::current_test_info() const + GTEST_LOCK_EXCLUDED_(mutex_) { + internal::MutexLock lock(&mutex_); + return impl_->current_test_info(); +} + +// Returns the random seed used at the start of the current test run. +int UnitTest::random_seed() const { return impl_->random_seed(); } + +#if GTEST_HAS_PARAM_TEST +// Returns ParameterizedTestCaseRegistry object used to keep track of +// value-parameterized tests and instantiate and register them. +internal::ParameterizedTestCaseRegistry& + UnitTest::parameterized_test_registry() + GTEST_LOCK_EXCLUDED_(mutex_) { + return impl_->parameterized_test_registry(); +} +#endif // GTEST_HAS_PARAM_TEST + +// Creates an empty UnitTest. +UnitTest::UnitTest() { + impl_ = new internal::UnitTestImpl(this); +} + +// Destructor of UnitTest. +UnitTest::~UnitTest() { + delete impl_; +} + +// Pushes a trace defined by SCOPED_TRACE() on to the per-thread +// Google Test trace stack. +void UnitTest::PushGTestTrace(const internal::TraceInfo& trace) + GTEST_LOCK_EXCLUDED_(mutex_) { + internal::MutexLock lock(&mutex_); + impl_->gtest_trace_stack().push_back(trace); +} + +// Pops a trace from the per-thread Google Test trace stack. +void UnitTest::PopGTestTrace() + GTEST_LOCK_EXCLUDED_(mutex_) { + internal::MutexLock lock(&mutex_); + impl_->gtest_trace_stack().pop_back(); +} + +namespace internal { + +UnitTestImpl::UnitTestImpl(UnitTest* parent) + : parent_(parent), +#ifdef _MSC_VER +# pragma warning(push) // Saves the current warning state. +# pragma warning(disable:4355) // Temporarily disables warning 4355 + // (using this in initializer). + default_global_test_part_result_reporter_(this), + default_per_thread_test_part_result_reporter_(this), +# pragma warning(pop) // Restores the warning state again. +#else + default_global_test_part_result_reporter_(this), + default_per_thread_test_part_result_reporter_(this), +#endif // _MSC_VER + global_test_part_result_repoter_( + &default_global_test_part_result_reporter_), + per_thread_test_part_result_reporter_( + &default_per_thread_test_part_result_reporter_), +#if GTEST_HAS_PARAM_TEST + parameterized_test_registry_(), + parameterized_tests_registered_(false), +#endif // GTEST_HAS_PARAM_TEST + last_death_test_case_(-1), + current_test_case_(NULL), + current_test_info_(NULL), + ad_hoc_test_result_(), + os_stack_trace_getter_(NULL), + post_flag_parse_init_performed_(false), + random_seed_(0), // Will be overridden by the flag before first use. + random_(0), // Will be reseeded before first use. + start_timestamp_(0), + elapsed_time_(0), +#if GTEST_HAS_DEATH_TEST + death_test_factory_(new DefaultDeathTestFactory), +#endif + // Will be overridden by the flag before first use. + catch_exceptions_(false) { + listeners()->SetDefaultResultPrinter(new PrettyUnitTestResultPrinter); +} + +UnitTestImpl::~UnitTestImpl() { + // Deletes every TestCase. + ForEach(test_cases_, internal::Delete); + + // Deletes every Environment. + ForEach(environments_, internal::Delete); + + delete os_stack_trace_getter_; +} + +// Adds a TestProperty to the current TestResult object when invoked in a +// context of a test, to current test case's ad_hoc_test_result when invoke +// from SetUpTestCase/TearDownTestCase, or to the global property set +// otherwise. If the result already contains a property with the same key, +// the value will be updated. +void UnitTestImpl::RecordProperty(const TestProperty& test_property) { + std::string xml_element; + TestResult* test_result; // TestResult appropriate for property recording. + + if (current_test_info_ != NULL) { + xml_element = "testcase"; + test_result = &(current_test_info_->result_); + } else if (current_test_case_ != NULL) { + xml_element = "testsuite"; + test_result = &(current_test_case_->ad_hoc_test_result_); + } else { + xml_element = "testsuites"; + test_result = &ad_hoc_test_result_; + } + test_result->RecordProperty(xml_element, test_property); +} + +#if GTEST_HAS_DEATH_TEST +// Disables event forwarding if the control is currently in a death test +// subprocess. Must not be called before InitGoogleTest. +void UnitTestImpl::SuppressTestEventsIfInSubprocess() { + if (internal_run_death_test_flag_.get() != NULL) + listeners()->SuppressEventForwarding(); +} +#endif // GTEST_HAS_DEATH_TEST + +// Initializes event listeners performing XML output as specified by +// UnitTestOptions. Must not be called before InitGoogleTest. +void UnitTestImpl::ConfigureXmlOutput() { + const std::string& output_format = UnitTestOptions::GetOutputFormat(); + if (output_format == "xml") { + listeners()->SetDefaultXmlGenerator(new XmlUnitTestResultPrinter( + UnitTestOptions::GetAbsolutePathToOutputFile().c_str())); + } else if (output_format != "") { + printf("WARNING: unrecognized output format \"%s\" ignored.\n", + output_format.c_str()); + fflush(stdout); + } +} + +#if GTEST_CAN_STREAM_RESULTS_ +// Initializes event listeners for streaming test results in string form. +// Must not be called before InitGoogleTest. +void UnitTestImpl::ConfigureStreamingOutput() { + const std::string& target = GTEST_FLAG(stream_result_to); + if (!target.empty()) { + const size_t pos = target.find(':'); + if (pos != std::string::npos) { + listeners()->Append(new StreamingListener(target.substr(0, pos), + target.substr(pos+1))); + } else { + printf("WARNING: unrecognized streaming target \"%s\" ignored.\n", + target.c_str()); + fflush(stdout); + } + } +} +#endif // GTEST_CAN_STREAM_RESULTS_ + +// Performs initialization dependent upon flag values obtained in +// ParseGoogleTestFlagsOnly. Is called from InitGoogleTest after the call to +// ParseGoogleTestFlagsOnly. In case a user neglects to call InitGoogleTest +// this function is also called from RunAllTests. Since this function can be +// called more than once, it has to be idempotent. +void UnitTestImpl::PostFlagParsingInit() { + // Ensures that this function does not execute more than once. + if (!post_flag_parse_init_performed_) { + post_flag_parse_init_performed_ = true; + +#if GTEST_HAS_DEATH_TEST + InitDeathTestSubprocessControlInfo(); + SuppressTestEventsIfInSubprocess(); +#endif // GTEST_HAS_DEATH_TEST + + // Registers parameterized tests. This makes parameterized tests + // available to the UnitTest reflection API without running + // RUN_ALL_TESTS. + RegisterParameterizedTests(); + + // Configures listeners for XML output. This makes it possible for users + // to shut down the default XML output before invoking RUN_ALL_TESTS. + ConfigureXmlOutput(); + +#if GTEST_CAN_STREAM_RESULTS_ + // Configures listeners for streaming test results to the specified server. + ConfigureStreamingOutput(); +#endif // GTEST_CAN_STREAM_RESULTS_ + } +} + +// A predicate that checks the name of a TestCase against a known +// value. +// +// This is used for implementation of the UnitTest class only. We put +// it in the anonymous namespace to prevent polluting the outer +// namespace. +// +// TestCaseNameIs is copyable. +class TestCaseNameIs { + public: + // Constructor. + explicit TestCaseNameIs(const std::string& name) + : name_(name) {} + + // Returns true iff the name of test_case matches name_. + bool operator()(const TestCase* test_case) const { + return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0; + } + + private: + std::string name_; +}; + +// Finds and returns a TestCase with the given name. If one doesn't +// exist, creates one and returns it. It's the CALLER'S +// RESPONSIBILITY to ensure that this function is only called WHEN THE +// TESTS ARE NOT SHUFFLED. +// +// Arguments: +// +// test_case_name: name of the test case +// type_param: the name of the test case's type parameter, or NULL if +// this is not a typed or a type-parameterized test case. +// set_up_tc: pointer to the function that sets up the test case +// tear_down_tc: pointer to the function that tears down the test case +TestCase* UnitTestImpl::GetTestCase(const char* test_case_name, + const char* type_param, + Test::SetUpTestCaseFunc set_up_tc, + Test::TearDownTestCaseFunc tear_down_tc) { + // Can we find a TestCase with the given name? + const std::vector::const_iterator test_case = + std::find_if(test_cases_.begin(), test_cases_.end(), + TestCaseNameIs(test_case_name)); + + if (test_case != test_cases_.end()) + return *test_case; + + // No. Let's create one. + TestCase* const new_test_case = + new TestCase(test_case_name, type_param, set_up_tc, tear_down_tc); + + // Is this a death test case? + if (internal::UnitTestOptions::MatchesFilter(test_case_name, + kDeathTestCaseFilter)) { + // Yes. Inserts the test case after the last death test case + // defined so far. This only works when the test cases haven't + // been shuffled. Otherwise we may end up running a death test + // after a non-death test. + ++last_death_test_case_; + test_cases_.insert(test_cases_.begin() + last_death_test_case_, + new_test_case); + } else { + // No. Appends to the end of the list. + test_cases_.push_back(new_test_case); + } + + test_case_indices_.push_back(static_cast(test_case_indices_.size())); + return new_test_case; +} + +// Helpers for setting up / tearing down the given environment. They +// are for use in the ForEach() function. +static void SetUpEnvironment(Environment* env) { env->SetUp(); } +static void TearDownEnvironment(Environment* env) { env->TearDown(); } + +// Runs all tests in this UnitTest object, prints the result, and +// returns true if all tests are successful. If any exception is +// thrown during a test, the test is considered to be failed, but the +// rest of the tests will still be run. +// +// When parameterized tests are enabled, it expands and registers +// parameterized tests first in RegisterParameterizedTests(). +// All other functions called from RunAllTests() may safely assume that +// parameterized tests are ready to be counted and run. +bool UnitTestImpl::RunAllTests() { + // Makes sure InitGoogleTest() was called. + if (!GTestIsInitialized()) { + printf("%s", + "\nThis test program did NOT call ::testing::InitGoogleTest " + "before calling RUN_ALL_TESTS(). Please fix it.\n"); + return false; + } + + // Do not run any test if the --help flag was specified. + if (g_help_flag) + return true; + + // Repeats the call to the post-flag parsing initialization in case the + // user didn't call InitGoogleTest. + PostFlagParsingInit(); + + // Even if sharding is not on, test runners may want to use the + // GTEST_SHARD_STATUS_FILE to query whether the test supports the sharding + // protocol. + internal::WriteToShardStatusFileIfNeeded(); + + // True iff we are in a subprocess for running a thread-safe-style + // death test. + bool in_subprocess_for_death_test = false; + +#if GTEST_HAS_DEATH_TEST + in_subprocess_for_death_test = (internal_run_death_test_flag_.get() != NULL); +#endif // GTEST_HAS_DEATH_TEST + + const bool should_shard = ShouldShard(kTestTotalShards, kTestShardIndex, + in_subprocess_for_death_test); + + // Compares the full test names with the filter to decide which + // tests to run. + const bool has_tests_to_run = FilterTests(should_shard + ? HONOR_SHARDING_PROTOCOL + : IGNORE_SHARDING_PROTOCOL) > 0; + + // Lists the tests and exits if the --gtest_list_tests flag was specified. + if (GTEST_FLAG(list_tests)) { + // This must be called *after* FilterTests() has been called. + ListTestsMatchingFilter(); + return true; + } + + random_seed_ = GTEST_FLAG(shuffle) ? + GetRandomSeedFromFlag(GTEST_FLAG(random_seed)) : 0; + + // True iff at least one test has failed. + bool failed = false; + + TestEventListener* repeater = listeners()->repeater(); + + start_timestamp_ = GetTimeInMillis(); + repeater->OnTestProgramStart(*parent_); + + // How many times to repeat the tests? We don't want to repeat them + // when we are inside the subprocess of a death test. + const int repeat = in_subprocess_for_death_test ? 1 : GTEST_FLAG(repeat); + // Repeats forever if the repeat count is negative. + const bool forever = repeat < 0; + for (int i = 0; forever || i != repeat; i++) { + // We want to preserve failures generated by ad-hoc test + // assertions executed before RUN_ALL_TESTS(). + ClearNonAdHocTestResult(); + + const TimeInMillis start = GetTimeInMillis(); + + // Shuffles test cases and tests if requested. + if (has_tests_to_run && GTEST_FLAG(shuffle)) { + random()->Reseed(random_seed_); + // This should be done before calling OnTestIterationStart(), + // such that a test event listener can see the actual test order + // in the event. + ShuffleTests(); + } + + // Tells the unit test event listeners that the tests are about to start. + repeater->OnTestIterationStart(*parent_, i); + + // Runs each test case if there is at least one test to run. + if (has_tests_to_run) { + // Sets up all environments beforehand. + repeater->OnEnvironmentsSetUpStart(*parent_); + ForEach(environments_, SetUpEnvironment); + repeater->OnEnvironmentsSetUpEnd(*parent_); + + // Runs the tests only if there was no fatal failure during global + // set-up. + if (!Test::HasFatalFailure()) { + for (int test_index = 0; test_index < total_test_case_count(); + test_index++) { + GetMutableTestCase(test_index)->Run(); + } + } + + // Tears down all environments in reverse order afterwards. + repeater->OnEnvironmentsTearDownStart(*parent_); + std::for_each(environments_.rbegin(), environments_.rend(), + TearDownEnvironment); + repeater->OnEnvironmentsTearDownEnd(*parent_); + } + + elapsed_time_ = GetTimeInMillis() - start; + + // Tells the unit test event listener that the tests have just finished. + repeater->OnTestIterationEnd(*parent_, i); + + // Gets the result and clears it. + if (!Passed()) { + failed = true; + } + + // Restores the original test order after the iteration. This + // allows the user to quickly repro a failure that happens in the + // N-th iteration without repeating the first (N - 1) iterations. + // This is not enclosed in "if (GTEST_FLAG(shuffle)) { ... }", in + // case the user somehow changes the value of the flag somewhere + // (it's always safe to unshuffle the tests). + UnshuffleTests(); + + if (GTEST_FLAG(shuffle)) { + // Picks a new random seed for each iteration. + random_seed_ = GetNextRandomSeed(random_seed_); + } + } + + repeater->OnTestProgramEnd(*parent_); + + return !failed; +} + +// Reads the GTEST_SHARD_STATUS_FILE environment variable, and creates the file +// if the variable is present. If a file already exists at this location, this +// function will write over it. If the variable is present, but the file cannot +// be created, prints an error and exits. +void WriteToShardStatusFileIfNeeded() { + const char* const test_shard_file = posix::GetEnv(kTestShardStatusFile); + if (test_shard_file != NULL) { + FILE* const file = posix::FOpen(test_shard_file, "w"); + if (file == NULL) { + ColoredPrintf(COLOR_RED, + "Could not write to the test shard status file \"%s\" " + "specified by the %s environment variable.\n", + test_shard_file, kTestShardStatusFile); + fflush(stdout); + exit(EXIT_FAILURE); + } + fclose(file); + } +} + +// Checks whether sharding is enabled by examining the relevant +// environment variable values. If the variables are present, +// but inconsistent (i.e., shard_index >= total_shards), prints +// an error and exits. If in_subprocess_for_death_test, sharding is +// disabled because it must only be applied to the original test +// process. Otherwise, we could filter out death tests we intended to execute. +bool ShouldShard(const char* total_shards_env, + const char* shard_index_env, + bool in_subprocess_for_death_test) { + if (in_subprocess_for_death_test) { + return false; + } + + const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); + const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1); + + if (total_shards == -1 && shard_index == -1) { + return false; + } else if (total_shards == -1 && shard_index != -1) { + const Message msg = Message() + << "Invalid environment variables: you have " + << kTestShardIndex << " = " << shard_index + << ", but have left " << kTestTotalShards << " unset.\n"; + ColoredPrintf(COLOR_RED, msg.GetString().c_str()); + fflush(stdout); + exit(EXIT_FAILURE); + } else if (total_shards != -1 && shard_index == -1) { + const Message msg = Message() + << "Invalid environment variables: you have " + << kTestTotalShards << " = " << total_shards + << ", but have left " << kTestShardIndex << " unset.\n"; + ColoredPrintf(COLOR_RED, msg.GetString().c_str()); + fflush(stdout); + exit(EXIT_FAILURE); + } else if (shard_index < 0 || shard_index >= total_shards) { + const Message msg = Message() + << "Invalid environment variables: we require 0 <= " + << kTestShardIndex << " < " << kTestTotalShards + << ", but you have " << kTestShardIndex << "=" << shard_index + << ", " << kTestTotalShards << "=" << total_shards << ".\n"; + ColoredPrintf(COLOR_RED, msg.GetString().c_str()); + fflush(stdout); + exit(EXIT_FAILURE); + } + + return total_shards > 1; +} + +// Parses the environment variable var as an Int32. If it is unset, +// returns default_val. If it is not an Int32, prints an error +// and aborts. +Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) { + const char* str_val = posix::GetEnv(var); + if (str_val == NULL) { + return default_val; + } + + Int32 result; + if (!ParseInt32(Message() << "The value of environment variable " << var, + str_val, &result)) { + exit(EXIT_FAILURE); + } + return result; +} + +// Given the total number of shards, the shard index, and the test id, +// returns true iff the test should be run on this shard. The test id is +// some arbitrary but unique non-negative integer assigned to each test +// method. Assumes that 0 <= shard_index < total_shards. +bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { + return (test_id % total_shards) == shard_index; +} + +// Compares the name of each test with the user-specified filter to +// decide whether the test should be run, then records the result in +// each TestCase and TestInfo object. +// If shard_tests == true, further filters tests based on sharding +// variables in the environment - see +// http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide. +// Returns the number of tests that should run. +int UnitTestImpl::FilterTests(ReactionToSharding shard_tests) { + const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ? + Int32FromEnvOrDie(kTestTotalShards, -1) : -1; + const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ? + Int32FromEnvOrDie(kTestShardIndex, -1) : -1; + + // num_runnable_tests are the number of tests that will + // run across all shards (i.e., match filter and are not disabled). + // num_selected_tests are the number of tests to be run on + // this shard. + int num_runnable_tests = 0; + int num_selected_tests = 0; + for (size_t i = 0; i < test_cases_.size(); i++) { + TestCase* const test_case = test_cases_[i]; + const std::string &test_case_name = test_case->name(); + test_case->set_should_run(false); + + for (size_t j = 0; j < test_case->test_info_list().size(); j++) { + TestInfo* const test_info = test_case->test_info_list()[j]; + const std::string test_name(test_info->name()); + // A test is disabled if test case name or test name matches + // kDisableTestFilter. + const bool is_disabled = + internal::UnitTestOptions::MatchesFilter(test_case_name, + kDisableTestFilter) || + internal::UnitTestOptions::MatchesFilter(test_name, + kDisableTestFilter); + test_info->is_disabled_ = is_disabled; + + const bool matches_filter = + internal::UnitTestOptions::FilterMatchesTest(test_case_name, + test_name); + test_info->matches_filter_ = matches_filter; + + const bool is_runnable = + (GTEST_FLAG(also_run_disabled_tests) || !is_disabled) && + matches_filter; + + const bool is_selected = is_runnable && + (shard_tests == IGNORE_SHARDING_PROTOCOL || + ShouldRunTestOnShard(total_shards, shard_index, + num_runnable_tests)); + + num_runnable_tests += is_runnable; + num_selected_tests += is_selected; + + test_info->should_run_ = is_selected; + test_case->set_should_run(test_case->should_run() || is_selected); + } + } + return num_selected_tests; +} + +// Prints the given C-string on a single line by replacing all '\n' +// characters with string "\\n". If the output takes more than +// max_length characters, only prints the first max_length characters +// and "...". +static void PrintOnOneLine(const char* str, int max_length) { + if (str != NULL) { + for (int i = 0; *str != '\0'; ++str) { + if (i >= max_length) { + printf("..."); + break; + } + if (*str == '\n') { + printf("\\n"); + i += 2; + } else { + printf("%c", *str); + ++i; + } + } + } +} + +// Prints the names of the tests matching the user-specified filter flag. +void UnitTestImpl::ListTestsMatchingFilter() { + // Print at most this many characters for each type/value parameter. + const int kMaxParamLength = 250; + + for (size_t i = 0; i < test_cases_.size(); i++) { + const TestCase* const test_case = test_cases_[i]; + bool printed_test_case_name = false; + + for (size_t j = 0; j < test_case->test_info_list().size(); j++) { + const TestInfo* const test_info = + test_case->test_info_list()[j]; + if (test_info->matches_filter_) { + if (!printed_test_case_name) { + printed_test_case_name = true; + printf("%s.", test_case->name()); + if (test_case->type_param() != NULL) { + printf(" # %s = ", kTypeParamLabel); + // We print the type parameter on a single line to make + // the output easy to parse by a program. + PrintOnOneLine(test_case->type_param(), kMaxParamLength); + } + printf("\n"); + } + printf(" %s", test_info->name()); + if (test_info->value_param() != NULL) { + printf(" # %s = ", kValueParamLabel); + // We print the value parameter on a single line to make the + // output easy to parse by a program. + PrintOnOneLine(test_info->value_param(), kMaxParamLength); + } + printf("\n"); + } + } + } + fflush(stdout); +} + +// Sets the OS stack trace getter. +// +// Does nothing if the input and the current OS stack trace getter are +// the same; otherwise, deletes the old getter and makes the input the +// current getter. +void UnitTestImpl::set_os_stack_trace_getter( + OsStackTraceGetterInterface* getter) { + if (os_stack_trace_getter_ != getter) { + delete os_stack_trace_getter_; + os_stack_trace_getter_ = getter; + } +} + +// Returns the current OS stack trace getter if it is not NULL; +// otherwise, creates an OsStackTraceGetter, makes it the current +// getter, and returns it. +OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() { + if (os_stack_trace_getter_ == NULL) { + os_stack_trace_getter_ = new OsStackTraceGetter; + } + + return os_stack_trace_getter_; +} + +// Returns the TestResult for the test that's currently running, or +// the TestResult for the ad hoc test if no test is running. +TestResult* UnitTestImpl::current_test_result() { + return current_test_info_ ? + &(current_test_info_->result_) : &ad_hoc_test_result_; +} + +// Shuffles all test cases, and the tests within each test case, +// making sure that death tests are still run first. +void UnitTestImpl::ShuffleTests() { + // Shuffles the death test cases. + ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); + + // Shuffles the non-death test cases. + ShuffleRange(random(), last_death_test_case_ + 1, + static_cast(test_cases_.size()), &test_case_indices_); + + // Shuffles the tests inside each test case. + for (size_t i = 0; i < test_cases_.size(); i++) { + test_cases_[i]->ShuffleTests(random()); + } +} + +// Restores the test cases and tests to their order before the first shuffle. +void UnitTestImpl::UnshuffleTests() { + for (size_t i = 0; i < test_cases_.size(); i++) { + // Unshuffles the tests in each test case. + test_cases_[i]->UnshuffleTests(); + // Resets the index of each test case. + test_case_indices_[i] = static_cast(i); + } +} + +// Returns the current OS stack trace as an std::string. +// +// The maximum number of stack frames to be included is specified by +// the gtest_stack_trace_depth flag. The skip_count parameter +// specifies the number of top frames to be skipped, which doesn't +// count against the number of frames to be included. +// +// For example, if Foo() calls Bar(), which in turn calls +// GetCurrentOsStackTraceExceptTop(..., 1), Foo() will be included in +// the trace but Bar() and GetCurrentOsStackTraceExceptTop() won't. +std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/, + int skip_count) { + // We pass skip_count + 1 to skip this wrapper function in addition + // to what the user really wants to skip. + return GetUnitTestImpl()->CurrentOsStackTraceExceptTop(skip_count + 1); +} + +// Used by the GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ macro to +// suppress unreachable code warnings. +namespace { +class ClassUniqueToAlwaysTrue {}; +} + +bool IsTrue(bool condition) { return condition; } + +bool AlwaysTrue() { +#if GTEST_HAS_EXCEPTIONS + // This condition is always false so AlwaysTrue() never actually throws, + // but it makes the compiler think that it may throw. + if (IsTrue(false)) + throw ClassUniqueToAlwaysTrue(); +#endif // GTEST_HAS_EXCEPTIONS + return true; +} + +// If *pstr starts with the given prefix, modifies *pstr to be right +// past the prefix and returns true; otherwise leaves *pstr unchanged +// and returns false. None of pstr, *pstr, and prefix can be NULL. +bool SkipPrefix(const char* prefix, const char** pstr) { + const size_t prefix_len = strlen(prefix); + if (strncmp(*pstr, prefix, prefix_len) == 0) { + *pstr += prefix_len; + return true; + } + return false; +} + +// Parses a string as a command line flag. The string should have +// the format "--flag=value". When def_optional is true, the "=value" +// part can be omitted. +// +// Returns the value of the flag, or NULL if the parsing failed. +const char* ParseFlagValue(const char* str, + const char* flag, + bool def_optional) { + // str and flag must not be NULL. + if (str == NULL || flag == NULL) return NULL; + + // The flag must start with "--" followed by GTEST_FLAG_PREFIX_. + const std::string flag_str = std::string("--") + GTEST_FLAG_PREFIX_ + flag; + const size_t flag_len = flag_str.length(); + if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL; + + // Skips the flag name. + const char* flag_end = str + flag_len; + + // When def_optional is true, it's OK to not have a "=value" part. + if (def_optional && (flag_end[0] == '\0')) { + return flag_end; + } + + // If def_optional is true and there are more characters after the + // flag name, or if def_optional is false, there must be a '=' after + // the flag name. + if (flag_end[0] != '=') return NULL; + + // Returns the string after "=". + return flag_end + 1; +} + +// Parses a string for a bool flag, in the form of either +// "--flag=value" or "--flag". +// +// In the former case, the value is taken as true as long as it does +// not start with '0', 'f', or 'F'. +// +// In the latter case, the value is taken as true. +// +// On success, stores the value of the flag in *value, and returns +// true. On failure, returns false without changing *value. +bool ParseBoolFlag(const char* str, const char* flag, bool* value) { + // Gets the value of the flag as a string. + const char* const value_str = ParseFlagValue(str, flag, true); + + // Aborts if the parsing failed. + if (value_str == NULL) return false; + + // Converts the string value to a bool. + *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); + return true; +} + +// Parses a string for an Int32 flag, in the form of +// "--flag=value". +// +// On success, stores the value of the flag in *value, and returns +// true. On failure, returns false without changing *value. +bool ParseInt32Flag(const char* str, const char* flag, Int32* value) { + // Gets the value of the flag as a string. + const char* const value_str = ParseFlagValue(str, flag, false); + + // Aborts if the parsing failed. + if (value_str == NULL) return false; + + // Sets *value to the value of the flag. + return ParseInt32(Message() << "The value of flag --" << flag, + value_str, value); +} + +// Parses a string for a string flag, in the form of +// "--flag=value". +// +// On success, stores the value of the flag in *value, and returns +// true. On failure, returns false without changing *value. +bool ParseStringFlag(const char* str, const char* flag, std::string* value) { + // Gets the value of the flag as a string. + const char* const value_str = ParseFlagValue(str, flag, false); + + // Aborts if the parsing failed. + if (value_str == NULL) return false; + + // Sets *value to the value of the flag. + *value = value_str; + return true; +} + +// Determines whether a string has a prefix that Google Test uses for its +// flags, i.e., starts with GTEST_FLAG_PREFIX_ or GTEST_FLAG_PREFIX_DASH_. +// If Google Test detects that a command line flag has its prefix but is not +// recognized, it will print its help message. Flags starting with +// GTEST_INTERNAL_PREFIX_ followed by "internal_" are considered Google Test +// internal flags and do not trigger the help message. +static bool HasGoogleTestFlagPrefix(const char* str) { + return (SkipPrefix("--", &str) || + SkipPrefix("-", &str) || + SkipPrefix("/", &str)) && + !SkipPrefix(GTEST_FLAG_PREFIX_ "internal_", &str) && + (SkipPrefix(GTEST_FLAG_PREFIX_, &str) || + SkipPrefix(GTEST_FLAG_PREFIX_DASH_, &str)); +} + +// Prints a string containing code-encoded text. The following escape +// sequences can be used in the string to control the text color: +// +// @@ prints a single '@' character. +// @R changes the color to red. +// @G changes the color to green. +// @Y changes the color to yellow. +// @D changes to the default terminal text color. +// +// TODO(wan@google.com): Write tests for this once we add stdout +// capturing to Google Test. +static void PrintColorEncoded(const char* str) { + GTestColor color = COLOR_DEFAULT; // The current color. + + // Conceptually, we split the string into segments divided by escape + // sequences. Then we print one segment at a time. At the end of + // each iteration, the str pointer advances to the beginning of the + // next segment. + for (;;) { + const char* p = strchr(str, '@'); + if (p == NULL) { + ColoredPrintf(color, "%s", str); + return; + } + + ColoredPrintf(color, "%s", std::string(str, p).c_str()); + + const char ch = p[1]; + str = p + 2; + if (ch == '@') { + ColoredPrintf(color, "@"); + } else if (ch == 'D') { + color = COLOR_DEFAULT; + } else if (ch == 'R') { + color = COLOR_RED; + } else if (ch == 'G') { + color = COLOR_GREEN; + } else if (ch == 'Y') { + color = COLOR_YELLOW; + } else { + --str; + } + } +} + +static const char kColorEncodedHelpMessage[] = +"This program contains tests written using " GTEST_NAME_ ". You can use the\n" +"following command line flags to control its behavior:\n" +"\n" +"Test Selection:\n" +" @G--" GTEST_FLAG_PREFIX_ "list_tests@D\n" +" List the names of all tests instead of running them. The name of\n" +" TEST(Foo, Bar) is \"Foo.Bar\".\n" +" @G--" GTEST_FLAG_PREFIX_ "filter=@YPOSTIVE_PATTERNS" + "[@G-@YNEGATIVE_PATTERNS]@D\n" +" Run only the tests whose name matches one of the positive patterns but\n" +" none of the negative patterns. '?' matches any single character; '*'\n" +" matches any substring; ':' separates two patterns.\n" +" @G--" GTEST_FLAG_PREFIX_ "also_run_disabled_tests@D\n" +" Run all disabled tests too.\n" +"\n" +"Test Execution:\n" +" @G--" GTEST_FLAG_PREFIX_ "repeat=@Y[COUNT]@D\n" +" Run the tests repeatedly; use a negative count to repeat forever.\n" +" @G--" GTEST_FLAG_PREFIX_ "shuffle@D\n" +" Randomize tests' orders on every iteration.\n" +" @G--" GTEST_FLAG_PREFIX_ "random_seed=@Y[NUMBER]@D\n" +" Random number seed to use for shuffling test orders (between 1 and\n" +" 99999, or 0 to use a seed based on the current time).\n" +"\n" +"Test Output:\n" +" @G--" GTEST_FLAG_PREFIX_ "color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n" +" Enable/disable colored output. The default is @Gauto@D.\n" +" -@G-" GTEST_FLAG_PREFIX_ "print_time=0@D\n" +" Don't print the elapsed time of each test.\n" +" @G--" GTEST_FLAG_PREFIX_ "output=xml@Y[@G:@YDIRECTORY_PATH@G" + GTEST_PATH_SEP_ "@Y|@G:@YFILE_PATH]@D\n" +" Generate an XML report in the given directory or with the given file\n" +" name. @YFILE_PATH@D defaults to @Gtest_details.xml@D.\n" +#if GTEST_CAN_STREAM_RESULTS_ +" @G--" GTEST_FLAG_PREFIX_ "stream_result_to=@YHOST@G:@YPORT@D\n" +" Stream test results to the given server.\n" +#endif // GTEST_CAN_STREAM_RESULTS_ +"\n" +"Assertion Behavior:\n" +#if GTEST_HAS_DEATH_TEST && !GTEST_OS_WINDOWS +" @G--" GTEST_FLAG_PREFIX_ "death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n" +" Set the default death test style.\n" +#endif // GTEST_HAS_DEATH_TEST && !GTEST_OS_WINDOWS +" @G--" GTEST_FLAG_PREFIX_ "break_on_failure@D\n" +" Turn assertion failures into debugger break-points.\n" +" @G--" GTEST_FLAG_PREFIX_ "throw_on_failure@D\n" +" Turn assertion failures into C++ exceptions.\n" +" @G--" GTEST_FLAG_PREFIX_ "catch_exceptions=0@D\n" +" Do not report exceptions as test failures. Instead, allow them\n" +" to crash the program or throw a pop-up (on Windows).\n" +"\n" +"Except for @G--" GTEST_FLAG_PREFIX_ "list_tests@D, you can alternatively set " + "the corresponding\n" +"environment variable of a flag (all letters in upper-case). For example, to\n" +"disable colored text output, you can either specify @G--" GTEST_FLAG_PREFIX_ + "color=no@D or set\n" +"the @G" GTEST_FLAG_PREFIX_UPPER_ "COLOR@D environment variable to @Gno@D.\n" +"\n" +"For more information, please read the " GTEST_NAME_ " documentation at\n" +"@G" GTEST_PROJECT_URL_ "@D. If you find a bug in " GTEST_NAME_ "\n" +"(not one in your own code or tests), please report it to\n" +"@G<" GTEST_DEV_EMAIL_ ">@D.\n"; + +// Parses the command line for Google Test flags, without initializing +// other parts of Google Test. The type parameter CharType can be +// instantiated to either char or wchar_t. +template +void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) { + for (int i = 1; i < *argc; i++) { + const std::string arg_string = StreamableToString(argv[i]); + const char* const arg = arg_string.c_str(); + + using internal::ParseBoolFlag; + using internal::ParseInt32Flag; + using internal::ParseStringFlag; + + // Do we see a Google Test flag? + if (ParseBoolFlag(arg, kAlsoRunDisabledTestsFlag, + >EST_FLAG(also_run_disabled_tests)) || + ParseBoolFlag(arg, kBreakOnFailureFlag, + >EST_FLAG(break_on_failure)) || + ParseBoolFlag(arg, kCatchExceptionsFlag, + >EST_FLAG(catch_exceptions)) || + ParseStringFlag(arg, kColorFlag, >EST_FLAG(color)) || + ParseStringFlag(arg, kDeathTestStyleFlag, + >EST_FLAG(death_test_style)) || + ParseBoolFlag(arg, kDeathTestUseFork, + >EST_FLAG(death_test_use_fork)) || + ParseStringFlag(arg, kFilterFlag, >EST_FLAG(filter)) || + ParseStringFlag(arg, kInternalRunDeathTestFlag, + >EST_FLAG(internal_run_death_test)) || + ParseBoolFlag(arg, kListTestsFlag, >EST_FLAG(list_tests)) || + ParseStringFlag(arg, kOutputFlag, >EST_FLAG(output)) || + ParseBoolFlag(arg, kPrintTimeFlag, >EST_FLAG(print_time)) || + ParseInt32Flag(arg, kRandomSeedFlag, >EST_FLAG(random_seed)) || + ParseInt32Flag(arg, kRepeatFlag, >EST_FLAG(repeat)) || + ParseBoolFlag(arg, kShuffleFlag, >EST_FLAG(shuffle)) || + ParseInt32Flag(arg, kStackTraceDepthFlag, + >EST_FLAG(stack_trace_depth)) || + ParseStringFlag(arg, kStreamResultToFlag, + >EST_FLAG(stream_result_to)) || + ParseBoolFlag(arg, kThrowOnFailureFlag, + >EST_FLAG(throw_on_failure)) + ) { + // Yes. Shift the remainder of the argv list left by one. Note + // that argv has (*argc + 1) elements, the last one always being + // NULL. The following loop moves the trailing NULL element as + // well. + for (int j = i; j != *argc; j++) { + argv[j] = argv[j + 1]; + } + + // Decrements the argument count. + (*argc)--; + + // We also need to decrement the iterator as we just removed + // an element. + i--; + } else if (arg_string == "--help" || arg_string == "-h" || + arg_string == "-?" || arg_string == "/?" || + HasGoogleTestFlagPrefix(arg)) { + // Both help flag and unrecognized Google Test flags (excluding + // internal ones) trigger help display. + g_help_flag = true; + } + } + + if (g_help_flag) { + // We print the help here instead of in RUN_ALL_TESTS(), as the + // latter may not be called at all if the user is using Google + // Test with another testing framework. + PrintColorEncoded(kColorEncodedHelpMessage); + } +} + +// Parses the command line for Google Test flags, without initializing +// other parts of Google Test. +void ParseGoogleTestFlagsOnly(int* argc, char** argv) { + ParseGoogleTestFlagsOnlyImpl(argc, argv); +} +void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) { + ParseGoogleTestFlagsOnlyImpl(argc, argv); +} + +// The internal implementation of InitGoogleTest(). +// +// The type parameter CharType can be instantiated to either char or +// wchar_t. +template +void InitGoogleTestImpl(int* argc, CharType** argv) { + g_init_gtest_count++; + + // We don't want to run the initialization code twice. + if (g_init_gtest_count != 1) return; + + if (*argc <= 0) return; + + internal::g_executable_path = internal::StreamableToString(argv[0]); + +#if GTEST_HAS_DEATH_TEST + + g_argvs.clear(); + for (int i = 0; i != *argc; i++) { + g_argvs.push_back(StreamableToString(argv[i])); + } + +#endif // GTEST_HAS_DEATH_TEST + + ParseGoogleTestFlagsOnly(argc, argv); + GetUnitTestImpl()->PostFlagParsingInit(); +} + +} // namespace internal + +// Initializes Google Test. This must be called before calling +// RUN_ALL_TESTS(). In particular, it parses a command line for the +// flags that Google Test recognizes. Whenever a Google Test flag is +// seen, it is removed from argv, and *argc is decremented. +// +// No value is returned. Instead, the Google Test flag variables are +// updated. +// +// Calling the function for the second time has no user-visible effect. +void InitGoogleTest(int* argc, char** argv) { + internal::InitGoogleTestImpl(argc, argv); +} + +// This overloaded version can be used in Windows programs compiled in +// UNICODE mode. +void InitGoogleTest(int* argc, wchar_t** argv) { + internal::InitGoogleTestImpl(argc, argv); +} + +} // namespace testing +// Copyright 2005, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan), vladl@google.com (Vlad Losev) +// +// This file implements death tests. + + +#if GTEST_HAS_DEATH_TEST + +# if GTEST_OS_MAC +# include +# endif // GTEST_OS_MAC + +# include +# include +# include + +# if GTEST_OS_LINUX +# include +# endif // GTEST_OS_LINUX + +# include + +# if GTEST_OS_WINDOWS +# include +# else +# include +# include +# endif // GTEST_OS_WINDOWS + +# if GTEST_OS_QNX +# include +# endif // GTEST_OS_QNX + +#endif // GTEST_HAS_DEATH_TEST + + +// Indicates that this translation unit is part of Google Test's +// implementation. It must come before gtest-internal-inl.h is +// included, or there will be a compiler error. This trick is to +// prevent a user from accidentally including gtest-internal-inl.h in +// his code. +#define GTEST_IMPLEMENTATION_ 1 +#undef GTEST_IMPLEMENTATION_ + +namespace testing { + +// Constants. + +// The default death test style. +static const char kDefaultDeathTestStyle[] = "fast"; + +GTEST_DEFINE_string_( + death_test_style, + internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle), + "Indicates how to run a death test in a forked child process: " + "\"threadsafe\" (child process re-executes the test binary " + "from the beginning, running only the specific death test) or " + "\"fast\" (child process runs the death test immediately " + "after forking)."); + +GTEST_DEFINE_bool_( + death_test_use_fork, + internal::BoolFromGTestEnv("death_test_use_fork", false), + "Instructs to use fork()/_exit() instead of clone() in death tests. " + "Ignored and always uses fork() on POSIX systems where clone() is not " + "implemented. Useful when running under valgrind or similar tools if " + "those do not support clone(). Valgrind 3.3.1 will just fail if " + "it sees an unsupported combination of clone() flags. " + "It is not recommended to use this flag w/o valgrind though it will " + "work in 99% of the cases. Once valgrind is fixed, this flag will " + "most likely be removed."); + +namespace internal { +GTEST_DEFINE_string_( + internal_run_death_test, "", + "Indicates the file, line number, temporal index of " + "the single death test to run, and a file descriptor to " + "which a success code may be sent, all separated by " + "the '|' characters. This flag is specified if and only if the current " + "process is a sub-process launched for running a thread-safe " + "death test. FOR INTERNAL USE ONLY."); +} // namespace internal + +#if GTEST_HAS_DEATH_TEST + +namespace internal { + +// Valid only for fast death tests. Indicates the code is running in the +// child process of a fast style death test. +static bool g_in_fast_death_test_child = false; + +// Returns a Boolean value indicating whether the caller is currently +// executing in the context of the death test child process. Tools such as +// Valgrind heap checkers may need this to modify their behavior in death +// tests. IMPORTANT: This is an internal utility. Using it may break the +// implementation of death tests. User code MUST NOT use it. +bool InDeathTestChild() { +# if GTEST_OS_WINDOWS + + // On Windows, death tests are thread-safe regardless of the value of the + // death_test_style flag. + return !GTEST_FLAG(internal_run_death_test).empty(); + +# else + + if (GTEST_FLAG(death_test_style) == "threadsafe") + return !GTEST_FLAG(internal_run_death_test).empty(); + else + return g_in_fast_death_test_child; +#endif +} + +} // namespace internal + +// ExitedWithCode constructor. +ExitedWithCode::ExitedWithCode(int exit_code) : exit_code_(exit_code) { +} + +// ExitedWithCode function-call operator. +bool ExitedWithCode::operator()(int exit_status) const { +# if GTEST_OS_WINDOWS + + return exit_status == exit_code_; + +# else + + return WIFEXITED(exit_status) && WEXITSTATUS(exit_status) == exit_code_; + +# endif // GTEST_OS_WINDOWS +} + +# if !GTEST_OS_WINDOWS +// KilledBySignal constructor. +KilledBySignal::KilledBySignal(int signum) : signum_(signum) { +} + +// KilledBySignal function-call operator. +bool KilledBySignal::operator()(int exit_status) const { + return WIFSIGNALED(exit_status) && WTERMSIG(exit_status) == signum_; +} +# endif // !GTEST_OS_WINDOWS + +namespace internal { + +// Utilities needed for death tests. + +// Generates a textual description of a given exit code, in the format +// specified by wait(2). +static std::string ExitSummary(int exit_code) { + Message m; + +# if GTEST_OS_WINDOWS + + m << "Exited with exit status " << exit_code; + +# else + + if (WIFEXITED(exit_code)) { + m << "Exited with exit status " << WEXITSTATUS(exit_code); + } else if (WIFSIGNALED(exit_code)) { + m << "Terminated by signal " << WTERMSIG(exit_code); + } +# ifdef WCOREDUMP + if (WCOREDUMP(exit_code)) { + m << " (core dumped)"; + } +# endif +# endif // GTEST_OS_WINDOWS + + return m.GetString(); +} + +// Returns true if exit_status describes a process that was terminated +// by a signal, or exited normally with a nonzero exit code. +bool ExitedUnsuccessfully(int exit_status) { + return !ExitedWithCode(0)(exit_status); +} + +# if !GTEST_OS_WINDOWS +// Generates a textual failure message when a death test finds more than +// one thread running, or cannot determine the number of threads, prior +// to executing the given statement. It is the responsibility of the +// caller not to pass a thread_count of 1. +static std::string DeathTestThreadWarning(size_t thread_count) { + Message msg; + msg << "Death tests use fork(), which is unsafe particularly" + << " in a threaded context. For this test, " << GTEST_NAME_ << " "; + if (thread_count == 0) + msg << "couldn't detect the number of threads."; + else + msg << "detected " << thread_count << " threads."; + return msg.GetString(); +} +# endif // !GTEST_OS_WINDOWS + +// Flag characters for reporting a death test that did not die. +static const char kDeathTestLived = 'L'; +static const char kDeathTestReturned = 'R'; +static const char kDeathTestThrew = 'T'; +static const char kDeathTestInternalError = 'I'; + +// An enumeration describing all of the possible ways that a death test can +// conclude. DIED means that the process died while executing the test +// code; LIVED means that process lived beyond the end of the test code; +// RETURNED means that the test statement attempted to execute a return +// statement, which is not allowed; THREW means that the test statement +// returned control by throwing an exception. IN_PROGRESS means the test +// has not yet concluded. +// TODO(vladl@google.com): Unify names and possibly values for +// AbortReason, DeathTestOutcome, and flag characters above. +enum DeathTestOutcome { IN_PROGRESS, DIED, LIVED, RETURNED, THREW }; + +// Routine for aborting the program which is safe to call from an +// exec-style death test child process, in which case the error +// message is propagated back to the parent process. Otherwise, the +// message is simply printed to stderr. In either case, the program +// then exits with status 1. +void DeathTestAbort(const std::string& message) { + // On a POSIX system, this function may be called from a threadsafe-style + // death test child process, which operates on a very small stack. Use + // the heap for any additional non-minuscule memory requirements. + const InternalRunDeathTestFlag* const flag = + GetUnitTestImpl()->internal_run_death_test_flag(); + if (flag != NULL) { + FILE* parent = posix::FDOpen(flag->write_fd(), "w"); + fputc(kDeathTestInternalError, parent); + fprintf(parent, "%s", message.c_str()); + fflush(parent); + _exit(1); + } else { + fprintf(stderr, "%s", message.c_str()); + fflush(stderr); + posix::Abort(); + } +} + +// A replacement for CHECK that calls DeathTestAbort if the assertion +// fails. +# define GTEST_DEATH_TEST_CHECK_(expression) \ + do { \ + if (!::testing::internal::IsTrue(expression)) { \ + DeathTestAbort( \ + ::std::string("CHECK failed: File ") + __FILE__ + ", line " \ + + ::testing::internal::StreamableToString(__LINE__) + ": " \ + + #expression); \ + } \ + } while (::testing::internal::AlwaysFalse()) + +// This macro is similar to GTEST_DEATH_TEST_CHECK_, but it is meant for +// evaluating any system call that fulfills two conditions: it must return +// -1 on failure, and set errno to EINTR when it is interrupted and +// should be tried again. The macro expands to a loop that repeatedly +// evaluates the expression as long as it evaluates to -1 and sets +// errno to EINTR. If the expression evaluates to -1 but errno is +// something other than EINTR, DeathTestAbort is called. +# define GTEST_DEATH_TEST_CHECK_SYSCALL_(expression) \ + do { \ + int gtest_retval; \ + do { \ + gtest_retval = (expression); \ + } while (gtest_retval == -1 && errno == EINTR); \ + if (gtest_retval == -1) { \ + DeathTestAbort( \ + ::std::string("CHECK failed: File ") + __FILE__ + ", line " \ + + ::testing::internal::StreamableToString(__LINE__) + ": " \ + + #expression + " != -1"); \ + } \ + } while (::testing::internal::AlwaysFalse()) + +// Returns the message describing the last system error in errno. +std::string GetLastErrnoDescription() { + return errno == 0 ? "" : posix::StrError(errno); +} + +// This is called from a death test parent process to read a failure +// message from the death test child process and log it with the FATAL +// severity. On Windows, the message is read from a pipe handle. On other +// platforms, it is read from a file descriptor. +static void FailFromInternalError(int fd) { + Message error; + char buffer[256]; + int num_read; + + do { + while ((num_read = posix::Read(fd, buffer, 255)) > 0) { + buffer[num_read] = '\0'; + error << buffer; + } + } while (num_read == -1 && errno == EINTR); + + if (num_read == 0) { + GTEST_LOG_(FATAL) << error.GetString(); + } else { + const int last_error = errno; + GTEST_LOG_(FATAL) << "Error while reading death test internal: " + << GetLastErrnoDescription() << " [" << last_error << "]"; + } +} + +// Death test constructor. Increments the running death test count +// for the current test. +DeathTest::DeathTest() { + TestInfo* const info = GetUnitTestImpl()->current_test_info(); + if (info == NULL) { + DeathTestAbort("Cannot run a death test outside of a TEST or " + "TEST_F construct"); + } +} + +// Creates and returns a death test by dispatching to the current +// death test factory. +bool DeathTest::Create(const char* statement, const RE* regex, + const char* file, int line, DeathTest** test) { + return GetUnitTestImpl()->death_test_factory()->Create( + statement, regex, file, line, test); +} + +const char* DeathTest::LastMessage() { + return last_death_test_message_.c_str(); +} + +void DeathTest::set_last_death_test_message(const std::string& message) { + last_death_test_message_ = message; +} + +std::string DeathTest::last_death_test_message_; + +// Provides cross platform implementation for some death functionality. +class DeathTestImpl : public DeathTest { + protected: + DeathTestImpl(const char* a_statement, const RE* a_regex) + : statement_(a_statement), + regex_(a_regex), + spawned_(false), + status_(-1), + outcome_(IN_PROGRESS), + read_fd_(-1), + write_fd_(-1) {} + + // read_fd_ is expected to be closed and cleared by a derived class. + ~DeathTestImpl() { GTEST_DEATH_TEST_CHECK_(read_fd_ == -1); } + + void Abort(AbortReason reason); + virtual bool Passed(bool status_ok); + + const char* statement() const { return statement_; } + const RE* regex() const { return regex_; } + bool spawned() const { return spawned_; } + void set_spawned(bool is_spawned) { spawned_ = is_spawned; } + int status() const { return status_; } + void set_status(int a_status) { status_ = a_status; } + DeathTestOutcome outcome() const { return outcome_; } + void set_outcome(DeathTestOutcome an_outcome) { outcome_ = an_outcome; } + int read_fd() const { return read_fd_; } + void set_read_fd(int fd) { read_fd_ = fd; } + int write_fd() const { return write_fd_; } + void set_write_fd(int fd) { write_fd_ = fd; } + + // Called in the parent process only. Reads the result code of the death + // test child process via a pipe, interprets it to set the outcome_ + // member, and closes read_fd_. Outputs diagnostics and terminates in + // case of unexpected codes. + void ReadAndInterpretStatusByte(); + + private: + // The textual content of the code this object is testing. This class + // doesn't own this string and should not attempt to delete it. + const char* const statement_; + // The regular expression which test output must match. DeathTestImpl + // doesn't own this object and should not attempt to delete it. + const RE* const regex_; + // True if the death test child process has been successfully spawned. + bool spawned_; + // The exit status of the child process. + int status_; + // How the death test concluded. + DeathTestOutcome outcome_; + // Descriptor to the read end of the pipe to the child process. It is + // always -1 in the child process. The child keeps its write end of the + // pipe in write_fd_. + int read_fd_; + // Descriptor to the child's write end of the pipe to the parent process. + // It is always -1 in the parent process. The parent keeps its end of the + // pipe in read_fd_. + int write_fd_; +}; + +// Called in the parent process only. Reads the result code of the death +// test child process via a pipe, interprets it to set the outcome_ +// member, and closes read_fd_. Outputs diagnostics and terminates in +// case of unexpected codes. +void DeathTestImpl::ReadAndInterpretStatusByte() { + char flag; + int bytes_read; + + // The read() here blocks until data is available (signifying the + // failure of the death test) or until the pipe is closed (signifying + // its success), so it's okay to call this in the parent before + // the child process has exited. + do { + bytes_read = posix::Read(read_fd(), &flag, 1); + } while (bytes_read == -1 && errno == EINTR); + + if (bytes_read == 0) { + set_outcome(DIED); + } else if (bytes_read == 1) { + switch (flag) { + case kDeathTestReturned: + set_outcome(RETURNED); + break; + case kDeathTestThrew: + set_outcome(THREW); + break; + case kDeathTestLived: + set_outcome(LIVED); + break; + case kDeathTestInternalError: + FailFromInternalError(read_fd()); // Does not return. + break; + default: + GTEST_LOG_(FATAL) << "Death test child process reported " + << "unexpected status byte (" + << static_cast(flag) << ")"; + } + } else { + GTEST_LOG_(FATAL) << "Read from death test child process failed: " + << GetLastErrnoDescription(); + } + GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(read_fd())); + set_read_fd(-1); +} + +// Signals that the death test code which should have exited, didn't. +// Should be called only in a death test child process. +// Writes a status byte to the child's status file descriptor, then +// calls _exit(1). +void DeathTestImpl::Abort(AbortReason reason) { + // The parent process considers the death test to be a failure if + // it finds any data in our pipe. So, here we write a single flag byte + // to the pipe, then exit. + const char status_ch = + reason == TEST_DID_NOT_DIE ? kDeathTestLived : + reason == TEST_THREW_EXCEPTION ? kDeathTestThrew : kDeathTestReturned; + + GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); + // We are leaking the descriptor here because on some platforms (i.e., + // when built as Windows DLL), destructors of global objects will still + // run after calling _exit(). On such systems, write_fd_ will be + // indirectly closed from the destructor of UnitTestImpl, causing double + // close if it is also closed here. On debug configurations, double close + // may assert. As there are no in-process buffers to flush here, we are + // relying on the OS to close the descriptor after the process terminates + // when the destructors are not run. + _exit(1); // Exits w/o any normal exit hooks (we were supposed to crash) +} + +// Returns an indented copy of stderr output for a death test. +// This makes distinguishing death test output lines from regular log lines +// much easier. +static ::std::string FormatDeathTestOutput(const ::std::string& output) { + ::std::string ret; + for (size_t at = 0; ; ) { + const size_t line_end = output.find('\n', at); + ret += "[ DEATH ] "; + if (line_end == ::std::string::npos) { + ret += output.substr(at); + break; + } + ret += output.substr(at, line_end + 1 - at); + at = line_end + 1; + } + return ret; +} + +// Assesses the success or failure of a death test, using both private +// members which have previously been set, and one argument: +// +// Private data members: +// outcome: An enumeration describing how the death test +// concluded: DIED, LIVED, THREW, or RETURNED. The death test +// fails in the latter three cases. +// status: The exit status of the child process. On *nix, it is in the +// in the format specified by wait(2). On Windows, this is the +// value supplied to the ExitProcess() API or a numeric code +// of the exception that terminated the program. +// regex: A regular expression object to be applied to +// the test's captured standard error output; the death test +// fails if it does not match. +// +// Argument: +// status_ok: true if exit_status is acceptable in the context of +// this particular death test, which fails if it is false +// +// Returns true iff all of the above conditions are met. Otherwise, the +// first failing condition, in the order given above, is the one that is +// reported. Also sets the last death test message string. +bool DeathTestImpl::Passed(bool status_ok) { + if (!spawned()) + return false; + + const std::string error_message = GetCapturedStderr(); + + bool success = false; + Message buffer; + + buffer << "Death test: " << statement() << "\n"; + switch (outcome()) { + case LIVED: + buffer << " Result: failed to die.\n" + << " Error msg:\n" << FormatDeathTestOutput(error_message); + break; + case THREW: + buffer << " Result: threw an exception.\n" + << " Error msg:\n" << FormatDeathTestOutput(error_message); + break; + case RETURNED: + buffer << " Result: illegal return in test statement.\n" + << " Error msg:\n" << FormatDeathTestOutput(error_message); + break; + case DIED: + if (status_ok) { + const bool matched = RE::PartialMatch(error_message.c_str(), *regex()); + if (matched) { + success = true; + } else { + buffer << " Result: died but not with expected error.\n" + << " Expected: " << regex()->pattern() << "\n" + << "Actual msg:\n" << FormatDeathTestOutput(error_message); + } + } else { + buffer << " Result: died but not with expected exit code:\n" + << " " << ExitSummary(status()) << "\n" + << "Actual msg:\n" << FormatDeathTestOutput(error_message); + } + break; + case IN_PROGRESS: + default: + GTEST_LOG_(FATAL) + << "DeathTest::Passed somehow called before conclusion of test"; + } + + DeathTest::set_last_death_test_message(buffer.GetString()); + return success; +} + +# if GTEST_OS_WINDOWS +// WindowsDeathTest implements death tests on Windows. Due to the +// specifics of starting new processes on Windows, death tests there are +// always threadsafe, and Google Test considers the +// --gtest_death_test_style=fast setting to be equivalent to +// --gtest_death_test_style=threadsafe there. +// +// A few implementation notes: Like the Linux version, the Windows +// implementation uses pipes for child-to-parent communication. But due to +// the specifics of pipes on Windows, some extra steps are required: +// +// 1. The parent creates a communication pipe and stores handles to both +// ends of it. +// 2. The parent starts the child and provides it with the information +// necessary to acquire the handle to the write end of the pipe. +// 3. The child acquires the write end of the pipe and signals the parent +// using a Windows event. +// 4. Now the parent can release the write end of the pipe on its side. If +// this is done before step 3, the object's reference count goes down to +// 0 and it is destroyed, preventing the child from acquiring it. The +// parent now has to release it, or read operations on the read end of +// the pipe will not return when the child terminates. +// 5. The parent reads child's output through the pipe (outcome code and +// any possible error messages) from the pipe, and its stderr and then +// determines whether to fail the test. +// +// Note: to distinguish Win32 API calls from the local method and function +// calls, the former are explicitly resolved in the global namespace. +// +class WindowsDeathTest : public DeathTestImpl { + public: + WindowsDeathTest(const char* a_statement, + const RE* a_regex, + const char* file, + int line) + : DeathTestImpl(a_statement, a_regex), file_(file), line_(line) {} + + // All of these virtual functions are inherited from DeathTest. + virtual int Wait(); + virtual TestRole AssumeRole(); + + private: + // The name of the file in which the death test is located. + const char* const file_; + // The line number on which the death test is located. + const int line_; + // Handle to the write end of the pipe to the child process. + AutoHandle write_handle_; + // Child process handle. + AutoHandle child_handle_; + // Event the child process uses to signal the parent that it has + // acquired the handle to the write end of the pipe. After seeing this + // event the parent can release its own handles to make sure its + // ReadFile() calls return when the child terminates. + AutoHandle event_handle_; +}; + +// Waits for the child in a death test to exit, returning its exit +// status, or 0 if no child process exists. As a side effect, sets the +// outcome data member. +int WindowsDeathTest::Wait() { + if (!spawned()) + return 0; + + // Wait until the child either signals that it has acquired the write end + // of the pipe or it dies. + const HANDLE wait_handles[2] = { child_handle_.Get(), event_handle_.Get() }; + switch (::WaitForMultipleObjects(2, + wait_handles, + FALSE, // Waits for any of the handles. + INFINITE)) { + case WAIT_OBJECT_0: + case WAIT_OBJECT_0 + 1: + break; + default: + GTEST_DEATH_TEST_CHECK_(false); // Should not get here. + } + + // The child has acquired the write end of the pipe or exited. + // We release the handle on our side and continue. + write_handle_.Reset(); + event_handle_.Reset(); + + ReadAndInterpretStatusByte(); + + // Waits for the child process to exit if it haven't already. This + // returns immediately if the child has already exited, regardless of + // whether previous calls to WaitForMultipleObjects synchronized on this + // handle or not. + GTEST_DEATH_TEST_CHECK_( + WAIT_OBJECT_0 == ::WaitForSingleObject(child_handle_.Get(), + INFINITE)); + DWORD status_code; + GTEST_DEATH_TEST_CHECK_( + ::GetExitCodeProcess(child_handle_.Get(), &status_code) != FALSE); + child_handle_.Reset(); + set_status(static_cast(status_code)); + return status(); +} + +// The AssumeRole process for a Windows death test. It creates a child +// process with the same executable as the current process to run the +// death test. The child process is given the --gtest_filter and +// --gtest_internal_run_death_test flags such that it knows to run the +// current death test only. +DeathTest::TestRole WindowsDeathTest::AssumeRole() { + const UnitTestImpl* const impl = GetUnitTestImpl(); + const InternalRunDeathTestFlag* const flag = + impl->internal_run_death_test_flag(); + const TestInfo* const info = impl->current_test_info(); + const int death_test_index = info->result()->death_test_count(); + + if (flag != NULL) { + // ParseInternalRunDeathTestFlag() has performed all the necessary + // processing. + set_write_fd(flag->write_fd()); + return EXECUTE_TEST; + } + + // WindowsDeathTest uses an anonymous pipe to communicate results of + // a death test. + SECURITY_ATTRIBUTES handles_are_inheritable = { + sizeof(SECURITY_ATTRIBUTES), NULL, TRUE }; + HANDLE read_handle, write_handle; + GTEST_DEATH_TEST_CHECK_( + ::CreatePipe(&read_handle, &write_handle, &handles_are_inheritable, + 0) // Default buffer size. + != FALSE); + set_read_fd(::_open_osfhandle(reinterpret_cast(read_handle), + O_RDONLY)); + write_handle_.Reset(write_handle); + event_handle_.Reset(::CreateEvent( + &handles_are_inheritable, + TRUE, // The event will automatically reset to non-signaled state. + FALSE, // The initial state is non-signalled. + NULL)); // The even is unnamed. + GTEST_DEATH_TEST_CHECK_(event_handle_.Get() != NULL); + const std::string filter_flag = + std::string("--") + GTEST_FLAG_PREFIX_ + kFilterFlag + "=" + + info->test_case_name() + "." + info->name(); + const std::string internal_flag = + std::string("--") + GTEST_FLAG_PREFIX_ + kInternalRunDeathTestFlag + + "=" + file_ + "|" + StreamableToString(line_) + "|" + + StreamableToString(death_test_index) + "|" + + StreamableToString(static_cast(::GetCurrentProcessId())) + + // size_t has the same width as pointers on both 32-bit and 64-bit + // Windows platforms. + // See http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx. + "|" + StreamableToString(reinterpret_cast(write_handle)) + + "|" + StreamableToString(reinterpret_cast(event_handle_.Get())); + + char executable_path[_MAX_PATH + 1]; // NOLINT + GTEST_DEATH_TEST_CHECK_( + _MAX_PATH + 1 != ::GetModuleFileNameA(NULL, + executable_path, + _MAX_PATH)); + + std::string command_line = + std::string(::GetCommandLineA()) + " " + filter_flag + " \"" + + internal_flag + "\""; + + DeathTest::set_last_death_test_message(""); + + CaptureStderr(); + // Flush the log buffers since the log streams are shared with the child. + FlushInfoLog(); + + // The child process will share the standard handles with the parent. + STARTUPINFOA startup_info; + memset(&startup_info, 0, sizeof(STARTUPINFO)); + startup_info.dwFlags = STARTF_USESTDHANDLES; + startup_info.hStdInput = ::GetStdHandle(STD_INPUT_HANDLE); + startup_info.hStdOutput = ::GetStdHandle(STD_OUTPUT_HANDLE); + startup_info.hStdError = ::GetStdHandle(STD_ERROR_HANDLE); + + PROCESS_INFORMATION process_info; + GTEST_DEATH_TEST_CHECK_(::CreateProcessA( + executable_path, + const_cast(command_line.c_str()), + NULL, // Retuned process handle is not inheritable. + NULL, // Retuned thread handle is not inheritable. + TRUE, // Child inherits all inheritable handles (for write_handle_). + 0x0, // Default creation flags. + NULL, // Inherit the parent's environment. + UnitTest::GetInstance()->original_working_dir(), + &startup_info, + &process_info) != FALSE); + child_handle_.Reset(process_info.hProcess); + ::CloseHandle(process_info.hThread); + set_spawned(true); + return OVERSEE_TEST; +} +# else // We are not on Windows. + +// ForkingDeathTest provides implementations for most of the abstract +// methods of the DeathTest interface. Only the AssumeRole method is +// left undefined. +class ForkingDeathTest : public DeathTestImpl { + public: + ForkingDeathTest(const char* statement, const RE* regex); + + // All of these virtual functions are inherited from DeathTest. + virtual int Wait(); + + protected: + void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; } + + private: + // PID of child process during death test; 0 in the child process itself. + pid_t child_pid_; +}; + +// Constructs a ForkingDeathTest. +ForkingDeathTest::ForkingDeathTest(const char* a_statement, const RE* a_regex) + : DeathTestImpl(a_statement, a_regex), + child_pid_(-1) {} + +// Waits for the child in a death test to exit, returning its exit +// status, or 0 if no child process exists. As a side effect, sets the +// outcome data member. +int ForkingDeathTest::Wait() { + if (!spawned()) + return 0; + + ReadAndInterpretStatusByte(); + + int status_value; + GTEST_DEATH_TEST_CHECK_SYSCALL_(waitpid(child_pid_, &status_value, 0)); + set_status(status_value); + return status_value; +} + +// A concrete death test class that forks, then immediately runs the test +// in the child process. +class NoExecDeathTest : public ForkingDeathTest { + public: + NoExecDeathTest(const char* a_statement, const RE* a_regex) : + ForkingDeathTest(a_statement, a_regex) { } + virtual TestRole AssumeRole(); +}; + +// The AssumeRole process for a fork-and-run death test. It implements a +// straightforward fork, with a simple pipe to transmit the status byte. +DeathTest::TestRole NoExecDeathTest::AssumeRole() { + const size_t thread_count = GetThreadCount(); + if (thread_count != 1) { + GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); + } + + int pipe_fd[2]; + GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); + + DeathTest::set_last_death_test_message(""); + CaptureStderr(); + // When we fork the process below, the log file buffers are copied, but the + // file descriptors are shared. We flush all log files here so that closing + // the file descriptors in the child process doesn't throw off the + // synchronization between descriptors and buffers in the parent process. + // This is as close to the fork as possible to avoid a race condition in case + // there are multiple threads running before the death test, and another + // thread writes to the log file. + FlushInfoLog(); + + const pid_t child_pid = fork(); + GTEST_DEATH_TEST_CHECK_(child_pid != -1); + set_child_pid(child_pid); + if (child_pid == 0) { + GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0])); + set_write_fd(pipe_fd[1]); + // Redirects all logging to stderr in the child process to prevent + // concurrent writes to the log files. We capture stderr in the parent + // process and append the child process' output to a log. + LogToStderr(); + // Event forwarding to the listeners of event listener API mush be shut + // down in death test subprocesses. + GetUnitTestImpl()->listeners()->SuppressEventForwarding(); + g_in_fast_death_test_child = true; + return EXECUTE_TEST; + } else { + GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); + set_read_fd(pipe_fd[0]); + set_spawned(true); + return OVERSEE_TEST; + } +} + +// A concrete death test class that forks and re-executes the main +// program from the beginning, with command-line flags set that cause +// only this specific death test to be run. +class ExecDeathTest : public ForkingDeathTest { + public: + ExecDeathTest(const char* a_statement, const RE* a_regex, + const char* file, int line) : + ForkingDeathTest(a_statement, a_regex), file_(file), line_(line) { } + virtual TestRole AssumeRole(); + private: + static ::std::vector + GetArgvsForDeathTestChildProcess() { + ::std::vector args = GetInjectableArgvs(); + return args; + } + // The name of the file in which the death test is located. + const char* const file_; + // The line number on which the death test is located. + const int line_; +}; + +// Utility class for accumulating command-line arguments. +class Arguments { + public: + Arguments() { + args_.push_back(NULL); + } + + ~Arguments() { + for (std::vector::iterator i = args_.begin(); i != args_.end(); + ++i) { + free(*i); + } + } + void AddArgument(const char* argument) { + args_.insert(args_.end() - 1, posix::StrDup(argument)); + } + + template + void AddArguments(const ::std::vector& arguments) { + for (typename ::std::vector::const_iterator i = arguments.begin(); + i != arguments.end(); + ++i) { + args_.insert(args_.end() - 1, posix::StrDup(i->c_str())); + } + } + char* const* Argv() { + return &args_[0]; + } + + private: + std::vector args_; +}; + +// A struct that encompasses the arguments to the child process of a +// threadsafe-style death test process. +struct ExecDeathTestArgs { + char* const* argv; // Command-line arguments for the child's call to exec + int close_fd; // File descriptor to close; the read end of a pipe +}; + +# if GTEST_OS_MAC +inline char** GetEnviron() { + // When Google Test is built as a framework on MacOS X, the environ variable + // is unavailable. Apple's documentation (man environ) recommends using + // _NSGetEnviron() instead. + return *_NSGetEnviron(); +} +# else +// Some POSIX platforms expect you to declare environ. extern "C" makes +// it reside in the global namespace. +extern "C" char** environ; +inline char** GetEnviron() { return environ; } +# endif // GTEST_OS_MAC + +# if !GTEST_OS_QNX +// The main function for a threadsafe-style death test child process. +// This function is called in a clone()-ed process and thus must avoid +// any potentially unsafe operations like malloc or libc functions. +static int ExecDeathTestChildMain(void* child_arg) { + ExecDeathTestArgs* const args = static_cast(child_arg); + GTEST_DEATH_TEST_CHECK_SYSCALL_(close(args->close_fd)); + + // We need to execute the test program in the same environment where + // it was originally invoked. Therefore we change to the original + // working directory first. + const char* const original_dir = + UnitTest::GetInstance()->original_working_dir(); + // We can safely call chdir() as it's a direct system call. + if (chdir(original_dir) != 0) { + DeathTestAbort(std::string("chdir(\"") + original_dir + "\") failed: " + + GetLastErrnoDescription()); + return EXIT_FAILURE; + } + + // We can safely call execve() as it's a direct system call. We + // cannot use execvp() as it's a libc function and thus potentially + // unsafe. Since execve() doesn't search the PATH, the user must + // invoke the test program via a valid path that contains at least + // one path separator. + execve(args->argv[0], args->argv, GetEnviron()); + DeathTestAbort(std::string("execve(") + args->argv[0] + ", ...) in " + + original_dir + " failed: " + + GetLastErrnoDescription()); + return EXIT_FAILURE; +} +# endif // !GTEST_OS_QNX + +// Two utility routines that together determine the direction the stack +// grows. +// This could be accomplished more elegantly by a single recursive +// function, but we want to guard against the unlikely possibility of +// a smart compiler optimizing the recursion away. +// +// GTEST_NO_INLINE_ is required to prevent GCC 4.6 from inlining +// StackLowerThanAddress into StackGrowsDown, which then doesn't give +// correct answer. +void StackLowerThanAddress(const void* ptr, bool* result) GTEST_NO_INLINE_; +void StackLowerThanAddress(const void* ptr, bool* result) { + int dummy; + *result = (&dummy < ptr); +} + +bool StackGrowsDown() { + int dummy; + bool result; + StackLowerThanAddress(&dummy, &result); + return result; +} + +// Spawns a child process with the same executable as the current process in +// a thread-safe manner and instructs it to run the death test. The +// implementation uses fork(2) + exec. On systems where clone(2) is +// available, it is used instead, being slightly more thread-safe. On QNX, +// fork supports only single-threaded environments, so this function uses +// spawn(2) there instead. The function dies with an error message if +// anything goes wrong. +static pid_t ExecDeathTestSpawnChild(char* const* argv, int close_fd) { + ExecDeathTestArgs args = { argv, close_fd }; + pid_t child_pid = -1; + +# if GTEST_OS_QNX + // Obtains the current directory and sets it to be closed in the child + // process. + const int cwd_fd = open(".", O_RDONLY); + GTEST_DEATH_TEST_CHECK_(cwd_fd != -1); + GTEST_DEATH_TEST_CHECK_SYSCALL_(fcntl(cwd_fd, F_SETFD, FD_CLOEXEC)); + // We need to execute the test program in the same environment where + // it was originally invoked. Therefore we change to the original + // working directory first. + const char* const original_dir = + UnitTest::GetInstance()->original_working_dir(); + // We can safely call chdir() as it's a direct system call. + if (chdir(original_dir) != 0) { + DeathTestAbort(std::string("chdir(\"") + original_dir + "\") failed: " + + GetLastErrnoDescription()); + return EXIT_FAILURE; + } + + int fd_flags; + // Set close_fd to be closed after spawn. + GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); + GTEST_DEATH_TEST_CHECK_SYSCALL_(fcntl(close_fd, F_SETFD, + fd_flags | FD_CLOEXEC)); + struct inheritance inherit = {0}; + // spawn is a system call. + child_pid = spawn(args.argv[0], 0, NULL, &inherit, args.argv, GetEnviron()); + // Restores the current working directory. + GTEST_DEATH_TEST_CHECK_(fchdir(cwd_fd) != -1); + GTEST_DEATH_TEST_CHECK_SYSCALL_(close(cwd_fd)); + +# else // GTEST_OS_QNX +# if GTEST_OS_LINUX + // When a SIGPROF signal is received while fork() or clone() are executing, + // the process may hang. To avoid this, we ignore SIGPROF here and re-enable + // it after the call to fork()/clone() is complete. + struct sigaction saved_sigprof_action; + struct sigaction ignore_sigprof_action; + memset(&ignore_sigprof_action, 0, sizeof(ignore_sigprof_action)); + sigemptyset(&ignore_sigprof_action.sa_mask); + ignore_sigprof_action.sa_handler = SIG_IGN; + GTEST_DEATH_TEST_CHECK_SYSCALL_(sigaction( + SIGPROF, &ignore_sigprof_action, &saved_sigprof_action)); +# endif // GTEST_OS_LINUX + +# if GTEST_HAS_CLONE + const bool use_fork = GTEST_FLAG(death_test_use_fork); + + if (!use_fork) { + static const bool stack_grows_down = StackGrowsDown(); + const size_t stack_size = getpagesize(); + // MMAP_ANONYMOUS is not defined on Mac, so we use MAP_ANON instead. + void* const stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, + MAP_ANON | MAP_PRIVATE, -1, 0); + GTEST_DEATH_TEST_CHECK_(stack != MAP_FAILED); + + // Maximum stack alignment in bytes: For a downward-growing stack, this + // amount is subtracted from size of the stack space to get an address + // that is within the stack space and is aligned on all systems we care + // about. As far as I know there is no ABI with stack alignment greater + // than 64. We assume stack and stack_size already have alignment of + // kMaxStackAlignment. + const size_t kMaxStackAlignment = 64; + void* const stack_top = + static_cast(stack) + + (stack_grows_down ? stack_size - kMaxStackAlignment : 0); + GTEST_DEATH_TEST_CHECK_(stack_size > kMaxStackAlignment && + reinterpret_cast(stack_top) % kMaxStackAlignment == 0); + + child_pid = clone(&ExecDeathTestChildMain, stack_top, SIGCHLD, &args); + + GTEST_DEATH_TEST_CHECK_(munmap(stack, stack_size) != -1); + } +# else + const bool use_fork = true; +# endif // GTEST_HAS_CLONE + + if (use_fork && (child_pid = fork()) == 0) { + ExecDeathTestChildMain(&args); + _exit(0); + } +# endif // GTEST_OS_QNX +# if GTEST_OS_LINUX + GTEST_DEATH_TEST_CHECK_SYSCALL_( + sigaction(SIGPROF, &saved_sigprof_action, NULL)); +# endif // GTEST_OS_LINUX + + GTEST_DEATH_TEST_CHECK_(child_pid != -1); + return child_pid; +} + +// The AssumeRole process for a fork-and-exec death test. It re-executes the +// main program from the beginning, setting the --gtest_filter +// and --gtest_internal_run_death_test flags to cause only the current +// death test to be re-run. +DeathTest::TestRole ExecDeathTest::AssumeRole() { + const UnitTestImpl* const impl = GetUnitTestImpl(); + const InternalRunDeathTestFlag* const flag = + impl->internal_run_death_test_flag(); + const TestInfo* const info = impl->current_test_info(); + const int death_test_index = info->result()->death_test_count(); + + if (flag != NULL) { + set_write_fd(flag->write_fd()); + return EXECUTE_TEST; + } + + int pipe_fd[2]; + GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1); + // Clear the close-on-exec flag on the write end of the pipe, lest + // it be closed when the child process does an exec: + GTEST_DEATH_TEST_CHECK_(fcntl(pipe_fd[1], F_SETFD, 0) != -1); + + const std::string filter_flag = + std::string("--") + GTEST_FLAG_PREFIX_ + kFilterFlag + "=" + + info->test_case_name() + "." + info->name(); + const std::string internal_flag = + std::string("--") + GTEST_FLAG_PREFIX_ + kInternalRunDeathTestFlag + "=" + + file_ + "|" + StreamableToString(line_) + "|" + + StreamableToString(death_test_index) + "|" + + StreamableToString(pipe_fd[1]); + Arguments args; + args.AddArguments(GetArgvsForDeathTestChildProcess()); + args.AddArgument(filter_flag.c_str()); + args.AddArgument(internal_flag.c_str()); + + DeathTest::set_last_death_test_message(""); + + CaptureStderr(); + // See the comment in NoExecDeathTest::AssumeRole for why the next line + // is necessary. + FlushInfoLog(); + + const pid_t child_pid = ExecDeathTestSpawnChild(args.Argv(), pipe_fd[0]); + GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1])); + set_child_pid(child_pid); + set_read_fd(pipe_fd[0]); + set_spawned(true); + return OVERSEE_TEST; +} + +# endif // !GTEST_OS_WINDOWS + +// Creates a concrete DeathTest-derived class that depends on the +// --gtest_death_test_style flag, and sets the pointer pointed to +// by the "test" argument to its address. If the test should be +// skipped, sets that pointer to NULL. Returns true, unless the +// flag is set to an invalid value. +bool DefaultDeathTestFactory::Create(const char* statement, const RE* regex, + const char* file, int line, + DeathTest** test) { + UnitTestImpl* const impl = GetUnitTestImpl(); + const InternalRunDeathTestFlag* const flag = + impl->internal_run_death_test_flag(); + const int death_test_index = impl->current_test_info() + ->increment_death_test_count(); + + if (flag != NULL) { + if (death_test_index > flag->index()) { + DeathTest::set_last_death_test_message( + "Death test count (" + StreamableToString(death_test_index) + + ") somehow exceeded expected maximum (" + + StreamableToString(flag->index()) + ")"); + return false; + } + + if (!(flag->file() == file && flag->line() == line && + flag->index() == death_test_index)) { + *test = NULL; + return true; + } + } + +# if GTEST_OS_WINDOWS + + if (GTEST_FLAG(death_test_style) == "threadsafe" || + GTEST_FLAG(death_test_style) == "fast") { + *test = new WindowsDeathTest(statement, regex, file, line); + } + +# else + + if (GTEST_FLAG(death_test_style) == "threadsafe") { + *test = new ExecDeathTest(statement, regex, file, line); + } else if (GTEST_FLAG(death_test_style) == "fast") { + *test = new NoExecDeathTest(statement, regex); + } + +# endif // GTEST_OS_WINDOWS + + else { // NOLINT - this is more readable than unbalanced brackets inside #if. + DeathTest::set_last_death_test_message( + "Unknown death test style \"" + GTEST_FLAG(death_test_style) + + "\" encountered"); + return false; + } + + return true; +} + +// Splits a given string on a given delimiter, populating a given +// vector with the fields. GTEST_HAS_DEATH_TEST implies that we have +// ::std::string, so we can use it here. +static void SplitString(const ::std::string& str, char delimiter, + ::std::vector< ::std::string>* dest) { + ::std::vector< ::std::string> parsed; + ::std::string::size_type pos = 0; + while (::testing::internal::AlwaysTrue()) { + const ::std::string::size_type colon = str.find(delimiter, pos); + if (colon == ::std::string::npos) { + parsed.push_back(str.substr(pos)); + break; + } else { + parsed.push_back(str.substr(pos, colon - pos)); + pos = colon + 1; + } + } + dest->swap(parsed); +} + +# if GTEST_OS_WINDOWS +// Recreates the pipe and event handles from the provided parameters, +// signals the event, and returns a file descriptor wrapped around the pipe +// handle. This function is called in the child process only. +int GetStatusFileDescriptor(unsigned int parent_process_id, + size_t write_handle_as_size_t, + size_t event_handle_as_size_t) { + AutoHandle parent_process_handle(::OpenProcess(PROCESS_DUP_HANDLE, + FALSE, // Non-inheritable. + parent_process_id)); + if (parent_process_handle.Get() == INVALID_HANDLE_VALUE) { + DeathTestAbort("Unable to open parent process " + + StreamableToString(parent_process_id)); + } + + // TODO(vladl@google.com): Replace the following check with a + // compile-time assertion when available. + GTEST_CHECK_(sizeof(HANDLE) <= sizeof(size_t)); + + const HANDLE write_handle = + reinterpret_cast(write_handle_as_size_t); + HANDLE dup_write_handle; + + // The newly initialized handle is accessible only in in the parent + // process. To obtain one accessible within the child, we need to use + // DuplicateHandle. + if (!::DuplicateHandle(parent_process_handle.Get(), write_handle, + ::GetCurrentProcess(), &dup_write_handle, + 0x0, // Requested privileges ignored since + // DUPLICATE_SAME_ACCESS is used. + FALSE, // Request non-inheritable handler. + DUPLICATE_SAME_ACCESS)) { + DeathTestAbort("Unable to duplicate the pipe handle " + + StreamableToString(write_handle_as_size_t) + + " from the parent process " + + StreamableToString(parent_process_id)); + } + + const HANDLE event_handle = reinterpret_cast(event_handle_as_size_t); + HANDLE dup_event_handle; + + if (!::DuplicateHandle(parent_process_handle.Get(), event_handle, + ::GetCurrentProcess(), &dup_event_handle, + 0x0, + FALSE, + DUPLICATE_SAME_ACCESS)) { + DeathTestAbort("Unable to duplicate the event handle " + + StreamableToString(event_handle_as_size_t) + + " from the parent process " + + StreamableToString(parent_process_id)); + } + + const int write_fd = + ::_open_osfhandle(reinterpret_cast(dup_write_handle), O_APPEND); + if (write_fd == -1) { + DeathTestAbort("Unable to convert pipe handle " + + StreamableToString(write_handle_as_size_t) + + " to a file descriptor"); + } + + // Signals the parent that the write end of the pipe has been acquired + // so the parent can release its own write end. + ::SetEvent(dup_event_handle); + + return write_fd; +} +# endif // GTEST_OS_WINDOWS + +// Returns a newly created InternalRunDeathTestFlag object with fields +// initialized from the GTEST_FLAG(internal_run_death_test) flag if +// the flag is specified; otherwise returns NULL. +InternalRunDeathTestFlag* ParseInternalRunDeathTestFlag() { + if (GTEST_FLAG(internal_run_death_test) == "") return NULL; + + // GTEST_HAS_DEATH_TEST implies that we have ::std::string, so we + // can use it here. + int line = -1; + int index = -1; + ::std::vector< ::std::string> fields; + SplitString(GTEST_FLAG(internal_run_death_test).c_str(), '|', &fields); + int write_fd = -1; + +# if GTEST_OS_WINDOWS + + unsigned int parent_process_id = 0; + size_t write_handle_as_size_t = 0; + size_t event_handle_as_size_t = 0; + + if (fields.size() != 6 + || !ParseNaturalNumber(fields[1], &line) + || !ParseNaturalNumber(fields[2], &index) + || !ParseNaturalNumber(fields[3], &parent_process_id) + || !ParseNaturalNumber(fields[4], &write_handle_as_size_t) + || !ParseNaturalNumber(fields[5], &event_handle_as_size_t)) { + DeathTestAbort("Bad --gtest_internal_run_death_test flag: " + + GTEST_FLAG(internal_run_death_test)); + } + write_fd = GetStatusFileDescriptor(parent_process_id, + write_handle_as_size_t, + event_handle_as_size_t); +# else + + if (fields.size() != 4 + || !ParseNaturalNumber(fields[1], &line) + || !ParseNaturalNumber(fields[2], &index) + || !ParseNaturalNumber(fields[3], &write_fd)) { + DeathTestAbort("Bad --gtest_internal_run_death_test flag: " + + GTEST_FLAG(internal_run_death_test)); + } + +# endif // GTEST_OS_WINDOWS + + return new InternalRunDeathTestFlag(fields[0], line, index, write_fd); +} + +} // namespace internal + +#endif // GTEST_HAS_DEATH_TEST + +} // namespace testing +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Authors: keith.ray@gmail.com (Keith Ray) + + +#include + +#if GTEST_OS_WINDOWS_MOBILE +# include +#elif GTEST_OS_WINDOWS +# include +# include +#elif GTEST_OS_SYMBIAN +// Symbian OpenC has PATH_MAX in sys/syslimits.h +# include +#else +# include +# include // Some Linux distributions define PATH_MAX here. +#endif // GTEST_OS_WINDOWS_MOBILE + +#if GTEST_OS_WINDOWS +# define GTEST_PATH_MAX_ _MAX_PATH +#elif defined(PATH_MAX) +# define GTEST_PATH_MAX_ PATH_MAX +#elif defined(_XOPEN_PATH_MAX) +# define GTEST_PATH_MAX_ _XOPEN_PATH_MAX +#else +# define GTEST_PATH_MAX_ _POSIX_PATH_MAX +#endif // GTEST_OS_WINDOWS + + +namespace testing { +namespace internal { + +#if GTEST_OS_WINDOWS +// On Windows, '\\' is the standard path separator, but many tools and the +// Windows API also accept '/' as an alternate path separator. Unless otherwise +// noted, a file path can contain either kind of path separators, or a mixture +// of them. +const char kPathSeparator = '\\'; +const char kAlternatePathSeparator = '/'; +const char kPathSeparatorString[] = "\\"; +const char kAlternatePathSeparatorString[] = "/"; +# if GTEST_OS_WINDOWS_MOBILE +// Windows CE doesn't have a current directory. You should not use +// the current directory in tests on Windows CE, but this at least +// provides a reasonable fallback. +const char kCurrentDirectoryString[] = "\\"; +// Windows CE doesn't define INVALID_FILE_ATTRIBUTES +const DWORD kInvalidFileAttributes = 0xffffffff; +# else +const char kCurrentDirectoryString[] = ".\\"; +# endif // GTEST_OS_WINDOWS_MOBILE +#else +const char kPathSeparator = '/'; +const char kPathSeparatorString[] = "/"; +const char kCurrentDirectoryString[] = "./"; +#endif // GTEST_OS_WINDOWS + +// Returns whether the given character is a valid path separator. +static bool IsPathSeparator(char c) { +#if GTEST_HAS_ALT_PATH_SEP_ + return (c == kPathSeparator) || (c == kAlternatePathSeparator); +#else + return c == kPathSeparator; +#endif +} + +// Returns the current working directory, or "" if unsuccessful. +FilePath FilePath::GetCurrentDir() { +#if GTEST_OS_WINDOWS_MOBILE + // Windows CE doesn't have a current directory, so we just return + // something reasonable. + return FilePath(kCurrentDirectoryString); +#elif GTEST_OS_WINDOWS + char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; + return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); +#else + char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; + return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); +#endif // GTEST_OS_WINDOWS_MOBILE +} + +// Returns a copy of the FilePath with the case-insensitive extension removed. +// Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns +// FilePath("dir/file"). If a case-insensitive extension is not +// found, returns a copy of the original FilePath. +FilePath FilePath::RemoveExtension(const char* extension) const { + const std::string dot_extension = std::string(".") + extension; + if (String::EndsWithCaseInsensitive(pathname_, dot_extension)) { + return FilePath(pathname_.substr( + 0, pathname_.length() - dot_extension.length())); + } + return *this; +} + +// Returns a pointer to the last occurence of a valid path separator in +// the FilePath. On Windows, for example, both '/' and '\' are valid path +// separators. Returns NULL if no path separator was found. +const char* FilePath::FindLastPathSeparator() const { + const char* const last_sep = strrchr(c_str(), kPathSeparator); +#if GTEST_HAS_ALT_PATH_SEP_ + const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); + // Comparing two pointers of which only one is NULL is undefined. + if (last_alt_sep != NULL && + (last_sep == NULL || last_alt_sep > last_sep)) { + return last_alt_sep; + } +#endif + return last_sep; +} + +// Returns a copy of the FilePath with the directory part removed. +// Example: FilePath("path/to/file").RemoveDirectoryName() returns +// FilePath("file"). If there is no directory part ("just_a_file"), it returns +// the FilePath unmodified. If there is no file part ("just_a_dir/") it +// returns an empty FilePath (""). +// On Windows platform, '\' is the path separator, otherwise it is '/'. +FilePath FilePath::RemoveDirectoryName() const { + const char* const last_sep = FindLastPathSeparator(); + return last_sep ? FilePath(last_sep + 1) : *this; +} + +// RemoveFileName returns the directory path with the filename removed. +// Example: FilePath("path/to/file").RemoveFileName() returns "path/to/". +// If the FilePath is "a_file" or "/a_file", RemoveFileName returns +// FilePath("./") or, on Windows, FilePath(".\\"). If the filepath does +// not have a file, like "just/a/dir/", it returns the FilePath unmodified. +// On Windows platform, '\' is the path separator, otherwise it is '/'. +FilePath FilePath::RemoveFileName() const { + const char* const last_sep = FindLastPathSeparator(); + std::string dir; + if (last_sep) { + dir = std::string(c_str(), last_sep + 1 - c_str()); + } else { + dir = kCurrentDirectoryString; + } + return FilePath(dir); +} + +// Helper functions for naming files in a directory for xml output. + +// Given directory = "dir", base_name = "test", number = 0, +// extension = "xml", returns "dir/test.xml". If number is greater +// than zero (e.g., 12), returns "dir/test_12.xml". +// On Windows platform, uses \ as the separator rather than /. +FilePath FilePath::MakeFileName(const FilePath& directory, + const FilePath& base_name, + int number, + const char* extension) { + std::string file; + if (number == 0) { + file = base_name.string() + "." + extension; + } else { + file = base_name.string() + "_" + StreamableToString(number) + + "." + extension; + } + return ConcatPaths(directory, FilePath(file)); +} + +// Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml". +// On Windows, uses \ as the separator rather than /. +FilePath FilePath::ConcatPaths(const FilePath& directory, + const FilePath& relative_path) { + if (directory.IsEmpty()) + return relative_path; + const FilePath dir(directory.RemoveTrailingPathSeparator()); + return FilePath(dir.string() + kPathSeparator + relative_path.string()); +} + +// Returns true if pathname describes something findable in the file-system, +// either a file, directory, or whatever. +bool FilePath::FileOrDirectoryExists() const { +#if GTEST_OS_WINDOWS_MOBILE + LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); + const DWORD attributes = GetFileAttributes(unicode); + delete [] unicode; + return attributes != kInvalidFileAttributes; +#else + posix::StatStruct file_stat; + return posix::Stat(pathname_.c_str(), &file_stat) == 0; +#endif // GTEST_OS_WINDOWS_MOBILE +} + +// Returns true if pathname describes a directory in the file-system +// that exists. +bool FilePath::DirectoryExists() const { + bool result = false; +#if GTEST_OS_WINDOWS + // Don't strip off trailing separator if path is a root directory on + // Windows (like "C:\\"). + const FilePath& path(IsRootDirectory() ? *this : + RemoveTrailingPathSeparator()); +#else + const FilePath& path(*this); +#endif + +#if GTEST_OS_WINDOWS_MOBILE + LPCWSTR unicode = String::AnsiToUtf16(path.c_str()); + const DWORD attributes = GetFileAttributes(unicode); + delete [] unicode; + if ((attributes != kInvalidFileAttributes) && + (attributes & FILE_ATTRIBUTE_DIRECTORY)) { + result = true; + } +#else + posix::StatStruct file_stat; + result = posix::Stat(path.c_str(), &file_stat) == 0 && + posix::IsDir(file_stat); +#endif // GTEST_OS_WINDOWS_MOBILE + + return result; +} + +// Returns true if pathname describes a root directory. (Windows has one +// root directory per disk drive.) +bool FilePath::IsRootDirectory() const { +#if GTEST_OS_WINDOWS + // TODO(wan@google.com): on Windows a network share like + // \\server\share can be a root directory, although it cannot be the + // current directory. Handle this properly. + return pathname_.length() == 3 && IsAbsolutePath(); +#else + return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]); +#endif +} + +// Returns true if pathname describes an absolute path. +bool FilePath::IsAbsolutePath() const { + const char* const name = pathname_.c_str(); +#if GTEST_OS_WINDOWS + return pathname_.length() >= 3 && + ((name[0] >= 'a' && name[0] <= 'z') || + (name[0] >= 'A' && name[0] <= 'Z')) && + name[1] == ':' && + IsPathSeparator(name[2]); +#else + return IsPathSeparator(name[0]); +#endif +} + +// Returns a pathname for a file that does not currently exist. The pathname +// will be directory/base_name.extension or +// directory/base_name_.extension if directory/base_name.extension +// already exists. The number will be incremented until a pathname is found +// that does not already exist. +// Examples: 'dir/foo_test.xml' or 'dir/foo_test_1.xml'. +// There could be a race condition if two or more processes are calling this +// function at the same time -- they could both pick the same filename. +FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, + const FilePath& base_name, + const char* extension) { + FilePath full_pathname; + int number = 0; + do { + full_pathname.Set(MakeFileName(directory, base_name, number++, extension)); + } while (full_pathname.FileOrDirectoryExists()); + return full_pathname; +} + +// Returns true if FilePath ends with a path separator, which indicates that +// it is intended to represent a directory. Returns false otherwise. +// This does NOT check that a directory (or file) actually exists. +bool FilePath::IsDirectory() const { + return !pathname_.empty() && + IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); +} + +// Create directories so that path exists. Returns true if successful or if +// the directories already exist; returns false if unable to create directories +// for any reason. +bool FilePath::CreateDirectoriesRecursively() const { + if (!this->IsDirectory()) { + return false; + } + + if (pathname_.length() == 0 || this->DirectoryExists()) { + return true; + } + + const FilePath parent(this->RemoveTrailingPathSeparator().RemoveFileName()); + return parent.CreateDirectoriesRecursively() && this->CreateFolder(); +} + +// Create the directory so that path exists. Returns true if successful or +// if the directory already exists; returns false if unable to create the +// directory for any reason, including if the parent directory does not +// exist. Not named "CreateDirectory" because that's a macro on Windows. +bool FilePath::CreateFolder() const { +#if GTEST_OS_WINDOWS_MOBILE + FilePath removed_sep(this->RemoveTrailingPathSeparator()); + LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str()); + int result = CreateDirectory(unicode, NULL) ? 0 : -1; + delete [] unicode; +#elif GTEST_OS_WINDOWS + int result = _mkdir(pathname_.c_str()); +#else + int result = mkdir(pathname_.c_str(), 0777); +#endif // GTEST_OS_WINDOWS_MOBILE + + if (result == -1) { + return this->DirectoryExists(); // An error is OK if the directory exists. + } + return true; // No error. +} + +// If input name has a trailing separator character, remove it and return the +// name, otherwise return the name string unmodified. +// On Windows platform, uses \ as the separator, other platforms use /. +FilePath FilePath::RemoveTrailingPathSeparator() const { + return IsDirectory() + ? FilePath(pathname_.substr(0, pathname_.length() - 1)) + : *this; +} + +// Removes any redundant separators that might be in the pathname. +// For example, "bar///foo" becomes "bar/foo". Does not eliminate other +// redundancies that might be in a pathname involving "." or "..". +// TODO(wan@google.com): handle Windows network shares (e.g. \\server\share). +void FilePath::Normalize() { + if (pathname_.c_str() == NULL) { + pathname_ = ""; + return; + } + const char* src = pathname_.c_str(); + char* const dest = new char[pathname_.length() + 1]; + char* dest_ptr = dest; + memset(dest_ptr, 0, pathname_.length() + 1); + + while (*src != '\0') { + *dest_ptr = *src; + if (!IsPathSeparator(*src)) { + src++; + } else { +#if GTEST_HAS_ALT_PATH_SEP_ + if (*dest_ptr == kAlternatePathSeparator) { + *dest_ptr = kPathSeparator; + } +#endif + while (IsPathSeparator(*src)) + src++; + } + dest_ptr++; + } + *dest_ptr = '\0'; + pathname_ = dest; + delete[] dest; +} + +} // namespace internal +} // namespace testing +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + + +#include +#include +#include +#include + +#if GTEST_OS_WINDOWS_MOBILE +# include // For TerminateProcess() +#elif GTEST_OS_WINDOWS +# include +# include +#else +# include +#endif // GTEST_OS_WINDOWS_MOBILE + +#if GTEST_OS_MAC +# include +# include +# include +#endif // GTEST_OS_MAC + +#if GTEST_OS_QNX +# include +# include +#endif // GTEST_OS_QNX + + +// Indicates that this translation unit is part of Google Test's +// implementation. It must come before gtest-internal-inl.h is +// included, or there will be a compiler error. This trick is to +// prevent a user from accidentally including gtest-internal-inl.h in +// his code. +#define GTEST_IMPLEMENTATION_ 1 +#undef GTEST_IMPLEMENTATION_ + +namespace testing { +namespace internal { + +#if defined(_MSC_VER) || defined(__BORLANDC__) +// MSVC and C++Builder do not provide a definition of STDERR_FILENO. +const int kStdOutFileno = 1; +const int kStdErrFileno = 2; +#else +const int kStdOutFileno = STDOUT_FILENO; +const int kStdErrFileno = STDERR_FILENO; +#endif // _MSC_VER + +#if GTEST_OS_MAC + +// Returns the number of threads running in the process, or 0 to indicate that +// we cannot detect it. +size_t GetThreadCount() { + const task_t task = mach_task_self(); + mach_msg_type_number_t thread_count; + thread_act_array_t thread_list; + const kern_return_t status = task_threads(task, &thread_list, &thread_count); + if (status == KERN_SUCCESS) { + // task_threads allocates resources in thread_list and we need to free them + // to avoid leaks. + vm_deallocate(task, + reinterpret_cast(thread_list), + sizeof(thread_t) * thread_count); + return static_cast(thread_count); + } else { + return 0; + } +} + +#elif GTEST_OS_QNX + +// Returns the number of threads running in the process, or 0 to indicate that +// we cannot detect it. +size_t GetThreadCount() { + const int fd = open("/proc/self/as", O_RDONLY); + if (fd < 0) { + return 0; + } + procfs_info process_info; + const int status = + devctl(fd, DCMD_PROC_INFO, &process_info, sizeof(process_info), NULL); + close(fd); + if (status == EOK) { + return static_cast(process_info.num_threads); + } else { + return 0; + } +} + +#else + +size_t GetThreadCount() { + // There's no portable way to detect the number of threads, so we just + // return 0 to indicate that we cannot detect it. + return 0; +} + +#endif // GTEST_OS_MAC + +#if GTEST_USES_POSIX_RE + +// Implements RE. Currently only needed for death tests. + +RE::~RE() { + if (is_valid_) { + // regfree'ing an invalid regex might crash because the content + // of the regex is undefined. Since the regex's are essentially + // the same, one cannot be valid (or invalid) without the other + // being so too. + regfree(&partial_regex_); + regfree(&full_regex_); + } + free(const_cast(pattern_)); +} + +// Returns true iff regular expression re matches the entire str. +bool RE::FullMatch(const char* str, const RE& re) { + if (!re.is_valid_) return false; + + regmatch_t match; + return regexec(&re.full_regex_, str, 1, &match, 0) == 0; +} + +// Returns true iff regular expression re matches a substring of str +// (including str itself). +bool RE::PartialMatch(const char* str, const RE& re) { + if (!re.is_valid_) return false; + + regmatch_t match; + return regexec(&re.partial_regex_, str, 1, &match, 0) == 0; +} + +// Initializes an RE from its string representation. +void RE::Init(const char* regex) { + pattern_ = posix::StrDup(regex); + + // Reserves enough bytes to hold the regular expression used for a + // full match. + const size_t full_regex_len = strlen(regex) + 10; + char* const full_pattern = new char[full_regex_len]; + + snprintf(full_pattern, full_regex_len, "^(%s)$", regex); + is_valid_ = regcomp(&full_regex_, full_pattern, REG_EXTENDED) == 0; + // We want to call regcomp(&partial_regex_, ...) even if the + // previous expression returns false. Otherwise partial_regex_ may + // not be properly initialized can may cause trouble when it's + // freed. + // + // Some implementation of POSIX regex (e.g. on at least some + // versions of Cygwin) doesn't accept the empty string as a valid + // regex. We change it to an equivalent form "()" to be safe. + if (is_valid_) { + const char* const partial_regex = (*regex == '\0') ? "()" : regex; + is_valid_ = regcomp(&partial_regex_, partial_regex, REG_EXTENDED) == 0; + } + EXPECT_TRUE(is_valid_) + << "Regular expression \"" << regex + << "\" is not a valid POSIX Extended regular expression."; + + delete[] full_pattern; +} + +#elif GTEST_USES_SIMPLE_RE + +// Returns true iff ch appears anywhere in str (excluding the +// terminating '\0' character). +bool IsInSet(char ch, const char* str) { + return ch != '\0' && strchr(str, ch) != NULL; +} + +// Returns true iff ch belongs to the given classification. Unlike +// similar functions in , these aren't affected by the +// current locale. +bool IsAsciiDigit(char ch) { return '0' <= ch && ch <= '9'; } +bool IsAsciiPunct(char ch) { + return IsInSet(ch, "^-!\"#$%&'()*+,./:;<=>?@[\\]_`{|}~"); +} +bool IsRepeat(char ch) { return IsInSet(ch, "?*+"); } +bool IsAsciiWhiteSpace(char ch) { return IsInSet(ch, " \f\n\r\t\v"); } +bool IsAsciiWordChar(char ch) { + return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || + ('0' <= ch && ch <= '9') || ch == '_'; +} + +// Returns true iff "\\c" is a supported escape sequence. +bool IsValidEscape(char c) { + return (IsAsciiPunct(c) || IsInSet(c, "dDfnrsStvwW")); +} + +// Returns true iff the given atom (specified by escaped and pattern) +// matches ch. The result is undefined if the atom is invalid. +bool AtomMatchesChar(bool escaped, char pattern_char, char ch) { + if (escaped) { // "\\p" where p is pattern_char. + switch (pattern_char) { + case 'd': return IsAsciiDigit(ch); + case 'D': return !IsAsciiDigit(ch); + case 'f': return ch == '\f'; + case 'n': return ch == '\n'; + case 'r': return ch == '\r'; + case 's': return IsAsciiWhiteSpace(ch); + case 'S': return !IsAsciiWhiteSpace(ch); + case 't': return ch == '\t'; + case 'v': return ch == '\v'; + case 'w': return IsAsciiWordChar(ch); + case 'W': return !IsAsciiWordChar(ch); + } + return IsAsciiPunct(pattern_char) && pattern_char == ch; + } + + return (pattern_char == '.' && ch != '\n') || pattern_char == ch; +} + +// Helper function used by ValidateRegex() to format error messages. +std::string FormatRegexSyntaxError(const char* regex, int index) { + return (Message() << "Syntax error at index " << index + << " in simple regular expression \"" << regex << "\": ").GetString(); +} + +// Generates non-fatal failures and returns false if regex is invalid; +// otherwise returns true. +bool ValidateRegex(const char* regex) { + if (regex == NULL) { + // TODO(wan@google.com): fix the source file location in the + // assertion failures to match where the regex is used in user + // code. + ADD_FAILURE() << "NULL is not a valid simple regular expression."; + return false; + } + + bool is_valid = true; + + // True iff ?, *, or + can follow the previous atom. + bool prev_repeatable = false; + for (int i = 0; regex[i]; i++) { + if (regex[i] == '\\') { // An escape sequence + i++; + if (regex[i] == '\0') { + ADD_FAILURE() << FormatRegexSyntaxError(regex, i - 1) + << "'\\' cannot appear at the end."; + return false; + } + + if (!IsValidEscape(regex[i])) { + ADD_FAILURE() << FormatRegexSyntaxError(regex, i - 1) + << "invalid escape sequence \"\\" << regex[i] << "\"."; + is_valid = false; + } + prev_repeatable = true; + } else { // Not an escape sequence. + const char ch = regex[i]; + + if (ch == '^' && i > 0) { + ADD_FAILURE() << FormatRegexSyntaxError(regex, i) + << "'^' can only appear at the beginning."; + is_valid = false; + } else if (ch == '$' && regex[i + 1] != '\0') { + ADD_FAILURE() << FormatRegexSyntaxError(regex, i) + << "'$' can only appear at the end."; + is_valid = false; + } else if (IsInSet(ch, "()[]{}|")) { + ADD_FAILURE() << FormatRegexSyntaxError(regex, i) + << "'" << ch << "' is unsupported."; + is_valid = false; + } else if (IsRepeat(ch) && !prev_repeatable) { + ADD_FAILURE() << FormatRegexSyntaxError(regex, i) + << "'" << ch << "' can only follow a repeatable token."; + is_valid = false; + } + + prev_repeatable = !IsInSet(ch, "^$?*+"); + } + } + + return is_valid; +} + +// Matches a repeated regex atom followed by a valid simple regular +// expression. The regex atom is defined as c if escaped is false, +// or \c otherwise. repeat is the repetition meta character (?, *, +// or +). The behavior is undefined if str contains too many +// characters to be indexable by size_t, in which case the test will +// probably time out anyway. We are fine with this limitation as +// std::string has it too. +bool MatchRepetitionAndRegexAtHead( + bool escaped, char c, char repeat, const char* regex, + const char* str) { + const size_t min_count = (repeat == '+') ? 1 : 0; + const size_t max_count = (repeat == '?') ? 1 : + static_cast(-1) - 1; + // We cannot call numeric_limits::max() as it conflicts with the + // max() macro on Windows. + + for (size_t i = 0; i <= max_count; ++i) { + // We know that the atom matches each of the first i characters in str. + if (i >= min_count && MatchRegexAtHead(regex, str + i)) { + // We have enough matches at the head, and the tail matches too. + // Since we only care about *whether* the pattern matches str + // (as opposed to *how* it matches), there is no need to find a + // greedy match. + return true; + } + if (str[i] == '\0' || !AtomMatchesChar(escaped, c, str[i])) + return false; + } + return false; +} + +// Returns true iff regex matches a prefix of str. regex must be a +// valid simple regular expression and not start with "^", or the +// result is undefined. +bool MatchRegexAtHead(const char* regex, const char* str) { + if (*regex == '\0') // An empty regex matches a prefix of anything. + return true; + + // "$" only matches the end of a string. Note that regex being + // valid guarantees that there's nothing after "$" in it. + if (*regex == '$') + return *str == '\0'; + + // Is the first thing in regex an escape sequence? + const bool escaped = *regex == '\\'; + if (escaped) + ++regex; + if (IsRepeat(regex[1])) { + // MatchRepetitionAndRegexAtHead() calls MatchRegexAtHead(), so + // here's an indirect recursion. It terminates as the regex gets + // shorter in each recursion. + return MatchRepetitionAndRegexAtHead( + escaped, regex[0], regex[1], regex + 2, str); + } else { + // regex isn't empty, isn't "$", and doesn't start with a + // repetition. We match the first atom of regex with the first + // character of str and recurse. + return (*str != '\0') && AtomMatchesChar(escaped, *regex, *str) && + MatchRegexAtHead(regex + 1, str + 1); + } +} + +// Returns true iff regex matches any substring of str. regex must be +// a valid simple regular expression, or the result is undefined. +// +// The algorithm is recursive, but the recursion depth doesn't exceed +// the regex length, so we won't need to worry about running out of +// stack space normally. In rare cases the time complexity can be +// exponential with respect to the regex length + the string length, +// but usually it's must faster (often close to linear). +bool MatchRegexAnywhere(const char* regex, const char* str) { + if (regex == NULL || str == NULL) + return false; + + if (*regex == '^') + return MatchRegexAtHead(regex + 1, str); + + // A successful match can be anywhere in str. + do { + if (MatchRegexAtHead(regex, str)) + return true; + } while (*str++ != '\0'); + return false; +} + +// Implements the RE class. + +RE::~RE() { + free(const_cast(pattern_)); + free(const_cast(full_pattern_)); +} + +// Returns true iff regular expression re matches the entire str. +bool RE::FullMatch(const char* str, const RE& re) { + return re.is_valid_ && MatchRegexAnywhere(re.full_pattern_, str); +} + +// Returns true iff regular expression re matches a substring of str +// (including str itself). +bool RE::PartialMatch(const char* str, const RE& re) { + return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); +} + +// Initializes an RE from its string representation. +void RE::Init(const char* regex) { + pattern_ = full_pattern_ = NULL; + if (regex != NULL) { + pattern_ = posix::StrDup(regex); + } + + is_valid_ = ValidateRegex(regex); + if (!is_valid_) { + // No need to calculate the full pattern when the regex is invalid. + return; + } + + const size_t len = strlen(regex); + // Reserves enough bytes to hold the regular expression used for a + // full match: we need space to prepend a '^', append a '$', and + // terminate the string with '\0'. + char* buffer = static_cast(malloc(len + 3)); + full_pattern_ = buffer; + + if (*regex != '^') + *buffer++ = '^'; // Makes sure full_pattern_ starts with '^'. + + // We don't use snprintf or strncpy, as they trigger a warning when + // compiled with VC++ 8.0. + memcpy(buffer, regex, len); + buffer += len; + + if (len == 0 || regex[len - 1] != '$') + *buffer++ = '$'; // Makes sure full_pattern_ ends with '$'. + + *buffer = '\0'; +} + +#endif // GTEST_USES_POSIX_RE + +const char kUnknownFile[] = "unknown file"; + +// Formats a source file path and a line number as they would appear +// in an error message from the compiler used to compile this code. +GTEST_API_ ::std::string FormatFileLocation(const char* file, int line) { + const std::string file_name(file == NULL ? kUnknownFile : file); + + if (line < 0) { + return file_name + ":"; + } +#ifdef _MSC_VER + return file_name + "(" + StreamableToString(line) + "):"; +#else + return file_name + ":" + StreamableToString(line) + ":"; +#endif // _MSC_VER +} + +// Formats a file location for compiler-independent XML output. +// Although this function is not platform dependent, we put it next to +// FormatFileLocation in order to contrast the two functions. +// Note that FormatCompilerIndependentFileLocation() does NOT append colon +// to the file location it produces, unlike FormatFileLocation(). +GTEST_API_ ::std::string FormatCompilerIndependentFileLocation( + const char* file, int line) { + const std::string file_name(file == NULL ? kUnknownFile : file); + + if (line < 0) + return file_name; + else + return file_name + ":" + StreamableToString(line); +} + + +GTestLog::GTestLog(GTestLogSeverity severity, const char* file, int line) + : severity_(severity) { + const char* const marker = + severity == GTEST_INFO ? "[ INFO ]" : + severity == GTEST_WARNING ? "[WARNING]" : + severity == GTEST_ERROR ? "[ ERROR ]" : "[ FATAL ]"; + GetStream() << ::std::endl << marker << " " + << FormatFileLocation(file, line).c_str() << ": "; +} + +// Flushes the buffers and, if severity is GTEST_FATAL, aborts the program. +GTestLog::~GTestLog() { + GetStream() << ::std::endl; + if (severity_ == GTEST_FATAL) { + fflush(stderr); + posix::Abort(); + } +} +// Disable Microsoft deprecation warnings for POSIX functions called from +// this class (creat, dup, dup2, and close) +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning(disable: 4996) +#endif // _MSC_VER + +#if GTEST_HAS_STREAM_REDIRECTION + +// Object that captures an output stream (stdout/stderr). +class CapturedStream { + public: + // The ctor redirects the stream to a temporary file. + explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { +# if GTEST_OS_WINDOWS + char temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT + char temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT + + ::GetTempPathA(sizeof(temp_dir_path), temp_dir_path); + const UINT success = ::GetTempFileNameA(temp_dir_path, + "gtest_redir", + 0, // Generate unique file name. + temp_file_path); + GTEST_CHECK_(success != 0) + << "Unable to create a temporary file in " << temp_dir_path; + const int captured_fd = creat(temp_file_path, _S_IREAD | _S_IWRITE); + GTEST_CHECK_(captured_fd != -1) << "Unable to open temporary file " + << temp_file_path; + filename_ = temp_file_path; +# else + // There's no guarantee that a test has write access to the current + // directory, so we create the temporary file in the /tmp directory + // instead. We use /tmp on most systems, and /sdcard on Android. + // That's because Android doesn't have /tmp. +# if GTEST_OS_LINUX_ANDROID + // Note: Android applications are expected to call the framework's + // Context.getExternalStorageDirectory() method through JNI to get + // the location of the world-writable SD Card directory. However, + // this requires a Context handle, which cannot be retrieved + // globally from native code. Doing so also precludes running the + // code as part of a regular standalone executable, which doesn't + // run in a Dalvik process (e.g. when running it through 'adb shell'). + // + // The location /sdcard is directly accessible from native code + // and is the only location (unofficially) supported by the Android + // team. It's generally a symlink to the real SD Card mount point + // which can be /mnt/sdcard, /mnt/sdcard0, /system/media/sdcard, or + // other OEM-customized locations. Never rely on these, and always + // use /sdcard. + char name_template[] = "/sdcard/gtest_captured_stream.XXXXXX"; +# else + char name_template[] = "/tmp/captured_stream.XXXXXX"; +# endif // GTEST_OS_LINUX_ANDROID + const int captured_fd = mkstemp(name_template); + filename_ = name_template; +# endif // GTEST_OS_WINDOWS + fflush(NULL); + dup2(captured_fd, fd_); + close(captured_fd); + } + + ~CapturedStream() { + remove(filename_.c_str()); + } + + std::string GetCapturedString() { + if (uncaptured_fd_ != -1) { + // Restores the original stream. + fflush(NULL); + dup2(uncaptured_fd_, fd_); + close(uncaptured_fd_); + uncaptured_fd_ = -1; + } + + FILE* const file = posix::FOpen(filename_.c_str(), "r"); + const std::string content = ReadEntireFile(file); + posix::FClose(file); + return content; + } + + private: + // Reads the entire content of a file as an std::string. + static std::string ReadEntireFile(FILE* file); + + // Returns the size (in bytes) of a file. + static size_t GetFileSize(FILE* file); + + const int fd_; // A stream to capture. + int uncaptured_fd_; + // Name of the temporary file holding the stderr output. + ::std::string filename_; + + GTEST_DISALLOW_COPY_AND_ASSIGN_(CapturedStream); +}; + +// Returns the size (in bytes) of a file. +size_t CapturedStream::GetFileSize(FILE* file) { + fseek(file, 0, SEEK_END); + return static_cast(ftell(file)); +} + +// Reads the entire content of a file as a string. +std::string CapturedStream::ReadEntireFile(FILE* file) { + const size_t file_size = GetFileSize(file); + char* const buffer = new char[file_size]; + + size_t bytes_last_read = 0; // # of bytes read in the last fread() + size_t bytes_read = 0; // # of bytes read so far + + fseek(file, 0, SEEK_SET); + + // Keeps reading the file until we cannot read further or the + // pre-determined file size is reached. + do { + bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); + bytes_read += bytes_last_read; + } while (bytes_last_read > 0 && bytes_read < file_size); + + const std::string content(buffer, bytes_read); + delete[] buffer; + + return content; +} + +# ifdef _MSC_VER +# pragma warning(pop) +# endif // _MSC_VER + +static CapturedStream* g_captured_stderr = NULL; +static CapturedStream* g_captured_stdout = NULL; + +// Starts capturing an output stream (stdout/stderr). +void CaptureStream(int fd, const char* stream_name, CapturedStream** stream) { + if (*stream != NULL) { + GTEST_LOG_(FATAL) << "Only one " << stream_name + << " capturer can exist at a time."; + } + *stream = new CapturedStream(fd); +} + +// Stops capturing the output stream and returns the captured string. +std::string GetCapturedStream(CapturedStream** captured_stream) { + const std::string content = (*captured_stream)->GetCapturedString(); + + delete *captured_stream; + *captured_stream = NULL; + + return content; +} + +// Starts capturing stdout. +void CaptureStdout() { + CaptureStream(kStdOutFileno, "stdout", &g_captured_stdout); +} + +// Starts capturing stderr. +void CaptureStderr() { + CaptureStream(kStdErrFileno, "stderr", &g_captured_stderr); +} + +// Stops capturing stdout and returns the captured string. +std::string GetCapturedStdout() { + return GetCapturedStream(&g_captured_stdout); +} + +// Stops capturing stderr and returns the captured string. +std::string GetCapturedStderr() { + return GetCapturedStream(&g_captured_stderr); +} + +#endif // GTEST_HAS_STREAM_REDIRECTION + +#if GTEST_HAS_DEATH_TEST + +// A copy of all command line arguments. Set by InitGoogleTest(). +::std::vector g_argvs; + +static const ::std::vector* g_injected_test_argvs = + NULL; // Owned. + +void SetInjectableArgvs(const ::std::vector* argvs) { + if (g_injected_test_argvs != argvs) + delete g_injected_test_argvs; + g_injected_test_argvs = argvs; +} + +const ::std::vector& GetInjectableArgvs() { + if (g_injected_test_argvs != NULL) { + return *g_injected_test_argvs; + } + return g_argvs; +} +#endif // GTEST_HAS_DEATH_TEST + +#if GTEST_OS_WINDOWS_MOBILE +namespace posix { +void Abort() { + DebugBreak(); + TerminateProcess(GetCurrentProcess(), 1); +} +} // namespace posix +#endif // GTEST_OS_WINDOWS_MOBILE + +// Returns the name of the environment variable corresponding to the +// given flag. For example, FlagToEnvVar("foo") will return +// "GTEST_FOO" in the open-source version. +static std::string FlagToEnvVar(const char* flag) { + const std::string full_flag = + (Message() << GTEST_FLAG_PREFIX_ << flag).GetString(); + + Message env_var; + for (size_t i = 0; i != full_flag.length(); i++) { + env_var << ToUpper(full_flag.c_str()[i]); + } + + return env_var.GetString(); +} + +// Parses 'str' for a 32-bit signed integer. If successful, writes +// the result to *value and returns true; otherwise leaves *value +// unchanged and returns false. +bool ParseInt32(const Message& src_text, const char* str, Int32* value) { + // Parses the environment variable as a decimal integer. + char* end = NULL; + const long long_value = strtol(str, &end, 10); // NOLINT + + // Has strtol() consumed all characters in the string? + if (*end != '\0') { + // No - an invalid character was encountered. + Message msg; + msg << "WARNING: " << src_text + << " is expected to be a 32-bit integer, but actually" + << " has value \"" << str << "\".\n"; + printf("%s", msg.GetString().c_str()); + fflush(stdout); + return false; + } + + // Is the parsed value in the range of an Int32? + const Int32 result = static_cast(long_value); + if (long_value == LONG_MAX || long_value == LONG_MIN || + // The parsed value overflows as a long. (strtol() returns + // LONG_MAX or LONG_MIN when the input overflows.) + result != long_value + // The parsed value overflows as an Int32. + ) { + Message msg; + msg << "WARNING: " << src_text + << " is expected to be a 32-bit integer, but actually" + << " has value " << str << ", which overflows.\n"; + printf("%s", msg.GetString().c_str()); + fflush(stdout); + return false; + } + + *value = result; + return true; +} + +// Reads and returns the Boolean environment variable corresponding to +// the given flag; if it's not set, returns default_value. +// +// The value is considered true iff it's not "0". +bool BoolFromGTestEnv(const char* flag, bool default_value) { + const std::string env_var = FlagToEnvVar(flag); + const char* const string_value = posix::GetEnv(env_var.c_str()); + return string_value == NULL ? + default_value : strcmp(string_value, "0") != 0; +} + +// Reads and returns a 32-bit integer stored in the environment +// variable corresponding to the given flag; if it isn't set or +// doesn't represent a valid 32-bit integer, returns default_value. +Int32 Int32FromGTestEnv(const char* flag, Int32 default_value) { + const std::string env_var = FlagToEnvVar(flag); + const char* const string_value = posix::GetEnv(env_var.c_str()); + if (string_value == NULL) { + // The environment variable is not set. + return default_value; + } + + Int32 result = default_value; + if (!ParseInt32(Message() << "Environment variable " << env_var, + string_value, &result)) { + printf("The default value %s is used.\n", + (Message() << default_value).GetString().c_str()); + fflush(stdout); + return default_value; + } + + return result; +} + +// Reads and returns the string environment variable corresponding to +// the given flag; if it's not set, returns default_value. +const char* StringFromGTestEnv(const char* flag, const char* default_value) { + const std::string env_var = FlagToEnvVar(flag); + const char* const value = posix::GetEnv(env_var.c_str()); + return value == NULL ? default_value : value; +} + +} // namespace internal +} // namespace testing +// Copyright 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + +// Google Test - The Google C++ Testing Framework +// +// This file implements a universal value printer that can print a +// value of any type T: +// +// void ::testing::internal::UniversalPrinter::Print(value, ostream_ptr); +// +// It uses the << operator when possible, and prints the bytes in the +// object otherwise. A user can override its behavior for a class +// type Foo by defining either operator<<(::std::ostream&, const Foo&) +// or void PrintTo(const Foo&, ::std::ostream*) in the namespace that +// defines Foo. + +#include +#include +#include // NOLINT +#include + +namespace testing { + +namespace { + +using ::std::ostream; + +// Prints a segment of bytes in the given object. +void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start, + size_t count, ostream* os) { + char text[5] = ""; + for (size_t i = 0; i != count; i++) { + const size_t j = start + i; + if (i != 0) { + // Organizes the bytes into groups of 2 for easy parsing by + // human. + if ((j % 2) == 0) + *os << ' '; + else + *os << '-'; + } + GTEST_SNPRINTF_(text, sizeof(text), "%02X", obj_bytes[j]); + *os << text; + } +} + +// Prints the bytes in the given value to the given ostream. +void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count, + ostream* os) { + // Tells the user how big the object is. + *os << count << "-byte object <"; + + const size_t kThreshold = 132; + const size_t kChunkSize = 64; + // If the object size is bigger than kThreshold, we'll have to omit + // some details by printing only the first and the last kChunkSize + // bytes. + // TODO(wan): let the user control the threshold using a flag. + if (count < kThreshold) { + PrintByteSegmentInObjectTo(obj_bytes, 0, count, os); + } else { + PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os); + *os << " ... "; + // Rounds up to 2-byte boundary. + const size_t resume_pos = (count - kChunkSize + 1)/2*2; + PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os); + } + *os << ">"; +} + +} // namespace + +namespace internal2 { + +// Delegates to PrintBytesInObjectToImpl() to print the bytes in the +// given object. The delegation simplifies the implementation, which +// uses the << operator and thus is easier done outside of the +// ::testing::internal namespace, which contains a << operator that +// sometimes conflicts with the one in STL. +void PrintBytesInObjectTo(const unsigned char* obj_bytes, size_t count, + ostream* os) { + PrintBytesInObjectToImpl(obj_bytes, count, os); +} + +} // namespace internal2 + +namespace internal { + +// Depending on the value of a char (or wchar_t), we print it in one +// of three formats: +// - as is if it's a printable ASCII (e.g. 'a', '2', ' '), +// - as a hexidecimal escape sequence (e.g. '\x7F'), or +// - as a special escape sequence (e.g. '\r', '\n'). +enum CharFormat { + kAsIs, + kHexEscape, + kSpecialEscape +}; + +// Returns true if c is a printable ASCII character. We test the +// value of c directly instead of calling isprint(), which is buggy on +// Windows Mobile. +inline bool IsPrintableAscii(wchar_t c) { + return 0x20 <= c && c <= 0x7E; +} + +// Prints a wide or narrow char c as a character literal without the +// quotes, escaping it when necessary; returns how c was formatted. +// The template argument UnsignedChar is the unsigned version of Char, +// which is the type of c. +template +static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) { + switch (static_cast(c)) { + case L'\0': + *os << "\\0"; + break; + case L'\'': + *os << "\\'"; + break; + case L'\\': + *os << "\\\\"; + break; + case L'\a': + *os << "\\a"; + break; + case L'\b': + *os << "\\b"; + break; + case L'\f': + *os << "\\f"; + break; + case L'\n': + *os << "\\n"; + break; + case L'\r': + *os << "\\r"; + break; + case L'\t': + *os << "\\t"; + break; + case L'\v': + *os << "\\v"; + break; + default: + if (IsPrintableAscii(c)) { + *os << static_cast(c); + return kAsIs; + } else { + *os << "\\x" + String::FormatHexInt(static_cast(c)); + return kHexEscape; + } + } + return kSpecialEscape; +} + +// Prints a wchar_t c as if it's part of a string literal, escaping it when +// necessary; returns how c was formatted. +static CharFormat PrintAsStringLiteralTo(wchar_t c, ostream* os) { + switch (c) { + case L'\'': + *os << "'"; + return kAsIs; + case L'"': + *os << "\\\""; + return kSpecialEscape; + default: + return PrintAsCharLiteralTo(c, os); + } +} + +// Prints a char c as if it's part of a string literal, escaping it when +// necessary; returns how c was formatted. +static CharFormat PrintAsStringLiteralTo(char c, ostream* os) { + return PrintAsStringLiteralTo( + static_cast(static_cast(c)), os); +} + +// Prints a wide or narrow character c and its code. '\0' is printed +// as "'\\0'", other unprintable characters are also properly escaped +// using the standard C++ escape sequence. The template argument +// UnsignedChar is the unsigned version of Char, which is the type of c. +template +void PrintCharAndCodeTo(Char c, ostream* os) { + // First, print c as a literal in the most readable form we can find. + *os << ((sizeof(c) > 1) ? "L'" : "'"); + const CharFormat format = PrintAsCharLiteralTo(c, os); + *os << "'"; + + // To aid user debugging, we also print c's code in decimal, unless + // it's 0 (in which case c was printed as '\\0', making the code + // obvious). + if (c == 0) + return; + *os << " (" << static_cast(c); + + // For more convenience, we print c's code again in hexidecimal, + // unless c was already printed in the form '\x##' or the code is in + // [1, 9]. + if (format == kHexEscape || (1 <= c && c <= 9)) { + // Do nothing. + } else { + *os << ", 0x" << String::FormatHexInt(static_cast(c)); + } + *os << ")"; +} + +void PrintTo(unsigned char c, ::std::ostream* os) { + PrintCharAndCodeTo(c, os); +} +void PrintTo(signed char c, ::std::ostream* os) { + PrintCharAndCodeTo(c, os); +} + +// Prints a wchar_t as a symbol if it is printable or as its internal +// code otherwise and also as its code. L'\0' is printed as "L'\\0'". +void PrintTo(wchar_t wc, ostream* os) { + PrintCharAndCodeTo(wc, os); +} + +// Prints the given array of characters to the ostream. CharType must be either +// char or wchar_t. +// The array starts at begin, the length is len, it may include '\0' characters +// and may not be NUL-terminated. +template +static void PrintCharsAsStringTo( + const CharType* begin, size_t len, ostream* os) { + const char* const kQuoteBegin = sizeof(CharType) == 1 ? "\"" : "L\""; + *os << kQuoteBegin; + bool is_previous_hex = false; + for (size_t index = 0; index < len; ++index) { + const CharType cur = begin[index]; + if (is_previous_hex && IsXDigit(cur)) { + // Previous character is of '\x..' form and this character can be + // interpreted as another hexadecimal digit in its number. Break string to + // disambiguate. + *os << "\" " << kQuoteBegin; + } + is_previous_hex = PrintAsStringLiteralTo(cur, os) == kHexEscape; + } + *os << "\""; +} + +// Prints a (const) char/wchar_t array of 'len' elements, starting at address +// 'begin'. CharType must be either char or wchar_t. +template +static void UniversalPrintCharArray( + const CharType* begin, size_t len, ostream* os) { + // The code + // const char kFoo[] = "foo"; + // generates an array of 4, not 3, elements, with the last one being '\0'. + // + // Therefore when printing a char array, we don't print the last element if + // it's '\0', such that the output matches the string literal as it's + // written in the source code. + if (len > 0 && begin[len - 1] == '\0') { + PrintCharsAsStringTo(begin, len - 1, os); + return; + } + + // If, however, the last element in the array is not '\0', e.g. + // const char kFoo[] = { 'f', 'o', 'o' }; + // we must print the entire array. We also print a message to indicate + // that the array is not NUL-terminated. + PrintCharsAsStringTo(begin, len, os); + *os << " (no terminating NUL)"; +} + +// Prints a (const) char array of 'len' elements, starting at address 'begin'. +void UniversalPrintArray(const char* begin, size_t len, ostream* os) { + UniversalPrintCharArray(begin, len, os); +} + +// Prints a (const) wchar_t array of 'len' elements, starting at address +// 'begin'. +void UniversalPrintArray(const wchar_t* begin, size_t len, ostream* os) { + UniversalPrintCharArray(begin, len, os); +} + +// Prints the given C string to the ostream. +void PrintTo(const char* s, ostream* os) { + if (s == NULL) { + *os << "NULL"; + } else { + *os << ImplicitCast_(s) << " pointing to "; + PrintCharsAsStringTo(s, strlen(s), os); + } +} + +// MSVC compiler can be configured to define whar_t as a typedef +// of unsigned short. Defining an overload for const wchar_t* in that case +// would cause pointers to unsigned shorts be printed as wide strings, +// possibly accessing more memory than intended and causing invalid +// memory accesses. MSVC defines _NATIVE_WCHAR_T_DEFINED symbol when +// wchar_t is implemented as a native type. +#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) +// Prints the given wide C string to the ostream. +void PrintTo(const wchar_t* s, ostream* os) { + if (s == NULL) { + *os << "NULL"; + } else { + *os << ImplicitCast_(s) << " pointing to "; + PrintCharsAsStringTo(s, wcslen(s), os); + } +} +#endif // wchar_t is native + +// Prints a ::string object. +#if GTEST_HAS_GLOBAL_STRING +void PrintStringTo(const ::string& s, ostream* os) { + PrintCharsAsStringTo(s.data(), s.size(), os); +} +#endif // GTEST_HAS_GLOBAL_STRING + +void PrintStringTo(const ::std::string& s, ostream* os) { + PrintCharsAsStringTo(s.data(), s.size(), os); +} + +// Prints a ::wstring object. +#if GTEST_HAS_GLOBAL_WSTRING +void PrintWideStringTo(const ::wstring& s, ostream* os) { + PrintCharsAsStringTo(s.data(), s.size(), os); +} +#endif // GTEST_HAS_GLOBAL_WSTRING + +#if GTEST_HAS_STD_WSTRING +void PrintWideStringTo(const ::std::wstring& s, ostream* os) { + PrintCharsAsStringTo(s.data(), s.size(), os); +} +#endif // GTEST_HAS_STD_WSTRING + +} // namespace internal + +} // namespace testing +// Copyright 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: mheule@google.com (Markus Heule) +// +// The Google C++ Testing Framework (Google Test) + + +// Indicates that this translation unit is part of Google Test's +// implementation. It must come before gtest-internal-inl.h is +// included, or there will be a compiler error. This trick is to +// prevent a user from accidentally including gtest-internal-inl.h in +// his code. +#define GTEST_IMPLEMENTATION_ 1 +#undef GTEST_IMPLEMENTATION_ + +namespace testing { + +using internal::GetUnitTestImpl; + +// Gets the summary of the failure message by omitting the stack trace +// in it. +std::string TestPartResult::ExtractSummary(const char* message) { + const char* const stack_trace = strstr(message, internal::kStackTraceMarker); + return stack_trace == NULL ? message : + std::string(message, stack_trace); +} + +// Prints a TestPartResult object. +std::ostream& operator<<(std::ostream& os, const TestPartResult& result) { + return os + << result.file_name() << ":" << result.line_number() << ": " + << (result.type() == TestPartResult::kSuccess ? "Success" : + result.type() == TestPartResult::kFatalFailure ? "Fatal failure" : + "Non-fatal failure") << ":\n" + << result.message() << std::endl; +} + +// Appends a TestPartResult to the array. +void TestPartResultArray::Append(const TestPartResult& result) { + array_.push_back(result); +} + +// Returns the TestPartResult at the given index (0-based). +const TestPartResult& TestPartResultArray::GetTestPartResult(int index) const { + if (index < 0 || index >= size()) { + printf("\nInvalid index (%d) into TestPartResultArray.\n", index); + internal::posix::Abort(); + } + + return array_[index]; +} + +// Returns the number of TestPartResult objects in the array. +int TestPartResultArray::size() const { + return static_cast(array_.size()); +} + +namespace internal { + +HasNewFatalFailureHelper::HasNewFatalFailureHelper() + : has_new_fatal_failure_(false), + original_reporter_(GetUnitTestImpl()-> + GetTestPartResultReporterForCurrentThread()) { + GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(this); +} + +HasNewFatalFailureHelper::~HasNewFatalFailureHelper() { + GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread( + original_reporter_); +} + +void HasNewFatalFailureHelper::ReportTestPartResult( + const TestPartResult& result) { + if (result.fatally_failed()) + has_new_fatal_failure_ = true; + original_reporter_->ReportTestPartResult(result); +} + +} // namespace internal + +} // namespace testing +// Copyright 2008 Google Inc. +// All Rights Reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: wan@google.com (Zhanyong Wan) + + +namespace testing { +namespace internal { + +#if GTEST_HAS_TYPED_TEST_P + +// Skips to the first non-space char in str. Returns an empty string if str +// contains only whitespace characters. +static const char* SkipSpaces(const char* str) { + while (IsSpace(*str)) + str++; + return str; +} + +// Verifies that registered_tests match the test names in +// defined_test_names_; returns registered_tests if successful, or +// aborts the program otherwise. +const char* TypedTestCasePState::VerifyRegisteredTestNames( + const char* file, int line, const char* registered_tests) { + typedef ::std::set::const_iterator DefinedTestIter; + registered_ = true; + + // Skip initial whitespace in registered_tests since some + // preprocessors prefix stringizied literals with whitespace. + registered_tests = SkipSpaces(registered_tests); + + Message errors; + ::std::set tests; + for (const char* names = registered_tests; names != NULL; + names = SkipComma(names)) { + const std::string name = GetPrefixUntilComma(names); + if (tests.count(name) != 0) { + errors << "Test " << name << " is listed more than once.\n"; + continue; + } + + bool found = false; + for (DefinedTestIter it = defined_test_names_.begin(); + it != defined_test_names_.end(); + ++it) { + if (name == *it) { + found = true; + break; + } + } + + if (found) { + tests.insert(name); + } else { + errors << "No test named " << name + << " can be found in this test case.\n"; + } + } + + for (DefinedTestIter it = defined_test_names_.begin(); + it != defined_test_names_.end(); + ++it) { + if (tests.count(*it) == 0) { + errors << "You forgot to list test " << *it << ".\n"; + } + } + + const std::string& errors_str = errors.GetString(); + if (errors_str != "") { + fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(), + errors_str.c_str()); + fflush(stderr); + posix::Abort(); + } + + return registered_tests; +} + +#endif // GTEST_HAS_TYPED_TEST_P + +} // namespace internal +} // namespace testing diff --git a/tests/gtest/src/gtest_main.cc b/tests/gtest/src/gtest_main.cc new file mode 100644 index 00000000..f3028225 --- /dev/null +++ b/tests/gtest/src/gtest_main.cc @@ -0,0 +1,38 @@ +// Copyright 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#include + +#include "gtest/gtest.h" + +GTEST_API_ int main(int argc, char **argv) { + printf("Running main() from gtest_main.cc\n"); + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} diff --git a/tests/temp/.gitignore b/tests/temp/.gitignore deleted file mode 100644 index ef7d5e73..00000000 --- a/tests/temp/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/sect_length-counts.cvg -/sect_length-stats.csv diff --git a/tests/test_comp.sh b/tests/test_comp.sh new file mode 100755 index 00000000..d6869bc2 --- /dev/null +++ b/tests/test_comp.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ./compat.sh + +$KAT comp -m13 -o temp/spectra-cn_test ${data}/ecoli_r1.1K.fastq ${data}/EcoliK12.fasta +$KAT comp -m13 -v -n -o temp/density_test ${data}/ecoli_r1.1K.fastq ${data}/ecoli_r2.1K.fastq +$KAT comp -m13 -o temp/glob_test ${data}'/ecoli_r?.1K.fastq' ${data}/EcoliK12.fasta + diff --git a/tests/test_gcp.sh b/tests/test_gcp.sh new file mode 100755 index 00000000..3e79b1f4 --- /dev/null +++ b/tests/test_gcp.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +. ./compat.sh + +$KAT gcp -m17 -o temp/gcp_test ${data}/ecoli_r?.1K.fastq diff --git a/tests/test_hist.sh b/tests/test_hist.sh new file mode 100755 index 00000000..d07a82a9 --- /dev/null +++ b/tests/test_hist.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +. ./compat.sh + +$KAT hist -m17 -o temp/hist_test ${data}/ecoli_r?.1K.fastq diff --git a/tests/test_sect.sh b/tests/test_sect.sh new file mode 100755 index 00000000..26d4e156 --- /dev/null +++ b/tests/test_sect.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +. ./compat.sh + +$KAT sect -o temp/sect_length ${data}/sect_length_test.fa ${data}/ecoli.header.jf27 +$KAT sect -o temp/sect_test ${data}/sect_length_test.fa ${data}/ecoli.header.jf27