qlocale_tools.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qlocale_tools.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Copyright (C) 2014 Intel Corporation-
5** Contact: http://www.qt.io/licensing/-
6**-
7** This file is part of the QtCore module of the Qt Toolkit.-
8**-
9** $QT_BEGIN_LICENSE:LGPL21$-
10** Commercial License Usage-
11** Licensees holding valid commercial Qt licenses may use this file in-
12** accordance with the commercial license agreement provided with the-
13** Software or, alternatively, in accordance with the terms contained in-
14** a written agreement between you and The Qt Company. For licensing terms-
15** and conditions see http://www.qt.io/terms-conditions. For further-
16** information use the contact form at http://www.qt.io/contact-us.-
17**-
18** GNU Lesser General Public License Usage-
19** Alternatively, this file may be used under the terms of the GNU Lesser-
20** General Public License version 2.1 or version 3 as published by the Free-
21** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
22** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
23** following information to ensure the GNU Lesser General Public License-
24** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
25** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
26**-
27** As a special exception, The Qt Company gives you certain additional-
28** rights. These rights are described in The Qt Company LGPL Exception-
29** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
30**-
31** $QT_END_LICENSE$-
32**-
33****************************************************************************/-
34-
35#include "qlocale_tools_p.h"-
36#include "qlocale_p.h"-
37#include "qstring.h"-
38-
39#include <ctype.h>-
40#include <errno.h>-
41#include <float.h>-
42#include <limits.h>-
43#include <math.h>-
44#include <stdlib.h>-
45#include <time.h>-
46-
47#ifdef Q_OS_WINCE-
48# include "qfunctions_wince.h" // for _control87-
49#endif-
50-
51#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)-
52# include <fenv.h>-
53#endif-
54-
55// Sizes as defined by the ISO C99 standard - fallback-
56#ifndef LLONG_MAX-
57# define LLONG_MAX Q_INT64_C(0x7fffffffffffffff)-
58#endif-
59#ifndef LLONG_MIN-
60# define LLONG_MIN (-LLONG_MAX - Q_INT64_C(1))-
61#endif-
62#ifndef ULLONG_MAX-
63# define ULLONG_MAX Q_UINT64_C(0xffffffffffffffff)-
64#endif-
65-
66QT_BEGIN_NAMESPACE-
67-
68#include "../../3rdparty/freebsd/strtoull.c"-
69#include "../../3rdparty/freebsd/strtoll.c"-
70-
71unsigned long long-
72qstrtoull(const char * nptr, const char **endptr, int base, bool *ok)-
73{-
74 // strtoull accepts negative numbers. We don't.-
75 // Use a different variable so we pass the original nptr to strtoul-
76 // (we need that so endptr may be nptr in case of failure)-
77 const char *begin = nptr;-
78 while (ascii_isspace(*begin))
ascii_isspace(*begin)Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QUrl
  • tst_QVersionNumber
FALSEevaluated 83737 times by 77 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataUrl
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • ...
3-83737
79 ++begin;
executed 3 times by 2 tests: ++begin;
Executed by:
  • tst_QUrl
  • tst_QVersionNumber
3
80 if (*begin == '-') {
*begin == '-'Description
TRUEevaluated 66 times by 10 tests
Evaluated by:
  • tst_QDate
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QIpAddress
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QVersionNumber
FALSEevaluated 83671 times by 77 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataUrl
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • ...
66-83671
81 *ok = false;-
82 return 0;
executed 66 times by 10 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QIpAddress
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QVersionNumber
66
83 }-
84-
85 *ok = true;-
86 errno = 0;-
87 char *endptr2 = 0;-
88 unsigned long long result = qt_strtoull(nptr, &endptr2, base);-
89 if (endptr)
endptrDescription
TRUEevaluated 83671 times by 77 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataUrl
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • ...
FALSEnever evaluated
0-83671
90 *endptr = endptr2;
executed 83671 times by 77 tests: *endptr = endptr2;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataUrl
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • ...
83671
91 if ((result == 0 || result == std::numeric_limits<unsigned long long>::max())
result == 0Description
TRUEevaluated 44679 times by 66 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QIpAddress
  • tst_QItemDelegate
  • tst_QMetaType
  • ...
FALSEevaluated 38992 times by 60 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QIpAddress
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
result == std:...g long>::max()Description
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_QVersionNumber
FALSEevaluated 38974 times by 60 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QIpAddress
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
18-44679
92 && (errno || endptr2 == nptr)) {
(*__errno_location ())Description
TRUEevaluated 36843 times by 49 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIpAddress
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
FALSEevaluated 7854 times by 43 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QIpAddress
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAddressEntry
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • ...
endptr2 == nptrDescription
TRUEnever evaluated
FALSEevaluated 7854 times by 43 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QIpAddress
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAddressEntry
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • ...
0-36843
93 *ok = false;-
94 return 0;
executed 36843 times by 49 tests: return 0;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIpAddress
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
36843
95 }-
96 return result;
executed 46828 times by 60 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QIpAddress
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
46828
97}-
98-
99long long-
100qstrtoll(const char * nptr, const char **endptr, int base, bool *ok)-
101{-
102 *ok = true;-
103 errno = 0;-
104 char *endptr2 = 0;-
105 long long result = qt_strtoll(nptr, &endptr2, base);-
106 if (endptr)
endptrDescription
TRUEevaluated 380497 times by 113 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
  • tst_selftests - unknown status
112-380497
107 *endptr = endptr2;
executed 380497 times by 113 tests: *endptr = endptr2;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
380497
108 if ((result == 0 || result == std::numeric_limits<long long>::min()
result == 0Description
TRUEevaluated 11836 times by 50 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGetPutEnv
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • ...
FALSEevaluated 368773 times by 112 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
result == std:...g long>::min()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 368767 times by 112 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
6-368773
109 || result == std::numeric_limits<long long>::max())
result == std:...g long>::max()Description
TRUEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QIntValidator
  • tst_QString
  • tst_QStringRef
FALSEevaluated 368754 times by 112 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
13-368754
110 && (errno || nptr == endptr2)) {
(*__errno_location ())Description
TRUEevaluated 197 times by 19 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QGetPutEnv
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 11658 times by 43 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGetPutEnv
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • ...
nptr == endptr2Description
TRUEnever evaluated
FALSEevaluated 11658 times by 43 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGetPutEnv
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • ...
0-11658
111 *ok = false;-
112 return 0;
executed 197 times by 19 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QGetPutEnv
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
197
113 }-
114 return result;
executed 380412 times by 113 tests: return result;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
380412
115}-
116-
117static char *_qdtoa( NEEDS_VOLATILE double d, int mode, int ndigits, int *decpt,-
118 int *sign, char **rve, char **digits_str);-
119-
120QString qulltoa(qulonglong l, int base, const QChar _zero)-
121{-
122 ushort buff[65]; // length of MAX_ULLONG in base 2-
123 ushort *p = buff + 65;-
124-
125 if (base != 10 || _zero.unicode() == '0') {
base != 10Description
TRUEevaluated 24480 times by 82 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QImage
  • ...
FALSEevaluated 11772041 times by 463 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
_zero.unicode() == '0'Description
TRUEevaluated 11772026 times by 463 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QProgressBar
  • tst_QString
11-11772041
126 while (l != 0) {
l != 0Description
TRUEevaluated 21263159 times by 321 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 11796510 times by 468 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
11796510-21263159
127 int c = l % base;-
128-
129 --p;-
130-
131 if (c < 10)
c < 10Description
TRUEevaluated 21213268 times by 321 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 49891 times by 75 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • ...
49891-21213268
132 *p = '0' + c;
executed 21213268 times by 321 tests: *p = '0' + c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
21213268
133 else-
134 *p = c - 10 + 'a';
executed 49891 times by 75 tests: *p = c - 10 + 'a';
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • ...
49891
135-
136 l /= base;-
137 }
executed 21263159 times by 321 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
21263159
138 }
executed 11796510 times by 468 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
11796510
139 else {-
140 while (l != 0) {
l != 0Description
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QProgressBar
  • tst_QString
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QProgressBar
  • tst_QString
11-32
141 int c = l % base;-
142-
143 *(--p) = _zero.unicode() + c;-
144-
145 l /= base;-
146 }
executed 32 times by 2 tests: end of block
Executed by:
  • tst_QProgressBar
  • tst_QString
32
147 }
executed 11 times by 2 tests: end of block
Executed by:
  • tst_QProgressBar
  • tst_QString
11
148-
149 return QString(reinterpret_cast<QChar *>(p), 65 - (p - buff));
executed 11796521 times by 468 tests: return QString(reinterpret_cast<QChar *>(p), 65 - (p - buff));
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
11796521
150}-
151-
152QString qlltoa(qlonglong l, int base, const QChar zero)-
153{-
154 return qulltoa(l < 0 ? -l : l, base, zero);
executed 11729033 times by 447 tests: return qulltoa(l < 0 ? -l : l, base, zero);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
11729033
155}-
156-
157QString &decimalForm(QChar zero, QChar decimal, QChar group,-
158 QString &digits, int decpt, uint precision,-
159 PrecisionMode pm,-
160 bool always_show_decpt,-
161 bool thousands_group)-
162{-
163 if (decpt < 0) {
decpt < 0Description
TRUEevaluated 18519 times by 5 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QString
  • tst_QTextStream
FALSEevaluated 84975 times by 54 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
18519-84975
164 for (int i = 0; i < -decpt; ++i)
i < -decptDescription
TRUEevaluated 46373 times by 5 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QString
  • tst_QTextStream
FALSEevaluated 18519 times by 5 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QString
  • tst_QTextStream
18519-46373
165 digits.prepend(zero);
executed 46373 times by 5 tests: digits.prepend(zero);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QString
  • tst_QTextStream
46373
166 decpt = 0;-
167 }
executed 18519 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QString
  • tst_QTextStream
18519
168 else if (decpt > digits.length()) {
decpt > digits.length()Description
TRUEevaluated 988 times by 20 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_selftests - unknown status
FALSEevaluated 83987 times by 54 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
988-83987
169 for (int i = digits.length(); i < decpt; ++i)
i < decptDescription
TRUEevaluated 2319 times by 20 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_selftests - unknown status
FALSEevaluated 988 times by 20 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_selftests - unknown status
988-2319
170 digits.append(zero);
executed 2319 times by 20 tests: digits.append(zero);
Executed by:
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_selftests - unknown status
2319
171 }
executed 988 times by 20 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_selftests - unknown status
988
172-
173 if (pm == PMDecimalDigits) {
pm == PMDecimalDigitsDescription
TRUEevaluated 2251 times by 20 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
FALSEevaluated 101243 times by 42 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
2251-101243
174 uint decimal_digits = digits.length() - decpt;-
175 for (uint i = decimal_digits; i < precision; ++i)
i < precisionDescription
TRUEevaluated 9865 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
FALSEevaluated 2251 times by 20 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
2251-9865
176 digits.append(zero);
executed 9865 times by 18 tests: digits.append(zero);
Executed by:
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
9865
177 }
executed 2251 times by 20 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
2251
178 else if (pm == PMSignificantDigits) {
pm == PMSignificantDigitsDescription
TRUEevaluated 2386 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 98857 times by 42 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
2386-98857
179 for (uint i = digits.length(); i < precision; ++i)
i < precisionDescription
TRUEevaluated 7938 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 2386 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
2386-7938
180 digits.append(zero);
executed 7938 times by 2 tests: digits.append(zero);
Executed by:
  • tst_QString
  • tst_QTextStream
7938
181 }
executed 2386 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextStream
2386
182 else { // pm == PMChopTrailingZeros-
183 }
executed 98857 times by 42 tests: end of block
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
98857
184-
185 if (always_show_decpt || decpt < digits.length())
always_show_decptDescription
TRUEevaluated 2388 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 101106 times by 54 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
decpt < digits.length()Description
TRUEevaluated 47712 times by 34 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDriver
  • ...
FALSEevaluated 53394 times by 37 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • ...
2388-101106
186 digits.insert(decpt, decimal);
executed 50100 times by 34 tests: digits.insert(decpt, decimal);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDriver
  • ...
50100
187-
188 if (thousands_group) {
thousands_groupDescription
TRUEevaluated 5379 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 98115 times by 49 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
5379-98115
189 for (int i = decpt - 3; i > 0; i -= 3)
i > 0Description
TRUEevaluated 2234 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTextStream
FALSEevaluated 5379 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QString
  • tst_QTextStream
2234-5379
190 digits.insert(i, group);
executed 2234 times by 3 tests: digits.insert(i, group);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTextStream
2234
191 }
executed 5379 times by 11 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QString
  • tst_QTextStream
5379
192-
193 if (decpt == 0)
decpt == 0Description
TRUEevaluated 45891 times by 13 tests
Evaluated by:
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
FALSEevaluated 57603 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
45891-57603
194 digits.prepend(zero);
executed 45891 times by 13 tests: digits.prepend(zero);
Executed by:
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
45891
195-
196 return digits;
executed 103494 times by 54 tests: return digits;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
103494
197}-
198-
199QString &exponentForm(QChar zero, QChar decimal, QChar exponential,-
200 QChar group, QChar plus, QChar minus,-
201 QString &digits, int decpt, uint precision,-
202 PrecisionMode pm,-
203 bool always_show_decpt)-
204{-
205 int exp = decpt - 1;-
206-
207 if (pm == PMDecimalDigits) {
pm == PMDecimalDigitsDescription
TRUEevaluated 17 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 6335 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QTextStream
17-6335
208 for (uint i = digits.length(); i < precision + 1; ++i)
i < precision + 1Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 17 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
16-17
209 digits.append(zero);
executed 16 times by 3 tests: digits.append(zero);
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
16
210 }
executed 17 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
17
211 else if (pm == PMSignificantDigits) {
pm == PMSignificantDigitsDescription
TRUEevaluated 2224 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4111 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QTextStream
2224-4111
212 for (uint i = digits.length(); i < precision; ++i)
i < precisionDescription
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2224 times by 1 test
Evaluated by:
  • tst_QString
1920-2224
213 digits.append(zero);
executed 1920 times by 1 test: digits.append(zero);
Executed by:
  • tst_QString
1920
214 }
executed 2224 times by 1 test: end of block
Executed by:
  • tst_QString
2224
215 else { // pm == PMChopTrailingZeros-
216 }
executed 4111 times by 5 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QTextStream
4111
217-
218 if (always_show_decpt || digits.length() > 1)
always_show_decptDescription
TRUEevaluated 2226 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 4126 times by 6 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
digits.length() > 1Description
TRUEevaluated 2805 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 1321 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
1321-4126
219 digits.insert(1, decimal);
executed 5031 times by 5 tests: digits.insert(1, decimal);
Executed by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
5031
220-
221 digits.append(exponential);-
222 digits.append(QLocaleData::longLongToString(zero, group, plus, minus,-
223 exp, 2, 10, -1, QLocaleData::AlwaysShowSign));-
224-
225 return digits;
executed 6352 times by 6 tests: return digits;
Executed by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
6352
226}-
227-
228/* From: NetBSD: strtod.c,v 1.26 1998/02/03 18:44:21 perry Exp */-
229/* $FreeBSD: src/lib/libc/stdlib/netbsd_strtod.c,v 1.2.2.2 2001/03/02 17:14:15 tegge Exp $ */-
230-
231/* Please send bug reports to-
232 David M. Gay-
233 AT&T Bell Laboratories, Room 2C-463-
234 600 Mountain Avenue-
235 Murray Hill, NJ 07974-2070-
236 U.S.A.-
237 dmg@research.att.com or research!dmg-
238 */-
239-
240/* strtod for IEEE-, VAX-, and IBM-arithmetic machines.-
241 *-
242 * This strtod returns a nearest machine number to the input decimal-
243 * string (or sets errno to ERANGE). With IEEE arithmetic, ties are-
244 * broken by the IEEE round-even rule. Otherwise ties are broken by-
245 * biased rounding (add half and chop).-
246 *-
247 * Inspired loosely by William D. Clinger's paper "How to Read Floating-
248 * Point Numbers Accurately" [Proc. ACM SIGPLAN '90, pp. 92-101].-
249 *-
250 * Modifications:-
251 *-
252 * 1. We only require IEEE, IBM, or VAX double-precision-
253 * arithmetic (not IEEE double-extended).-
254 * 2. We get by with floating-point arithmetic in a case that-
255 * Clinger missed -- when we're computing d * 10^n-
256 * for a small integer d and the integer n is not too-
257 * much larger than 22 (the maximum integer k for which-
258 * we can represent 10^k exactly), we may be able to-
259 * compute (d*10^k) * 10^(e-k) with just one roundoff.-
260 * 3. Rather than a bit-at-a-time adjustment of the binary-
261 * result in the hard case, we use floating-point-
262 * arithmetic to determine the adjustment to within-
263 * one bit; only in really hard cases do we need to-
264 * compute a second residual.-
265 * 4. Because of 3., we don't need a large table of powers of 10-
266 * for ten-to-e (just some small tables, e.g. of 10^k-
267 * for 0 <= k <= 22).-
268 */-
269-
270/*-
271 * #define IEEE_LITTLE_ENDIAN for IEEE-arithmetic machines where the least-
272 * significant byte has the lowest address.-
273 * #define IEEE_BIG_ENDIAN for IEEE-arithmetic machines where the most-
274 * significant byte has the lowest address.-
275 * #define Long int on machines with 32-bit ints and 64-bit longs.-
276 * #define Sudden_Underflow for IEEE-format machines without gradual-
277 * underflow (i.e., that flush to zero on underflow).-
278 * #define IBM for IBM mainframe-style floating-point arithmetic.-
279 * #define VAX for VAX-style floating-point arithmetic.-
280 * #define Unsigned_Shifts if >> does treats its left operand as unsigned.-
281 * #define No_leftright to omit left-right logic in fast floating-point-
282 * computation of dtoa.-
283 * #define Check_FLT_ROUNDS if FLT_ROUNDS can assume the values 2 or 3.-
284 * #define RND_PRODQUOT to use rnd_prod and rnd_quot (assembly routines-
285 * that use extended-precision instructions to compute rounded-
286 * products and quotients) with IBM.-
287 * #define ROUND_BIASED for IEEE-format with biased rounding.-
288 * #define Inaccurate_Divide for IEEE-format with correctly rounded-
289 * products but inaccurate quotients, e.g., for Intel i860.-
290 * #define Just_16 to store 16 bits per 32-bit Long when doing high-precision-
291 * integer arithmetic. Whether this speeds things up or slows things-
292 * down depends on the machine and the number being converted.-
293 * #define KR_headers for old-style C function headers.-
294 * #define Bad_float_h if your system lacks a float.h or if it does not-
295 * define some or all of DBL_DIG, DBL_MAX_10_EXP, DBL_MAX_EXP,-
296 * FLT_RADIX, FLT_ROUNDS, and DBL_MAX.-
297 * #define MALLOC your_malloc, where your_malloc(n) acts like malloc(n)-
298 * if memory is available and otherwise does something you deem-
299 * appropriate. If MALLOC is undefined, malloc will be invoked-
300 * directly -- and assumed always to succeed.-
301 */-
302-
303#if defined(LIBC_SCCS) && !defined(lint)-
304__RCSID("$NetBSD: strtod.c,v 1.26 1998/02/03 18:44:21 perry Exp $");-
305#endif /* LIBC_SCCS and not lint */-
306-
307/*-
308#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \-
309 defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \-
310 defined(__powerpc__) || defined(Q_OS_WIN) || defined(Q_OS_DARWIN) || defined(Q_OS_MAC) || \-
311 defined(mips) || defined(Q_OS_AIX) || defined(Q_OS_SOLARIS)-
312# define IEEE_BIG_OR_LITTLE_ENDIAN 1-
313#endif-
314*/-
315-
316// *All* of our architectures have IEEE arithmetic, don't they?-
317#define IEEE_BIG_OR_LITTLE_ENDIAN 1-
318-
319#ifdef __arm32__-
320/*-
321 * Although the CPU is little endian the FP has different-
322 * byte and word endianness. The byte order is still little endian-
323 * but the word order is big endian.-
324 */-
325#define IEEE_BIG_OR_LITTLE_ENDIAN-
326#endif-
327-
328#ifdef vax-
329#define VAX-
330#endif-
331-
332#define Long qint32-
333#define ULong quint32-
334-
335#define MALLOC malloc-
336-
337#ifdef BSD_QDTOA_DEBUG-
338QT_BEGIN_INCLUDE_NAMESPACE-
339#include <stdio.h>-
340QT_END_INCLUDE_NAMESPACE-
341-
342#define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}-
343#endif-
344-
345#ifdef Unsigned_Shifts-
346#define Sign_Extend(a,b) if (b < 0) a |= 0xffff0000;-
347#else-
348#define Sign_Extend(a,b) /*no-op*/-
349#endif-
350-
351#if (defined(IEEE_BIG_OR_LITTLE_ENDIAN) + defined(VAX) + defined(IBM)) != 1-
352#error Exactly one of IEEE_BIG_OR_LITTLE_ENDIAN, VAX, or IBM should be defined.-
353#endif-
354-
355static inline ULong getWord0(const NEEDS_VOLATILE double x)-
356{-
357 const NEEDS_VOLATILE uchar *ptr = reinterpret_cast<const NEEDS_VOLATILE uchar *>(&x);-
358 if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {
QSysInfo::Byte...nfo::BigEndianDescription
TRUEnever evaluated
FALSEevaluated 740615 times by 57 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
0-740615
359 return (ptr[0]<<24) + (ptr[1]<<16) + (ptr[2]<<8) + ptr[3];
never executed: return (ptr[0]<<24) + (ptr[1]<<16) + (ptr[2]<<8) + ptr[3];
0
360 } else {-
361 return (ptr[7]<<24) + (ptr[6]<<16) + (ptr[5]<<8) + ptr[4];
executed 740615 times by 57 tests: return (ptr[7]<<24) + (ptr[6]<<16) + (ptr[5]<<8) + ptr[4];
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
740615
362 }-
363}-
364-
365static inline void setWord0(NEEDS_VOLATILE double *x, ULong l)-
366{-
367 NEEDS_VOLATILE uchar *ptr = reinterpret_cast<NEEDS_VOLATILE uchar *>(x);-
368 if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {
QSysInfo::Byte...nfo::BigEndianDescription
TRUEnever evaluated
FALSEevaluated 306175 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
0-306175
369 ptr[0] = uchar(l>>24);-
370 ptr[1] = uchar(l>>16);-
371 ptr[2] = uchar(l>>8);-
372 ptr[3] = uchar(l);-
373 } else {
never executed: end of block
0
374 ptr[7] = uchar(l>>24);-
375 ptr[6] = uchar(l>>16);-
376 ptr[5] = uchar(l>>8);-
377 ptr[4] = uchar(l);-
378 }
executed 306175 times by 55 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
306175
379}-
380-
381static inline ULong getWord1(const NEEDS_VOLATILE double x)-
382{-
383 const NEEDS_VOLATILE uchar *ptr = reinterpret_cast<const NEEDS_VOLATILE uchar *>(&x);-
384 if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {
QSysInfo::Byte...nfo::BigEndianDescription
TRUEnever evaluated
FALSEevaluated 71607 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
0-71607
385 return (ptr[4]<<24) + (ptr[5]<<16) + (ptr[6]<<8) + ptr[7];
never executed: return (ptr[4]<<24) + (ptr[5]<<16) + (ptr[6]<<8) + ptr[7];
0
386 } else {-
387 return (ptr[3]<<24) + (ptr[2]<<16) + (ptr[1]<<8) + ptr[0];
executed 71607 times by 55 tests: return (ptr[3]<<24) + (ptr[2]<<16) + (ptr[1]<<8) + ptr[0];
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
71607
388 }-
389}-
390static inline void setWord1(NEEDS_VOLATILE double *x, ULong l)-
391{-
392 NEEDS_VOLATILE uchar *ptr = reinterpret_cast<uchar NEEDS_VOLATILE *>(x);-
393 if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {
QSysInfo::Byte...nfo::BigEndianDescription
TRUEnever evaluated
FALSEevaluated 424 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0-424
394 ptr[4] = uchar(l>>24);-
395 ptr[5] = uchar(l>>16);-
396 ptr[6] = uchar(l>>8);-
397 ptr[7] = uchar(l);-
398 } else {
never executed: end of block
0
399 ptr[3] = uchar(l>>24);-
400 ptr[2] = uchar(l>>16);-
401 ptr[1] = uchar(l>>8);-
402 ptr[0] = uchar(l);-
403 }
executed 424 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
424
404}-
405-
406static inline void Storeinc(ULong *&a, const ULong &b, const ULong &c)-
407{-
408-
409 *a = (ushort(b) << 16) | ushort(c);-
410 ++a;-
411}
executed 971010 times by 13 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
971010
412-
413/* #define P DBL_MANT_DIG */-
414/* Ten_pmax = floor(P*log(2)/log(5)) */-
415/* Bletch = (highest power of 2 < DBL_MAX_10_EXP) / 16 */-
416/* Quick_max = floor((P-1)*log(FLT_RADIX)/log(10) - 1) */-
417/* Int_max = floor(P*log(FLT_RADIX)/log(10) - 1) */-
418-
419#if defined(IEEE_BIG_OR_LITTLE_ENDIAN)-
420#define Exp_shift 20-
421#define Exp_shift1 20-
422#define Exp_msk1 0x100000-
423#define Exp_msk11 0x100000-
424#define Exp_mask 0x7ff00000-
425#define P 53-
426#define Bias 1023-
427#define IEEE_Arith-
428#define Emin (-1022)-
429#define Exp_1 0x3ff00000-
430#define Exp_11 0x3ff00000-
431#define Ebits 11-
432#define Frac_mask 0xfffff-
433#define Frac_mask1 0xfffff-
434#define Ten_pmax 22-
435#define Bletch 0x10-
436#define Bndry_mask 0xfffff-
437#define Bndry_mask1 0xfffff-
438#if defined(LSB) && defined(Q_OS_VXWORKS)-
439#undef LSB-
440#endif-
441#define LSB 1-
442#define Sign_bit 0x80000000-
443#define Log2P 1-
444#define Tiny0 0-
445#define Tiny1 1-
446#define Quick_max 14-
447#define Int_max 14-
448#define Infinite(x) (getWord0(x) == 0x7ff00000) /* sufficient test for here */-
449#else-
450#undef Sudden_Underflow-
451#define Sudden_Underflow-
452#ifdef IBM-
453#define Exp_shift 24-
454#define Exp_shift1 24-
455#define Exp_msk1 0x1000000-
456#define Exp_msk11 0x1000000-
457#define Exp_mask 0x7f000000-
458#define P 14-
459#define Bias 65-
460#define Exp_1 0x41000000-
461#define Exp_11 0x41000000-
462#define Ebits 8 /* exponent has 7 bits, but 8 is the right value in b2d */-
463#define Frac_mask 0xffffff-
464#define Frac_mask1 0xffffff-
465#define Bletch 4-
466#define Ten_pmax 22-
467#define Bndry_mask 0xefffff-
468#define Bndry_mask1 0xffffff-
469#define LSB 1-
470#define Sign_bit 0x80000000-
471#define Log2P 4-
472#define Tiny0 0x100000-
473#define Tiny1 0-
474#define Quick_max 14-
475#define Int_max 15-
476#else /* VAX */-
477#define Exp_shift 23-
478#define Exp_shift1 7-
479#define Exp_msk1 0x80-
480#define Exp_msk11 0x800000-
481#define Exp_mask 0x7f80-
482#define P 56-
483#define Bias 129-
484#define Exp_1 0x40800000-
485#define Exp_11 0x4080-
486#define Ebits 8-
487#define Frac_mask 0x7fffff-
488#define Frac_mask1 0xffff007f-
489#define Ten_pmax 24-
490#define Bletch 2-
491#define Bndry_mask 0xffff007f-
492#define Bndry_mask1 0xffff007f-
493#define LSB 0x10000-
494#define Sign_bit 0x8000-
495#define Log2P 1-
496#define Tiny0 0x80-
497#define Tiny1 0-
498#define Quick_max 15-
499#define Int_max 15-
500#endif-
501#endif-
502-
503#ifndef IEEE_Arith-
504#define ROUND_BIASED-
505#endif-
506-
507#ifdef RND_PRODQUOT-
508#define rounded_product(a,b) a = rnd_prod(a, b)-
509#define rounded_quotient(a,b) a = rnd_quot(a, b)-
510extern double rnd_prod(double, double), rnd_quot(double, double);-
511#else-
512#define rounded_product(a,b) a *= b-
513#define rounded_quotient(a,b) a /= b-
514#endif-
515-
516#define Big0 (Frac_mask1 | Exp_msk1*(DBL_MAX_EXP+Bias-1))-
517#define Big1 0xffffffff-
518-
519#ifndef Just_16-
520/* When Pack_32 is not defined, we store 16 bits per 32-bit Long.-
521 * This makes some inner loops simpler and sometimes saves work-
522 * during multiplications, but it often seems to make things slightly-
523 * slower. Hence the default is now to store 32 bits per Long.-
524 */-
525#ifndef Pack_32-
526#define Pack_32-
527#endif-
528#endif-
529-
530#define Kmax 15-
531-
532struct-
533Bigint {-
534 struct Bigint *next;-
535 int k, maxwds, sign, wds;-
536 ULong x[1];-
537};-
538-
539 typedef struct Bigint Bigint;-
540-
541static Bigint *Balloc(int k)-
542{-
543 int x;-
544 Bigint *rv;-
545-
546 x = 1 << k;-
547 rv = static_cast<Bigint *>(MALLOC(sizeof(Bigint) + (x-1)*sizeof(Long)));-
548 Q_CHECK_PTR(rv);
never executed: qBadAlloc();
!(rv)Description
TRUEnever evaluated
FALSEevaluated 84562 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
0-84562
549 rv->k = k;-
550 rv->maxwds = x;-
551 rv->sign = rv->wds = 0;-
552 return rv;
executed 84562 times by 55 tests: return rv;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
84562
553}-
554-
555static void Bfree(Bigint *v)-
556{-
557 free(v);-
558}
executed 84564 times by 61 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
84564
559-
560#define Bcopy(x,y) memcpy(reinterpret_cast<char *>(&x->sign), reinterpret_cast<char *>(&y->sign), \-
561y->wds*sizeof(Long) + 2*sizeof(int))-
562-
563/* multiply by m and add a */-
564static Bigint *multadd(Bigint *b, int m, int a)-
565{-
566 int i, wds;-
567 ULong *x, y;-
568#ifdef Pack_32-
569 ULong xi, z;-
570#endif-
571 Bigint *b1;-
572-
573 wds = b->wds;-
574 x = b->x;-
575 i = 0;-
576 do {-
577#ifdef Pack_32-
578 xi = *x;-
579 y = (xi & 0xffff) * m + a;-
580 z = (xi >> 16) * m + (y >> 16);-
581 a = (z >> 16);-
582 *x++ = (z << 16) + (y & 0xffff);-
583#else-
584 y = *x * m + a;-
585 a = (y >> 16);-
586 *x++ = y & 0xffff;-
587#endif-
588 }
executed 1277787 times by 13 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
1277787
589 while(++i < wds);
++i < wdsDescription
TRUEevaluated 1134290 times by 11 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 143497 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
143497-1134290
590 if (a) {
aDescription
TRUEevaluated 2061 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 141436 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2061-141436
591 if (wds >= b->maxwds) {
wds >= b->maxwdsDescription
TRUEnever evaluated
FALSEevaluated 2061 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
0-2061
592 b1 = Balloc(b->k+1);-
593 Bcopy(b1, b);-
594 Bfree(b);-
595 b = b1;-
596 }
never executed: end of block
0
597 b->x[wds++] = a;-
598 b->wds = wds;-
599 }
executed 2061 times by 8 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2061
600 return b;
executed 143497 times by 13 tests: return b;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
143497
601}-
602-
603static Bigint *s2b(const char *s, int nd0, int nd, ULong y9)-
604{-
605 Bigint *b;-
606 int i, k;-
607 Long x, y;-
608-
609 x = (nd + 8) / 9;-
610 for(k = 0, y = 1; x > y; y <<= 1, k++) ;
executed 527 times by 7 tests: ;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
x > yDescription
TRUEevaluated 527 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161-527
611#ifdef Pack_32-
612 b = Balloc(k);-
613 b->x[0] = y9;-
614 b->wds = 1;-
615#else-
616 b = Balloc(k+1);-
617 b->x[0] = y9 & 0xffff;-
618 b->wds = (b->x[1] = y9 >> 16) ? 2 : 1;-
619#endif-
620-
621 i = 9;-
622 if (9 < nd0) {
9 < nd0Description
TRUEevaluated 127 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
FALSEevaluated 34 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
34-127
623 s += 9;-
624 do b = multadd(b, 10, *s++ - '0');
executed 18458 times by 6 tests: b = multadd(b, 10, *s++ - '0');
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
18458
625 while(++i < nd0);
++i < nd0Description
TRUEevaluated 18331 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
FALSEevaluated 127 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
127-18331
626 s++;-
627 }
executed 127 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
127
628 else-
629 s += 10;
executed 34 times by 4 tests: s += 10;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
34
630 for(; i < nd; i++)
i < ndDescription
TRUEevaluated 418 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161-418
631 b = multadd(b, 10, *s++ - '0');
executed 418 times by 5 tests: b = multadd(b, 10, *s++ - '0');
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
418
632 return b;
executed 161 times by 7 tests: return b;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161
633}-
634-
635static int hi0bits(ULong x)-
636{-
637 int k = 0;-
638-
639 if (!(x & 0xffff0000)) {
!(x & 0xffff0000)Description
TRUEevaluated 492 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 415 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
415-492
640 k = 16;-
641 x <<= 16;-
642 }
executed 492 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
492
643 if (!(x & 0xff000000)) {
!(x & 0xff000000)Description
TRUEevaluated 399 times by 5 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 508 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
399-508
644 k += 8;-
645 x <<= 8;-
646 }
executed 399 times by 5 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
399
647 if (!(x & 0xf0000000)) {
!(x & 0xf0000000)Description
TRUEevaluated 419 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 488 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
419-488
648 k += 4;-
649 x <<= 4;-
650 }
executed 419 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
419
651 if (!(x & 0xc0000000)) {
!(x & 0xc0000000)Description
TRUEevaluated 535 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 372 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
372-535
652 k += 2;-
653 x <<= 2;-
654 }
executed 535 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
535
655 if (!(x & 0x80000000)) {
!(x & 0x80000000)Description
TRUEevaluated 631 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 276 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
276-631
656 k++;-
657 if (!(x & 0x40000000))
!(x & 0x40000000)Description
TRUEnever evaluated
FALSEevaluated 631 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0-631
658 return 32;
never executed: return 32;
0
659 }
executed 631 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
631
660 return k;
executed 907 times by 7 tests: return k;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
907
661}-
662-
663static int lo0bits(ULong *y)-
664{-
665 int k;-
666 ULong x = *y;-
667-
668 if (x & 7) {
x & 7Description
TRUEevaluated 14797 times by 26 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsTransform
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • ...
FALSEevaluated 56796 times by 47 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
14797-56796
669 if (x & 1)
x & 1Description
TRUEevaluated 9355 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 5442 times by 20 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • tst_QVariant
5442-9355
670 return 0;
executed 9355 times by 19 tests: return 0;
Executed by:
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QVariant
9355
671 if (x & 2) {
x & 2Description
TRUEevaluated 4046 times by 18 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 1396 times by 10 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextStream
1396-4046
672 *y = x >> 1;-
673 return 1;
executed 4046 times by 18 tests: return 1;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • tst_QVariant
4046
674 }-
675 *y = x >> 2;-
676 return 2;
executed 1396 times by 10 tests: return 2;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextStream
1396
677 }-
678 k = 0;-
679 if (!(x & 0xffff)) {
!(x & 0xffff)Description
TRUEevaluated 54071 times by 43 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPainter
  • tst_QPrinter
  • ...
FALSEevaluated 2725 times by 25 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
2725-54071
680 k = 16;-
681 x >>= 16;-
682 }
executed 54071 times by 43 tests: end of block
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPainter
  • tst_QPrinter
  • ...
54071
683 if (!(x & 0xff)) {
!(x & 0xff)Description
TRUEevaluated 37705 times by 26 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_qmakelib
  • ...
FALSEevaluated 19091 times by 43 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPainter
  • tst_QPrinter
  • ...
19091-37705
684 k += 8;-
685 x >>= 8;-
686 }
executed 37705 times by 26 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_qmakelib
  • ...
37705
687 if (!(x & 0xf)) {
!(x & 0xf)Description
TRUEevaluated 53157 times by 39 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
FALSEevaluated 3639 times by 38 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • ...
3639-53157
688 k += 4;-
689 x >>= 4;-
690 }
executed 53157 times by 39 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
53157
691 if (!(x & 0x3)) {
!(x & 0x3)Description
TRUEevaluated 22766 times by 36 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • ...
FALSEevaluated 34030 times by 42 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
22766-34030
692 k += 2;-
693 x >>= 2;-
694 }
executed 22766 times by 36 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • ...
22766
695 if (!(x & 1)) {
!(x & 1)Description
TRUEevaluated 27102 times by 36 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • ...
FALSEevaluated 29694 times by 43 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • ...
27102-29694
696 k++;-
697 x >>= 1;-
698 if (!x & 1)
!x & 1Description
TRUEnever evaluated
FALSEevaluated 27102 times by 36 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • ...
0-27102
699 return 32;
never executed: return 32;
0
700 }
executed 27102 times by 36 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • ...
27102
701 *y = x;-
702 return k;
executed 56796 times by 47 tests: return k;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
56796
703}-
704-
705static Bigint *i2b(int i)-
706{-
707 Bigint *b;-
708-
709 b = Balloc(1);-
710 b->x[0] = i;-
711 b->wds = 1;-
712 return b;
executed 2421 times by 13 tests: return b;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2421
713}-
714-
715static Bigint *mult(Bigint *a, Bigint *b)-
716{-
717 Bigint *c;-
718 int k, wa, wb, wc;-
719 ULong carry, y, z;-
720 ULong *x, *xa, *xae, *xb, *xbe, *xc, *xc0;-
721#ifdef Pack_32-
722 ULong z2;-
723#endif-
724-
725 if (a->wds < b->wds) {
a->wds < b->wdsDescription
TRUEevaluated 1550 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 1486 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1486-1550
726 c = a;-
727 a = b;-
728 b = c;-
729 }
executed 1550 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1550
730 k = a->k;-
731 wa = a->wds;-
732 wb = b->wds;-
733 wc = wa + wb;-
734 if (wc > a->maxwds)
wc > a->maxwdsDescription
TRUEevaluated 1620 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 1416 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1416-1620
735 k++;
executed 1620 times by 5 tests: k++;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1620
736 c = Balloc(k);-
737 for(x = c->x, xa = x + wc; x < xa; x++)
x < xaDescription
TRUEevaluated 17498 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3036 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
3036-17498
738 *x = 0;
executed 17498 times by 6 tests: *x = 0;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
17498
739 xa = a->x;-
740 xae = xa + wa;-
741 xb = b->x;-
742 xbe = xb + wb;-
743 xc0 = c->x;-
744#ifdef Pack_32-
745 for(; xb < xbe; xb++, xc0++) {
xb < xbeDescription
TRUEevaluated 5621 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3036 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
3036-5621
746 if ((y = *xb & 0xffff) != 0) {
(y = *xb & 0xffff) != 0Description
TRUEevaluated 5621 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
0-5621
747 x = xa;-
748 xc = xc0;-
749 carry = 0;-
750 do {-
751 z = (*x & 0xffff) * y + (*xc & 0xffff) + carry;-
752 carry = z >> 16;-
753 z2 = (*x++ >> 16) * y + (*xc >> 16) + carry;-
754 carry = z2 >> 16;-
755 Storeinc(xc, z2, z);-
756 }
executed 35686 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
35686
757 while(x < xae);
x < xaeDescription
TRUEevaluated 30065 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 5621 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
5621-30065
758 *xc = carry;-
759 }
executed 5621 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
5621
760 if ((y = *xb >> 16) != 0) {
(y = *xb >> 16) != 0Description
TRUEevaluated 3335 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 2286 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
2286-3335
761 x = xa;-
762 xc = xc0;-
763 carry = 0;-
764 z2 = *xc;-
765 do {-
766 z = (*x & 0xffff) * y + (*xc >> 16) + carry;-
767 carry = z >> 16;-
768 Storeinc(xc, z, z2);-
769 z2 = (*x++ >> 16) * y + (*xc & 0xffff) + carry;-
770 carry = z2 >> 16;-
771 }
executed 29722 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
29722
772 while(x < xae);
x < xaeDescription
TRUEevaluated 26387 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3335 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
3335-26387
773 *xc = z2;-
774 }
executed 3335 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
3335
775 }
executed 5621 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
5621
776#else-
777 for(; xb < xbe; xc0++) {-
778 if (y = *xb++) {-
779 x = xa;-
780 xc = xc0;-
781 carry = 0;-
782 do {-
783 z = *x++ * y + *xc + carry;-
784 carry = z >> 16;-
785 *xc++ = z & 0xffff;-
786 }-
787 while(x < xae);-
788 *xc = carry;-
789 }-
790 }-
791#endif-
792 for(xc0 = c->x, xc = xc0 + wc; wc > 0 && !*--xc; --wc) ;
executed 2173 times by 6 tests: ;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
wc > 0Description
TRUEevaluated 5209 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
!*--xcDescription
TRUEevaluated 2173 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3036 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0-5209
793 c->wds = wc;-
794 return c;
executed 3036 times by 6 tests: return c;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
3036
795}-
796-
797static Bigint *p5s;-
798-
799struct p5s_deleter-
800{-
801 ~p5s_deleter()-
802 {-
803 while (p5s) {
p5sDescription
TRUEevaluated 29 times by 6 tests
Evaluated by:
  • tst_qdoublespinbox - unknown status
  • tst_qitemdelegate - unknown status
  • tst_qsqldatabase - unknown status
  • tst_qstring - unknown status
  • tst_qstringref - unknown status
  • tst_qvariant - unknown status
FALSEevaluated 6 times by 6 tests
Evaluated by:
  • tst_qdoublespinbox - unknown status
  • tst_qitemdelegate - unknown status
  • tst_qsqldatabase - unknown status
  • tst_qstring - unknown status
  • tst_qstringref - unknown status
  • tst_qvariant - unknown status
6-29
804 Bigint *next = p5s->next;-
805 Bfree(p5s);-
806 p5s = next;-
807 }
executed 29 times by 6 tests: end of block
Executed by:
  • tst_qdoublespinbox - unknown status
  • tst_qitemdelegate - unknown status
  • tst_qsqldatabase - unknown status
  • tst_qstring - unknown status
  • tst_qstringref - unknown status
  • tst_qvariant - unknown status
29
808 }
executed 6 times by 6 tests: end of block
Executed by:
  • tst_qdoublespinbox - unknown status
  • tst_qitemdelegate - unknown status
  • tst_qsqldatabase - unknown status
  • tst_qstring - unknown status
  • tst_qstringref - unknown status
  • tst_qvariant - unknown status
6
809};-
810-
811static Bigint *pow5mult(Bigint *b, int k)-
812{-
813 Bigint *b1, *p5, *p51;-
814 int i;-
815 static const int p05[3] = { 5, 25, 125 };-
816-
817 if ((i = k & 3) != 0)
(i = k & 3) != 0Description
TRUEevaluated 1494 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 395 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QVariant
395-1494
818 b = multadd(b, p05[i-1], 0);
executed 1494 times by 6 tests: b = multadd(b, p05[i-1], 0);
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
1494
819-
820 if (!(k >>= 2))
!(k >>= 2)Description
TRUEevaluated 621 times by 5 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 1268 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
621-1268
821 return b;
executed 621 times by 5 tests: return b;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
621
822 if (!(p5 = p5s)) {
!(p5 = p5s)Description
TRUEevaluated 6 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 1262 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
6-1262
823 /* first time */-
824 static p5s_deleter deleter;-
825 p5 = p5s = i2b(625);-
826 p5->next = 0;-
827 }
executed 6 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
6
828 for(;;) {-
829 if (k & 1) {
k & 1Description
TRUEevaluated 2920 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 2354 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
2354-2920
830 b1 = mult(b, p5);-
831 Bfree(b);-
832 b = b1;-
833 }
executed 2920 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
2920
834 if (!(k >>= 1))
!(k >>= 1)Description
TRUEevaluated 1268 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 4006 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1268-4006
835 break;
executed 1268 times by 6 tests: break;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1268
836 if (!(p51 = p5->next)) {
!(p51 = p5->next)Description
TRUEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3983 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
23-3983
837 p51 = p5->next = mult(p5,p5);-
838 p51->next = 0;-
839 }
executed 23 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
23
840 p5 = p51;-
841 }
executed 4006 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
4006
842 return b;
executed 1268 times by 6 tests: return b;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1268
843}-
844-
845static Bigint *lshift(Bigint *b, int k)-
846{-
847 int i, k1, n, n1;-
848 Bigint *b1;-
849 ULong *x, *x1, *xe, z;-
850-
851#ifdef Pack_32-
852 n = k >> 5;-
853#else-
854 n = k >> 4;-
855#endif-
856 k1 = b->k;-
857 n1 = n + b->wds + 1;-
858 for(i = b->maxwds; n1 > i; i <<= 1)
n1 > iDescription
TRUEevaluated 5446 times by 11 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 7021 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
5446-7021
859 k1++;
executed 5446 times by 11 tests: k1++;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
5446
860 b1 = Balloc(k1);-
861 x1 = b1->x;-
862 for(i = 0; i < n; i++)
i < nDescription
TRUEevaluated 13623 times by 9 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 7021 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
7021-13623
863 *x1++ = 0;
executed 13623 times by 9 tests: *x1++ = 0;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
13623
864 x = b->x;-
865 xe = x + b->wds;-
866#ifdef Pack_32-
867 if (k &= 0x1f) {
k &= 0x1fDescription
TRUEevaluated 7012 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
9-7012
868 k1 = 32 - k;-
869 z = 0;-
870 do {-
871 *x1++ = *x << k | z;-
872 z = *x++ >> k1;-
873 }
executed 26550 times by 13 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
26550
874 while(x < xe);
x < xeDescription
TRUEevaluated 19538 times by 11 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 7012 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
7012-19538
875 if ((*x1 = z) != 0)
(*x1 = z) != 0Description
TRUEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
FALSEevaluated 6900 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
112-6900
876 ++n1;
executed 112 times by 3 tests: ++n1;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
112
877 }
executed 7012 times by 13 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
7012
878#else-
879 if (k &= 0xf) {-
880 k1 = 16 - k;-
881 z = 0;-
882 do {-
883 *x1++ = *x << k & 0xffff | z;-
884 z = *x++ >> k1;-
885 }-
886 while(x < xe);-
887 if (*x1 = z)-
888 ++n1;-
889 }-
890#endif-
891 else do-
892 *x1++ = *x++;
executed 26 times by 1 test: *x1++ = *x++;
Executed by:
  • tst_QDoubleSpinBox
26
893 while(x < xe);
x < xeDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
9-17
894 b1->wds = n1 - 1;-
895 Bfree(b);-
896 return b1;
executed 7021 times by 13 tests: return b1;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
7021
897}-
898-
899static int cmp(Bigint *a, Bigint *b)-
900{-
901 ULong *xa, *xa0, *xb, *xb0;-
902 int i, j;-
903-
904 i = a->wds;-
905 j = b->wds;-
906#ifdef BSD_QDTOA_DEBUG-
907 if (i > 1 && !a->x[i-1])-
908 Bug("cmp called with a->x[a->wds-1] == 0");-
909 if (j > 1 && !b->x[j-1])-
910 Bug("cmp called with b->x[b->wds-1] == 0");-
911#endif-
912 if (i -= j)
i -= jDescription
TRUEevaluated 546 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 124493 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
546-124493
913 return i;
executed 546 times by 6 tests: return i;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
546
914 xa0 = a->x;-
915 xa = xa0 + j;-
916 xb0 = b->x;-
917 xb = xb0 + j;-
918 for(;;) {-
919 if (*--xa != *--xb)
*--xa != *--xbDescription
TRUEevaluated 123906 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 4232 times by 10 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
4232-123906
920 return *xa < *xb ? -1 : 1;
executed 123906 times by 13 tests: return *xa < *xb ? -1 : 1;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
*xa < *xbDescription
TRUEevaluated 121740 times by 13 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 2166 times by 9 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2166-123906
921 if (xa <= xa0)
xa <= xa0Description
TRUEevaluated 587 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 3645 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
587-3645
922 break;
executed 587 times by 6 tests: break;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
587
923 }
executed 3645 times by 8 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
3645
924 return 0;
executed 587 times by 6 tests: return 0;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
587
925}-
926-
927static Bigint *diff(Bigint *a, Bigint *b)-
928{-
929 Bigint *c;-
930 int i, wa, wb;-
931 Long borrow, y; /* We need signed shifts here. */-
932 ULong *xa, *xae, *xb, *xbe, *xc;-
933#ifdef Pack_32-
934 Long z;-
935#endif-
936-
937 i = cmp(a,b);-
938 if (!i) {
!iDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
4-161
939 c = Balloc(0);-
940 c->wds = 1;-
941 c->x[0] = 0;-
942 return c;
executed 4 times by 2 tests: return c;
Executed by:
  • tst_QString
  • tst_QStringRef
4
943 }-
944 if (i < 0) {
i < 0Description
TRUEevaluated 151 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
10-151
945 c = a;-
946 a = b;-
947 b = c;-
948 i = 1;-
949 }
executed 151 times by 7 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
151
950 else-
951 i = 0;
executed 10 times by 1 test: i = 0;
Executed by:
  • tst_QDoubleSpinBox
10
952 c = Balloc(a->k);-
953 c->sign = i;-
954 wa = a->wds;-
955 xa = a->x;-
956 xae = xa + wa;-
957 wb = b->wds;-
958 xb = b->x;-
959 xbe = xb + wb;-
960 xc = c->x;-
961 borrow = 0;-
962#ifdef Pack_32-
963 do {-
964 y = (*xa & 0xffff) - (*xb & 0xffff) + borrow;-
965 borrow = y >> 16;-
966 Sign_Extend(borrow, y);-
967 z = (*xa++ >> 16) - (*xb++ >> 16) + borrow;-
968 borrow = z >> 16;-
969 Sign_Extend(borrow, z);-
970 Storeinc(xc, z, y);-
971 }
executed 2249 times by 7 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
2249
972 while(xb < xbe);
xb < xbeDescription
TRUEevaluated 2088 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161-2088
973 while(xa < xae) {
xa < xaeDescription
TRUEnever evaluated
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0-161
974 y = (*xa & 0xffff) + borrow;-
975 borrow = y >> 16;-
976 Sign_Extend(borrow, y);-
977 z = (*xa++ >> 16) + borrow;-
978 borrow = z >> 16;-
979 Sign_Extend(borrow, z);-
980 Storeinc(xc, z, y);-
981 }
never executed: end of block
0
982#else-
983 do {-
984 y = *xa++ - *xb++ + borrow;-
985 borrow = y >> 16;-
986 Sign_Extend(borrow, y);-
987 *xc++ = y & 0xffff;-
988 }-
989 while(xb < xbe);-
990 while(xa < xae) {-
991 y = *xa++ + borrow;-
992 borrow = y >> 16;-
993 Sign_Extend(borrow, y);-
994 *xc++ = y & 0xffff;-
995 }-
996#endif-
997 while(!*--xc)
!*--xcDescription
TRUEevaluated 238 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161-238
998 wa--;
executed 238 times by 7 tests: wa--;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
238
999 c->wds = wa;-
1000 return c;
executed 161 times by 7 tests: return c;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161
1001}-
1002-
1003static double ulp(double x)-
1004{-
1005 Long L;-
1006 double a;-
1007-
1008 L = (getWord0(x) & Exp_mask) - (P-1)*Exp_msk1;-
1009#ifndef Sudden_Underflow-
1010 if (L > 0) {
L > 0Description
TRUEevaluated 141 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
0-141
1011#endif-
1012#ifdef IBM-
1013 L |= Exp_msk1 >> 4;-
1014#endif-
1015 setWord0(&a, L);-
1016 setWord1(&a, 0);-
1017#ifndef Sudden_Underflow-
1018 }
executed 141 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
141
1019 else {-
1020 L = -L >> Exp_shift;-
1021 if (L < Exp_shift) {
L < 20Description
TRUEnever evaluated
FALSEnever evaluated
0
1022 setWord0(&a, 0x80000 >> L);-
1023 setWord1(&a, 0);-
1024 }
never executed: end of block
0
1025 else {-
1026 setWord0(&a, 0);-
1027 L -= Exp_shift;-
1028 setWord1(&a, L >= 31 ? 1U : 1U << (31 - L));-
1029 }
never executed: end of block
0
1030 }-
1031#endif-
1032 return a;
executed 141 times by 6 tests: return a;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
141
1033}-
1034-
1035static double b2d(Bigint *a, int *e)-
1036{-
1037 ULong *xa, *xa0, w, y, z;-
1038 int k;-
1039 double d;-
1040-
1041 xa0 = a->x;-
1042 xa = xa0 + a->wds;-
1043 y = *--xa;-
1044#ifdef BSD_QDTOA_DEBUG-
1045 if (!y) Bug("zero y in b2d");-
1046#endif-
1047 k = hi0bits(y);-
1048 *e = 32 - k;-
1049#ifdef Pack_32-
1050 if (k < Ebits) {
k < 11Description
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
FALSEevaluated 220 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
62-220
1051 setWord0(&d, Exp_1 | y >> (Ebits - k));-
1052 w = xa > xa0 ? *--xa : 0;
xa > xa0Description
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
FALSEnever evaluated
0-62
1053 setWord1(&d, y << ((32-Ebits) + k) | w >> (Ebits - k));-
1054 goto ret_d;
executed 62 times by 3 tests: goto ret_d;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
62
1055 }-
1056 z = xa > xa0 ? *--xa : 0;
xa > xa0Description
TRUEevaluated 218 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
2-218
1057 if (k -= Ebits) {
k -= 11Description
TRUEevaluated 214 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
6-214
1058 setWord0(&d, Exp_1 | y << k | z >> (32 - k));-
1059 y = xa > xa0 ? *--xa : 0;
xa > xa0Description
TRUEevaluated 159 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 55 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QVariant
55-159
1060 setWord1(&d, z << k | y >> (32 - k));-
1061 }
executed 214 times by 6 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
214
1062 else {-
1063 setWord0(&d, Exp_1 | y);-
1064 setWord1(&d, z);-
1065 }
executed 6 times by 3 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
6
1066#else-
1067 if (k < Ebits + 16) {-
1068 z = xa > xa0 ? *--xa : 0;-
1069 setWord0(&d, Exp_1 | y << k - Ebits | z >> Ebits + 16 - k);-
1070 w = xa > xa0 ? *--xa : 0;-
1071 y = xa > xa0 ? *--xa : 0;-
1072 setWord1(&d, z << k + 16 - Ebits | w << k - Ebits | y >> 16 + Ebits - k);-
1073 goto ret_d;-
1074 }-
1075 z = xa > xa0 ? *--xa : 0;-
1076 w = xa > xa0 ? *--xa : 0;-
1077 k -= Ebits + 16;-
1078 setWord0(&d, Exp_1 | y << k + 16 | z << k | w >> 16 - k);-
1079 y = xa > xa0 ? *--xa : 0;-
1080 setWord1(&d, w << k + 16 | y << k);-
1081#endif-
1082 ret_d:
code before this statement executed 220 times by 6 tests: ret_d:
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
220
1083 return d;
executed 282 times by 6 tests: return d;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
282
1084}-
1085-
1086static Bigint *d2b(double d, int *e, int *bits)-
1087{-
1088 Bigint *b;-
1089 int de, i, k;-
1090 ULong *x, y, z;-
1091-
1092#ifdef Pack_32-
1093 b = Balloc(1);-
1094#else-
1095 b = Balloc(2);-
1096#endif-
1097 x = b->x;-
1098-
1099 z = getWord0(d) & Frac_mask;-
1100 setWord0(&d, getWord0(d) & 0x7fffffff); /* clear sign bit, which we ignore */-
1101#ifdef Sudden_Underflow-
1102 de = (int)(getWord0(d) >> Exp_shift);-
1103#ifndef IBM-
1104 z |= Exp_msk11;-
1105#endif-
1106#else-
1107 if ((de = int(getWord0(d) >> Exp_shift)) != 0)
(de = int(getW...) >> 20)) != 0Description
TRUEevaluated 71593 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
FALSEnever evaluated
0-71593
1108 z |= Exp_msk1;
executed 71593 times by 55 tests: z |= 0x100000;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
71593
1109#endif-
1110#ifdef Pack_32-
1111 if ((y = getWord1(d)) != 0) {
(y = getWord1(d)) != 0Description
TRUEevaluated 44973 times by 31 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • ...
FALSEevaluated 26620 times by 46 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
26620-44973
1112 if ((k = lo0bits(&y)) != 0) {
(k = lo0bits(&y)) != 0Description
TRUEevaluated 39794 times by 26 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • ...
FALSEevaluated 5179 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QVariant
5179-39794
1113 x[0] = y | z << (32 - k);-
1114 z >>= k;-
1115 }
executed 39794 times by 26 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • ...
39794
1116 else-
1117 x[0] = y;
executed 5179 times by 18 tests: x[0] = y;
Executed by:
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QVariant
5179
1118 i = b->wds = (x[1] = z) ? 2 : 1;
(x[1] = z)Description
TRUEevaluated 7980 times by 26 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
  • ...
FALSEevaluated 36993 times by 13 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
7980-36993
1119 }
executed 44973 times by 31 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • ...
44973
1120 else {-
1121#ifdef BSD_QDTOA_DEBUG-
1122 if (!z)-
1123 Bug("Zero passed to d2b");-
1124#endif-
1125 k = lo0bits(&z);-
1126 x[0] = z;-
1127 i = b->wds = 1;-
1128 k += 32;-
1129 }
executed 26620 times by 46 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
26620
1130#else-
1131 if (y = getWord1(d)) {-
1132 if (k = lo0bits(&y))-
1133 if (k >= 16) {-
1134 x[0] = y | z << 32 - k & 0xffff;-
1135 x[1] = z >> k - 16 & 0xffff;-
1136 x[2] = z >> k;-
1137 i = 2;-
1138 }-
1139 else {-
1140 x[0] = y & 0xffff;-
1141 x[1] = y >> 16 | z << 16 - k & 0xffff;-
1142 x[2] = z >> k & 0xffff;-
1143 x[3] = z >> k+16;-
1144 i = 3;-
1145 }-
1146 else {-
1147 x[0] = y & 0xffff;-
1148 x[1] = y >> 16;-
1149 x[2] = z & 0xffff;-
1150 x[3] = z >> 16;-
1151 i = 3;-
1152 }-
1153 }-
1154 else {-
1155#ifdef BSD_QDTOA_DEBUG-
1156 if (!z)-
1157 Bug("Zero passed to d2b");-
1158#endif-
1159 k = lo0bits(&z);-
1160 if (k >= 16) {-
1161 x[0] = z;-
1162 i = 0;-
1163 }-
1164 else {-
1165 x[0] = z & 0xffff;-
1166 x[1] = z >> 16;-
1167 i = 1;-
1168 }-
1169 k += 32;-
1170 }-
1171 while(!x[i])-
1172 --i;-
1173 b->wds = i + 1;-
1174#endif-
1175#ifndef Sudden_Underflow-
1176 if (de) {
deDescription
TRUEevaluated 71593 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
FALSEnever evaluated
0-71593
1177#endif-
1178#ifdef IBM-
1179 *e = (de - Bias - (P-1) << 2) + k;-
1180 *bits = 4*P + 8 - k - hi0bits(getWord0(d) & Frac_mask);-
1181#else-
1182 *e = de - Bias - (P-1) + k;-
1183 *bits = P - k;-
1184#endif-
1185#ifndef Sudden_Underflow-
1186 }
executed 71593 times by 55 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
71593
1187 else {-
1188 *e = de - Bias - (P-1) + 1 + k;-
1189#ifdef Pack_32-
1190 *bits = 32*i - hi0bits(x[i-1]);-
1191#else-
1192 *bits = (i+2)*16 - hi0bits(x[i]);-
1193#endif-
1194 }
never executed: end of block
0
1195#endif-
1196 return b;
executed 71593 times by 55 tests: return b;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
71593
1197}-
1198-
1199static double ratio(Bigint *a, Bigint *b)-
1200{-
1201 double da, db;-
1202 int k, ka, kb;-
1203-
1204 da = b2d(a, &ka);-
1205 db = b2d(b, &kb);-
1206#ifdef Pack_32-
1207 k = ka - kb + 32*(a->wds - b->wds);-
1208#else-
1209 k = ka - kb + 16*(a->wds - b->wds);-
1210#endif-
1211#ifdef IBM-
1212 if (k > 0) {-
1213 setWord0(&da, getWord0(da) + (k >> 2)*Exp_msk1);-
1214 if (k &= 3)-
1215 da *= 1 << k;-
1216 }-
1217 else {-
1218 k = -k;-
1219 setWord0(&db, getWord0(db) + (k >> 2)*Exp_msk1);-
1220 if (k &= 3)-
1221 db *= 1 << k;-
1222 }-
1223#else-
1224 if (k > 0)
k > 0Description
TRUEevaluated 133 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
8-133
1225 setWord0(&da, getWord0(da) + k*Exp_msk1);
executed 133 times by 6 tests: setWord0(&da, getWord0(da) + k*0x100000);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
133
1226 else {-
1227 k = -k;-
1228 setWord0(&db, getWord0(db) + k*Exp_msk1);-
1229 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
8
1230#endif-
1231 return da / db;
executed 141 times by 6 tests: return da / db;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
141
1232}-
1233-
1234static const double tens[] = {-
1235 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,-
1236 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,-
1237 1e20, 1e21, 1e22-
1238#ifdef VAX-
1239 , 1e23, 1e24-
1240#endif-
1241};-
1242-
1243#ifdef IEEE_Arith-
1244static const double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 };-
1245static const double tinytens[] = { 1e-16, 1e-32, 1e-64, 1e-128, 1e-256 };-
1246#define n_bigtens 5-
1247#else-
1248#ifdef IBM-
1249static const double bigtens[] = { 1e16, 1e32, 1e64 };-
1250static const double tinytens[] = { 1e-16, 1e-32, 1e-64 };-
1251#define n_bigtens 3-
1252#else-
1253static const double bigtens[] = { 1e16, 1e32 };-
1254static const double tinytens[] = { 1e-16, 1e-32 };-
1255#define n_bigtens 2-
1256#endif-
1257#endif-
1258-
1259/*-
1260 The pre-release gcc3.3 shipped with SuSE 8.2 has a bug which causes-
1261 the comparison 1e-100 == 0.0 to return true. As a workaround, we-
1262 compare it to a global variable containing 0.0, which produces-
1263 correct assembler output.-
1264-
1265 ### consider detecting the broken compilers and using the static-
1266 ### double for these, and use a #define for all working compilers-
1267*/-
1268static double g_double_zero = 0.0;-
1269-
1270Q_CORE_EXPORT double qstrtod(const char *s00, const char **se, bool *ok)-
1271{-
1272 int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, dsign,-
1273 e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign;-
1274 const char *s, *s0, *s1;-
1275 double aadj, aadj1, adj, rv, rv0;-
1276 Long L;-
1277 ULong y, z;-
1278 Bigint *bb1, *bd0;-
1279 Bigint *bb = NULL, *bd = NULL, *bs = NULL, *delta = NULL;/* pacify gcc */-
1280-
1281 /*-
1282 #ifndef KR_headers-
1283 const char decimal_point = localeconv()->decimal_point[0];-
1284 #else-
1285 const char decimal_point = '.';-
1286 #endif */-
1287 if (ok != 0)
ok != 0Description
TRUEevaluated 4123 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
FALSEnever evaluated
0-4123
1288 *ok = true;
executed 4123 times by 28 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
4123
1289-
1290 const char decimal_point = '.';-
1291-
1292 sign = nz0 = nz = 0;-
1293 rv = 0.;-
1294-
1295-
1296 for(s = s00; ascii_isspace(uchar(*s)); s++)
ascii_isspace(uchar(*s))Description
TRUEnever evaluated
FALSEevaluated 4123 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
0-4123
1297 ;
never executed: ;
0
1298-
1299 if (*s == '-') {
*s == '-'Description
TRUEevaluated 403 times by 9 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 3720 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
403-3720
1300 sign = 1;-
1301 s++;-
1302 } else if (*s == '+') {
executed 403 times by 9 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
*s == '+'Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QString
FALSEevaluated 3713 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
7-3713
1303 s++;-
1304 }
executed 7 times by 3 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QString
7
1305-
1306 if (*s == '\0') {
*s == '\0'Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
FALSEevaluated 4113 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
10-4113
1307 s = s00;-
1308 goto ret;
executed 10 times by 3 tests: goto ret;
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
10
1309 }-
1310-
1311 if (*s == '0') {
*s == '0'Description
TRUEevaluated 1428 times by 20 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_Selftests
FALSEevaluated 2685 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
1428-2685
1312 nz0 = 1;-
1313 while(*++s == '0') ;
executed 81 times by 2 tests: ;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
*++s == '0'Description
TRUEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
FALSEevaluated 1428 times by 20 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_Selftests
81-1428
1314 if (!*s)
!*sDescription
TRUEevaluated 671 times by 15 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_Selftests
FALSEevaluated 757 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
671-757
1315 goto ret;
executed 671 times by 15 tests: goto ret;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_Selftests
671
1316 }
executed 757 times by 10 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
757
1317 s0 = s;-
1318 y = z = 0;-
1319 for(nd = nf = 0; (c = *s) >= '0' && c <= '9'; nd++, s++)
(c = *s) >= '0'Description
TRUEevaluated 23304 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
FALSEevaluated 3122 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
c <= '9'Description
TRUEevaluated 22984 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
FALSEevaluated 320 times by 10 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
320-23304
1320 if (nd < 9)
nd < 9Description
TRUEevaluated 5535 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
FALSEevaluated 17449 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
5535-17449
1321 y = 10*y + c - '0';
executed 5535 times by 26 tests: y = 10*y + c - '0';
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
5535
1322 else if (nd < 16)
nd < 16Description
TRUEevaluated 428 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
FALSEevaluated 17021 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
428-17021
1323 z = 10*z + c - '0';
executed 428 times by 4 tests: z = 10*z + c - '0';
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
428
1324 nd0 = nd;-
1325 if (c == decimal_point) {
c == decimal_pointDescription
TRUEevaluated 1664 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
FALSEevaluated 1778 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
1664-1778
1326 c = *++s;-
1327 if (!nd) {
!ndDescription
TRUEevaluated 775 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
FALSEevaluated 889 times by 15 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
775-889
1328 for(; c == '0'; c = *++s)
c == '0'Description
TRUEevaluated 2853 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
FALSEevaluated 775 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
775-2853
1329 nz++;
executed 2853 times by 9 tests: nz++;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
2853
1330 if (c > '0' && c <= '9') {
c > '0'Description
TRUEevaluated 249 times by 8 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
FALSEevaluated 526 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
c <= '9'Description
TRUEevaluated 249 times by 8 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
FALSEnever evaluated
0-526
1331 s0 = s;-
1332 nf += nz;-
1333 nz = 0;-
1334 goto have_dig;
executed 249 times by 8 tests: goto have_dig;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
249
1335 }-
1336 goto dig_done;
executed 526 times by 9 tests: goto dig_done;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
526
1337 }-
1338 for(; c >= '0' && c <= '9'; c = *++s) {
c >= '0'Description
TRUEevaluated 6379 times by 15 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
FALSEevaluated 1110 times by 16 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
c <= '9'Description
TRUEevaluated 6351 times by 15 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
28-6379
1339 have_dig:-
1340 nz++;-
1341 if (c -= '0') {
c -= '0'Description
TRUEevaluated 3141 times by 13 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 3459 times by 13 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
3141-3459
1342 nf += nz;-
1343 for(i = 1; i < nz; i++)
i < nzDescription
TRUEevaluated 174 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3141 times by 13 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
174-3141
1344 if (nd++ < 9)
nd++ < 9Description
TRUEevaluated 115 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 59 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QVariant
59-115
1345 y *= 10;
executed 115 times by 6 tests: y *= 10;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
115
1346 else if (nd <= DBL_DIG + 1)
nd <= 15 + 1Description
TRUEevaluated 29 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QVariant
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
29-30
1347 z *= 10;
executed 29 times by 3 tests: z *= 10;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QVariant
29
1348 if (nd++ < 9)
nd++ < 9Description
TRUEevaluated 1733 times by 12 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 1408 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1408-1733
1349 y = 10*y + c;
executed 1733 times by 12 tests: y = 10*y + c;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
1733
1350 else if (nd <= DBL_DIG + 1)
nd <= 15 + 1Description
TRUEevaluated 710 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 698 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
698-710
1351 z = 10*z + c;
executed 710 times by 4 tests: z = 10*z + c;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
710
1352 nz = 0;-
1353 }
executed 3141 times by 13 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
3141
1354 }
executed 6600 times by 16 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
6600
1355 }
executed 1138 times by 16 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
1138
1356 dig_done:
code before this statement executed 2916 times by 28 tests: dig_done:
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
2916
1357 e = 0;-
1358 if (c == 'e' || c == 'E') {
c == 'e'Description
TRUEevaluated 112 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 3330 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
c == 'E'Description
TRUEnever evaluated
FALSEevaluated 3330 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
0-3330
1359 if (!nd && !nz && !nz0) {
!ndDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 92 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
!nzDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEnever evaluated
!nz0Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEnever evaluated
0-92
1360 s = s00;-
1361 goto ret;
executed 20 times by 1 test: goto ret;
Executed by:
  • tst_QDoubleValidator
20
1362 }-
1363 s00 = s;-
1364 esign = 0;-
1365 switch(c = *++s) {-
1366 case '-':
executed 26 times by 4 tests: case '-':
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
26
1367 esign = 1;-
1368 case '+':
code before this statement executed 26 times by 4 tests: case '+':
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
executed 68 times by 4 tests: case '+':
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
26-68
1369 c = *++s;-
1370 }
executed 68 times by 4 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
68
1371 if (c >= '0' && c <= '9') {
c >= '0'Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
c <= '9'Description
TRUEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
2-70
1372 while(c == '0')
c == '0'Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
12-68
1373 c = *++s;
executed 12 times by 3 tests: c = *++s;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
12
1374 if (c > '0' && c <= '9') {
c > '0'Description
TRUEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEnever evaluated
c <= '9'Description
TRUEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEnever evaluated
0-68
1375 L = c - '0';-
1376 s1 = s;-
1377 while((c = *++s) >= '0' && c <= '9')
(c = *++s) >= '0'Description
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
c <= '9'Description
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEnever evaluated
0-68
1378 L = 10*L + c - '0';
executed 38 times by 2 tests: L = 10*L + c - '0';
Executed by:
  • tst_QString
  • tst_QStringRef
38
1379 if (s - s1 > 8 || L > 19999)
s - s1 > 8Description
TRUEnever evaluated
FALSEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
L > 19999Description
TRUEnever evaluated
FALSEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
0-68
1380 /* Avoid confusion from exponents-
1381 * so large that e might overflow.-
1382 */-
1383 e = 19999; /* safe for 16 bit ints */
never executed: e = 19999;
0
1384 else-
1385 e = int(L);
executed 68 times by 4 tests: e = int(L);
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
68
1386 if (esign)
esignDescription
TRUEevaluated 20 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 48 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
20-48
1387 e = -e;
executed 20 times by 4 tests: e = -e;
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
20
1388 }
executed 68 times by 4 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
68
1389 else-
1390 e = 0;
never executed: e = 0;
0
1391 }-
1392 else-
1393 s = s00;
executed 24 times by 3 tests: s = s00;
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
24
1394 }-
1395 if (!nd) {
!ndDescription
TRUEevaluated 758 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 2664 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
758-2664
1396 if (!nz && !nz0)
!nzDescription
TRUEevaluated 291 times by 9 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 467 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QSpinBox
!nz0Description
TRUEevaluated 236 times by 9 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 55 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QString
  • tst_QStringRef
55-467
1397 s = s00;
executed 236 times by 9 tests: s = s00;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
236
1398 goto ret;
executed 758 times by 13 tests: goto ret;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
758
1399 }-
1400 e1 = e -= nf;-
1401-
1402 /* Now we have nd0 digits, starting at s0, followed by a-
1403 * decimal point, followed by nd-nd0 digits. The number we're-
1404 * after is the integer represented by those digits times-
1405 * 10**e */-
1406-
1407 if (!nd0)
!nd0Description
TRUEevaluated 249 times by 8 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
FALSEevaluated 2415 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
249-2415
1408 nd0 = nd;
executed 249 times by 8 tests: nd0 = nd;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
249
1409 k = nd < DBL_DIG + 1 ? nd : DBL_DIG + 1;
nd < 15 + 1Description
TRUEevaluated 2503 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161-2503
1410 rv = y;-
1411 if (k > 9)
k > 9Description
TRUEevaluated 172 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 2492 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
172-2492
1412 rv = tens[k - 9] * rv + z;
executed 172 times by 7 tests: rv = tens[k - 9] * rv + z;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
172
1413-
1414 bd0 = 0;-
1415 if (nd <= DBL_DIG
nd <= 15Description
TRUEevaluated 2503 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
FALSEevaluated 161 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161-2503
1416#ifndef RND_PRODQUOT-
1417 && FLT_ROUNDS == 1
1 == 1Description
TRUEevaluated 2503 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
FALSEnever evaluated
0-2503
1418#endif-
1419 ) {-
1420 if (!e)
!eDescription
TRUEevaluated 2002 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
FALSEevaluated 501 times by 12 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
501-2002
1421 goto ret;
executed 2002 times by 24 tests: goto ret;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
2002
1422 if (e > 0) {
e > 0Description
TRUEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 469 times by 12 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
32-469
1423 if (e <= Ten_pmax) {
e <= 22Description
TRUEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEnever evaluated
0-32
1424#ifdef VAX-
1425 goto vax_ovfl_check;-
1426#else-
1427 /* rv = */ rounded_product(rv, tens[e]);-
1428 goto ret;
executed 32 times by 4 tests: goto ret;
Executed by:
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
32
1429#endif-
1430 }-
1431 i = DBL_DIG - nd;-
1432 if (e <= Ten_pmax + i) {
e <= 22 + iDescription
TRUEnever evaluated
FALSEnever evaluated
0
1433 /* A fancier test would sometimes let us do-
1434 * this for larger i values.-
1435 */-
1436 e -= i;-
1437 rv *= tens[i];-
1438#ifdef VAX-
1439 /* VAX exponent range is so narrow we must-
1440 * worry about overflow here...-
1441 */-
1442 vax_ovfl_check:-
1443 setWord0(&rv, getWord0(rv) - P*Exp_msk1);-
1444 /* rv = */ rounded_product(rv, tens[e]);-
1445 if ((getWord0(rv) & Exp_mask)-
1446 > Exp_msk1*(DBL_MAX_EXP+Bias-1-P))-
1447 goto ovfl;-
1448 setWord0(&rv, getWord0(rv) + P*Exp_msk1);-
1449#else-
1450 /* rv = */ rounded_product(rv, tens[e]);-
1451#endif-
1452 goto ret;
never executed: goto ret;
0
1453 }-
1454 }
never executed: end of block
0
1455#ifndef Inaccurate_Divide-
1456 else if (e >= -Ten_pmax) {
e >= -22Description
TRUEevaluated 469 times by 12 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
FALSEnever evaluated
0-469
1457 /* rv = */ rounded_quotient(rv, tens[-e]);-
1458 goto ret;
executed 469 times by 12 tests: goto ret;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextStream
  • tst_QVariant
469
1459 }-
1460#endif-
1461 }
never executed: end of block
0
1462 e1 += nd - k;-
1463-
1464 /* Get starting approximation = rv * 10**e1 */-
1465-
1466 if (e1 > 0) {
e1 > 0Description
TRUEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 89 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
72-89
1467 if ((i = e1 & 15) != 0)
(i = e1 & 15) != 0Description
TRUEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEnever evaluated
0-72
1468 rv *= tens[i];
executed 72 times by 5 tests: rv *= tens[i];
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72
1469 if (e1 &= ~15) {
e1 &= ~15Description
TRUEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDoubleValidator
1-71
1470 if (e1 > DBL_MAX_10_EXP) {
e1 > 308Description
TRUEnever evaluated
FALSEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
0-71
1471 ovfl:-
1472 // errno = ERANGE;-
1473 if (ok != 0)
ok != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1474 *ok = false;
never executed: *ok = false;
0
1475#ifdef __STDC__-
1476 rv = HUGE_VAL;-
1477#else-
1478 /* Can't trust HUGE_VAL */-
1479#ifdef IEEE_Arith-
1480 setWord0(&rv, Exp_mask);-
1481 setWord1(&rv, 0);-
1482#else-
1483 setWord0(&rv, Big0);-
1484 setWord1(&rv, Big1);-
1485#endif-
1486#endif-
1487 if (bd0)
bd0Description
TRUEnever evaluated
FALSEnever evaluated
0
1488 goto retfree;
never executed: goto retfree;
0
1489 goto ret;
never executed: goto ret;
0
1490 }-
1491 if (e1 >>= 4) {
e1 >>= 4Description
TRUEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEnever evaluated
0-71
1492 for(j = 0; e1 > 1; j++, e1 >>= 1)
e1 > 1Description
TRUEevaluated 232 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
FALSEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
71-232
1493 if (e1 & 1)
e1 & 1Description
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
FALSEevaluated 174 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
58-174
1494 rv *= bigtens[j];
executed 58 times by 2 tests: rv *= bigtens[j];
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
58
1495 /* The last multiplication could overflow. */-
1496 setWord0(&rv, getWord0(rv) - P*Exp_msk1);-
1497 rv *= bigtens[j];-
1498 if ((z = getWord0(rv) & Exp_mask)
(z = getWord0(...024 +1023 -53)Description
TRUEnever evaluated
FALSEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
0-71
1499 > Exp_msk1*(DBL_MAX_EXP+Bias-P))
(z = getWord0(...024 +1023 -53)Description
TRUEnever evaluated
FALSEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
0-71
1500 goto ovfl;
never executed: goto ovfl;
0
1501 if (z > Exp_msk1*(DBL_MAX_EXP+Bias-1-P)) {
z > 0x100000*(...4 +1023 -1-53)Description
TRUEnever evaluated
FALSEevaluated 71 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
0-71
1502 /* set to largest number */-
1503 /* (Can't trust DBL_MAX) */-
1504 setWord0(&rv, Big0);-
1505 setWord1(&rv, Big1);-
1506 }
never executed: end of block
0
1507 else-
1508 setWord0(&rv, getWord0(rv) + P*Exp_msk1);
executed 71 times by 4 tests: setWord0(&rv, getWord0(rv) + 53*0x100000);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
71
1509 }-
1510-
1511 }
executed 71 times by 4 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
71
1512 }
executed 72 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72
1513 else if (e1 < 0) {
e1 < 0Description
TRUEevaluated 89 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
0-89
1514 e1 = -e1;-
1515 if ((i = e1 & 15) != 0)
(i = e1 & 15) != 0Description
TRUEevaluated 27 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
27-62
1516 rv /= tens[i];
executed 27 times by 5 tests: rv /= tens[i];
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
27
1517 if (e1 &= ~15) {
e1 &= ~15Description
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
FALSEevaluated 23 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QVariant
23-66
1518 e1 >>= 4;-
1519 if (e1 >= 1 << n_bigtens)
e1 >= 1 << 5Description
TRUEnever evaluated
FALSEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
0-66
1520 goto undfl;
never executed: goto undfl;
0
1521 for(j = 0; e1 > 1; j++, e1 >>= 1)
e1 > 1Description
TRUEnever evaluated
FALSEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
0-66
1522 if (e1 & 1)
e1 & 1Description
TRUEnever evaluated
FALSEnever evaluated
0
1523 rv *= tinytens[j];
never executed: rv *= tinytens[j];
0
1524 /* The last multiplication could underflow. */-
1525 rv0 = rv;-
1526 rv *= tinytens[j];-
1527 if (rv == g_double_zero)
rv == g_double_zeroDescription
TRUEnever evaluated
FALSEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
0-66
1528 {-
1529 rv = 2.*rv0;-
1530 rv *= tinytens[j];-
1531 if (rv == g_double_zero)
rv == g_double_zeroDescription
TRUEnever evaluated
FALSEnever evaluated
0
1532 {-
1533 undfl:-
1534 rv = 0.;-
1535 // errno = ERANGE;-
1536 if (ok != 0)
ok != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1537 *ok = false;
never executed: *ok = false;
0
1538 if (bd0)
bd0Description
TRUEnever evaluated
FALSEnever evaluated
0
1539 goto retfree;
never executed: goto retfree;
0
1540 goto ret;
never executed: goto ret;
0
1541 }-
1542 setWord0(&rv, Tiny0);-
1543 setWord1(&rv, Tiny1);-
1544 /* The refinement below will clean-
1545 * this approximation up.-
1546 */-
1547 }
never executed: end of block
0
1548 }
executed 66 times by 3 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
66
1549 }
executed 89 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
89
1550-
1551 /* Now the hard part -- adjusting rv to the correct value.*/-
1552-
1553 /* Put digits into bd: true value = bd * 10^e */-
1554-
1555 bd0 = s2b(s0, nd0, nd, y);-
1556-
1557 for(;;) {-
1558 bd = Balloc(bd0->k);-
1559 Bcopy(bd, bd0);-
1560 bb = d2b(rv, &bbe, &bbbits); /* rv = bb * 2^bbe */-
1561 bs = i2b(1);-
1562-
1563 if (e >= 0) {
e >= 0Description
TRUEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 93 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
72-93
1564 bb2 = bb5 = 0;-
1565 bd2 = bd5 = e;-
1566 }
executed 72 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72
1567 else {-
1568 bb2 = bb5 = -e;-
1569 bd2 = bd5 = 0;-
1570 }
executed 93 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
93
1571 if (bbe >= 0)
bbe >= 0Description
TRUEevaluated 76 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 89 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
76-89
1572 bb2 += bbe;
executed 76 times by 7 tests: bb2 += bbe;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
76
1573 else-
1574 bd2 -= bbe;
executed 89 times by 4 tests: bd2 -= bbe;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
89
1575 bs2 = bb2;-
1576#ifdef Sudden_Underflow-
1577#ifdef IBM-
1578 j = 1 + 4*P - 3 - bbbits + ((bbe + bbbits - 1) & 3);-
1579#else-
1580 j = P + 1 - bbbits;-
1581#endif-
1582#else-
1583 i = bbe + bbbits - 1; /* logb(rv) */-
1584 if (i < Emin) /* denormal */
i < (-1022)Description
TRUEnever evaluated
FALSEevaluated 165 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0-165
1585 j = bbe + (P-Emin);
never executed: j = bbe + (53 -(-1022));
0
1586 else-
1587 j = P + 1 - bbbits;
executed 165 times by 7 tests: j = 53 + 1 - bbbits;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
165
1588#endif-
1589 bb2 += j;-
1590 bd2 += j;-
1591 i = bb2 < bd2 ? bb2 : bd2;
bb2 < bd2Description
TRUEevaluated 85 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 80 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
80-85
1592 if (i > bs2)
i > bs2Description
TRUEevaluated 93 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72-93
1593 i = bs2;
executed 93 times by 5 tests: i = bs2;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
93
1594 if (i > 0) {
i > 0Description
TRUEevaluated 165 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
0-165
1595 bb2 -= i;-
1596 bd2 -= i;-
1597 bs2 -= i;-
1598 }
executed 165 times by 7 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
165
1599 if (bb5 > 0) {
bb5 > 0Description
TRUEevaluated 93 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72-93
1600 bs = pow5mult(bs, bb5);-
1601 bb1 = mult(bs, bb);-
1602 Bfree(bb);-
1603 bb = bb1;-
1604 }
executed 93 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
93
1605 if (bb2 > 0)
bb2 > 0Description
TRUEevaluated 165 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
0-165
1606 bb = lshift(bb, bb2);
executed 165 times by 7 tests: bb = lshift(bb, bb2);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
165
1607 if (bd5 > 0)
bd5 > 0Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 153 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
12-153
1608 bd = pow5mult(bd, bd5);
executed 12 times by 2 tests: bd = pow5mult(bd, bd5);
Executed by:
  • tst_QString
  • tst_QStringRef
12
1609 if (bd2 > 0)
bd2 > 0Description
TRUEevaluated 93 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72-93
1610 bd = lshift(bd, bd2);
executed 93 times by 5 tests: bd = lshift(bd, bd2);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
93
1611 if (bs2 > 0)
bs2 > 0Description
TRUEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEevaluated 93 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
72-93
1612 bs = lshift(bs, bs2);
executed 72 times by 5 tests: bs = lshift(bs, bs2);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
72
1613 delta = diff(bb, bd);-
1614 dsign = delta->sign;-
1615 delta->sign = 0;-
1616 i = cmp(delta, bs);-
1617 if (i < 0) {
i < 0Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
FALSEevaluated 141 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
24-141
1618 /* Error is less than half an ulp -- check for-
1619 * special case of mantissa a power of two.-
1620 */-
1621 if (dsign || getWord1(rv) || getWord0(rv) & Bndry_mask)
dsignDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
getWord1(rv)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
getWord0(rv) & 0xfffffDescription
TRUEnever evaluated
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
0-14
1622 break;
executed 19 times by 2 tests: break;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDatabase
19
1623 delta = lshift(delta,Log2P);-
1624 if (cmp(delta, bs) > 0)
cmp(delta, bs) > 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
1-4
1625 goto drop_down;
executed 1 time by 1 test: goto drop_down;
Executed by:
  • tst_QDoubleSpinBox
1
1626 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_QStringRef
4
1627 }-
1628 if (i == 0) {
i == 0Description
TRUEnever evaluated
FALSEevaluated 141 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0-141
1629 /* exactly half-way between */-
1630 if (dsign) {
dsignDescription
TRUEnever evaluated
FALSEnever evaluated
0
1631 if ((getWord0(rv) & Bndry_mask1) == Bndry_mask1
(getWord0(rv) ...ff) == 0xfffffDescription
TRUEnever evaluated
FALSEnever evaluated
0
1632 && getWord1(rv) == 0xffffffff) {
getWord1(rv) == 0xffffffffDescription
TRUEnever evaluated
FALSEnever evaluated
0
1633 /*boundary case -- increment exponent*/-
1634 setWord0(&rv, (getWord0(rv) & Exp_mask)-
1635 + Exp_msk1-
1636#ifdef IBM-
1637 | Exp_msk1 >> 4-
1638#endif-
1639 );-
1640 setWord1(&rv, 0);-
1641 break;
never executed: break;
0
1642 }-
1643 }
never executed: end of block
0
1644 else if (!(getWord0(rv) & Bndry_mask) && !getWord1(rv)) {
!(getWord0(rv) & 0xfffff)Description
TRUEnever evaluated
FALSEnever evaluated
!getWord1(rv)Description
TRUEnever evaluated
FALSEnever evaluated
0
1645 drop_down:-
1646 /* boundary case -- decrement exponent */-
1647#ifdef Sudden_Underflow-
1648 L = getWord0(rv) & Exp_mask;-
1649#ifdef IBM-
1650 if (L < Exp_msk1)-
1651#else-
1652 if (L <= Exp_msk1)-
1653#endif-
1654 goto undfl;-
1655 L -= Exp_msk1;-
1656#else-
1657 L = (getWord0(rv) & Exp_mask) - Exp_msk1;-
1658#endif-
1659 setWord0(&rv, L | Bndry_mask1);-
1660 setWord1(&rv, 0xffffffff);-
1661#ifdef IBM-
1662 goto cont;-
1663#else-
1664 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QDoubleSpinBox
1
1665#endif-
1666 }-
1667#ifndef ROUND_BIASED-
1668 if (!(getWord1(rv) & LSB))
!(getWord1(rv) & 1)Description
TRUEnever evaluated
FALSEnever evaluated
0
1669 break;
never executed: break;
0
1670#endif-
1671 if (dsign)
dsignDescription
TRUEnever evaluated
FALSEnever evaluated
0
1672 rv += ulp(rv);
never executed: rv += ulp(rv);
0
1673#ifndef ROUND_BIASED-
1674 else {-
1675 rv -= ulp(rv);-
1676#ifndef Sudden_Underflow-
1677 if (rv == g_double_zero)
rv == g_double_zeroDescription
TRUEnever evaluated
FALSEnever evaluated
0
1678 goto undfl;
never executed: goto undfl;
0
1679#endif-
1680 }
never executed: end of block
0
1681#endif-
1682 break;
never executed: break;
0
1683 }-
1684 if ((aadj = ratio(delta, bs)) <= 2.) {
(aadj = ratio(...ta, bs)) <= 2.Description
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 122 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
19-122
1685 if (dsign)
dsignDescription
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
0-19
1686 aadj = aadj1 = 1.;
executed 19 times by 4 tests: aadj = aadj1 = 1.;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
19
1687 else if (getWord1(rv) || getWord0(rv) & Bndry_mask) {
getWord1(rv)Description
TRUEnever evaluated
FALSEnever evaluated
getWord0(rv) & 0xfffffDescription
TRUEnever evaluated
FALSEnever evaluated
0
1688#ifndef Sudden_Underflow-
1689 if (getWord1(rv) == Tiny1 && !getWord0(rv))
getWord1(rv) == 1Description
TRUEnever evaluated
FALSEnever evaluated
!getWord0(rv)Description
TRUEnever evaluated
FALSEnever evaluated
0
1690 goto undfl;
never executed: goto undfl;
0
1691#endif-
1692 aadj = 1.;-
1693 aadj1 = -1.;-
1694 }
never executed: end of block
0
1695 else {-
1696 /* special case -- power of FLT_RADIX to be */-
1697 /* rounded down... */-
1698-
1699 if (aadj < 2./FLT_RADIX)
aadj < 2./2Description
TRUEnever evaluated
FALSEnever evaluated
0
1700 aadj = 1./FLT_RADIX;
never executed: aadj = 1./2;
0
1701 else-
1702 aadj *= 0.5;
never executed: aadj *= 0.5;
0
1703 aadj1 = -aadj;-
1704 }
never executed: end of block
0
1705 }-
1706 else {-
1707 aadj *= 0.5;-
1708 aadj1 = dsign ? aadj : -aadj;
dsignDescription
TRUEevaluated 122 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
FALSEnever evaluated
0-122
1709#ifdef Check_FLT_ROUNDS-
1710 switch(FLT_ROUNDS) {-
1711 case 2: /* towards +infinity */-
1712 aadj1 -= 0.5;-
1713 break;-
1714 case 0: /* towards 0 */-
1715 case 3: /* towards -infinity */-
1716 aadj1 += 0.5;-
1717 }-
1718#else-
1719 if (FLT_ROUNDS == 0)
1 == 0Description
TRUEnever evaluated
FALSEevaluated 122 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
0-122
1720 aadj1 += 0.5;
never executed: aadj1 += 0.5;
0
1721#endif-
1722 }
executed 122 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
122
1723 y = getWord0(rv) & Exp_mask;-
1724-
1725 /* Check for overflow */-
1726-
1727 if (y == Exp_msk1*(DBL_MAX_EXP+Bias-1)) {
y == 0x100000*(1024 +1023 -1)Description
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
FALSEevaluated 83 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
58-83
1728 rv0 = rv;-
1729 setWord0(&rv, getWord0(rv) - P*Exp_msk1);-
1730 adj = aadj1 * ulp(rv);-
1731 rv += adj;-
1732 if ((getWord0(rv) & Exp_mask) >=
(getWord0(rv) ...024 +1023 -53)Description
TRUEnever evaluated
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
0-58
1733 Exp_msk1*(DBL_MAX_EXP+Bias-P)) {
(getWord0(rv) ...024 +1023 -53)Description
TRUEnever evaluated
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
0-58
1734 if (getWord0(rv0) == Big0 && getWord1(rv0) == Big1)
getWord0(rv0) ...024 +1023 -1))Description
TRUEnever evaluated
FALSEnever evaluated
getWord1(rv0) == 0xffffffffDescription
TRUEnever evaluated
FALSEnever evaluated
0
1735 goto ovfl;
never executed: goto ovfl;
0
1736 setWord0(&rv, Big0);-
1737 setWord1(&rv, Big1);-
1738 goto cont;
never executed: goto cont;
0
1739 }-
1740 else-
1741 setWord0(&rv, getWord0(rv) + P*Exp_msk1);
executed 58 times by 2 tests: setWord0(&rv, getWord0(rv) + 53*0x100000);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
58
1742 }-
1743 else {-
1744#ifdef Sudden_Underflow-
1745 if ((getWord0(rv) & Exp_mask) <= P*Exp_msk1) {-
1746 rv0 = rv;-
1747 setWord0(&rv, getWord0(rv) + P*Exp_msk1);-
1748 adj = aadj1 * ulp(rv);-
1749 rv += adj;-
1750#ifdef IBM-
1751 if ((getWord0(rv) & Exp_mask) < P*Exp_msk1)-
1752#else-
1753 if ((getWord0(rv) & Exp_mask) <= P*Exp_msk1)-
1754#endif-
1755 {-
1756 if (getWord0(rv0) == Tiny0-
1757 && getWord1(rv0) == Tiny1)-
1758 goto undfl;-
1759 setWord0(&rv, Tiny0);-
1760 setWord1(&rv, Tiny1);-
1761 goto cont;-
1762 }-
1763 else-
1764 setWord0(&rv, getWord0(rv) - P*Exp_msk1);-
1765 }-
1766 else {-
1767 adj = aadj1 * ulp(rv);-
1768 rv += adj;-
1769 }-
1770#else-
1771 /* Compute adj so that the IEEE rounding rules will-
1772 * correctly round rv + adj in some half-way cases.-
1773 * If rv * ulp(rv) is denormalized (i.e.,-
1774 * y <= (P-1)*Exp_msk1), we must adjust aadj to avoid-
1775 * trouble from bits lost to denormalization;-
1776 * example: 1.2e-307 .-
1777 */-
1778 if (y <= (P-1)*Exp_msk1 && aadj >= 1.) {
y <= (53 -1)*0x100000Description
TRUEnever evaluated
FALSEevaluated 83 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
aadj >= 1.Description
TRUEnever evaluated
FALSEnever evaluated
0-83
1779 aadj1 = int(aadj + 0.5);-
1780 if (!dsign)
!dsignDescription
TRUEnever evaluated
FALSEnever evaluated
0
1781 aadj1 = -aadj1;
never executed: aadj1 = -aadj1;
0
1782 }
never executed: end of block
0
1783 adj = aadj1 * ulp(rv);-
1784 rv += adj;-
1785#endif-
1786 }
executed 83 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
83
1787 z = getWord0(rv) & Exp_mask;-
1788 if (y == z) {
y == zDescription
TRUEevaluated 137 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
4-137
1789 /* Can we stop now? */-
1790 L = Long(aadj);-
1791 aadj -= L;-
1792 /* The tolerances below are conservative. */-
1793 if (dsign || getWord1(rv) || getWord0(rv) & Bndry_mask) {
dsignDescription
TRUEevaluated 137 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
getWord1(rv)Description
TRUEnever evaluated
FALSEnever evaluated
getWord0(rv) & 0xfffffDescription
TRUEnever evaluated
FALSEnever evaluated
0-137
1794 if (aadj < .4999999 || aadj > .5000001)
aadj < .4999999Description
TRUEevaluated 125 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
aadj > .5000001Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEnever evaluated
0-125
1795 break;
executed 137 times by 6 tests: break;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
137
1796 }
never executed: end of block
0
1797 else if (aadj < .4999999/FLT_RADIX)
aadj < .4999999/2Description
TRUEnever evaluated
FALSEnever evaluated
0
1798 break;
never executed: break;
0
1799 }
never executed: end of block
0
1800 cont:
code before this statement executed 4 times by 2 tests: cont:
Executed by:
  • tst_QString
  • tst_QStringRef
4
1801 Bfree(bb);-
1802 Bfree(bd);-
1803 Bfree(bs);-
1804 Bfree(delta);-
1805 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
4
1806 retfree:
code before this statement executed 161 times by 7 tests: retfree:
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161
1807 Bfree(bb);-
1808 Bfree(bd);-
1809 Bfree(bs);-
1810 Bfree(bd0);-
1811 Bfree(delta);-
1812 ret:
code before this statement executed 161 times by 7 tests: ret:
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
161
1813 if (se)
seDescription
TRUEevaluated 4123 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
FALSEnever evaluated
0-4123
1814 *se = s;
executed 4123 times by 28 tests: *se = s;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
4123
1815 return sign ? -rv : rv;
executed 4123 times by 28 tests: return sign ? -rv : rv;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
signDescription
TRUEevaluated 403 times by 9 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 3720 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
403-4123
1816}-
1817-
1818static int quorem(Bigint *b, Bigint *S)-
1819{-
1820 int n;-
1821 Long borrow, y;-
1822 ULong carry, q, ys;-
1823 ULong *bx, *bxe, *sx, *sxe;-
1824#ifdef Pack_32-
1825 Long z;-
1826 ULong si, zs;-
1827#endif-
1828-
1829 n = S->wds;-
1830#ifdef BSD_QDTOA_DEBUG-
1831 /*debug*/ if (b->wds > n)-
1832 /*debug*/ Bug("oversize b in quorem");-
1833#endif-
1834 if (b->wds < n)
b->wds < nDescription
TRUEevaluated 3965 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 120900 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
3965-120900
1835 return 0;
executed 3965 times by 7 tests: return 0;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
3965
1836 sx = S->x;-
1837 sxe = sx + --n;-
1838 bx = b->x;-
1839 bxe = bx + n;-
1840 q = *bxe / (*sxe + 1); /* ensure q <= true quotient */-
1841#ifdef BSD_QDTOA_DEBUG-
1842 /*debug*/ if (q > 9)-
1843 /*debug*/ Bug("oversized quotient in quorem");-
1844#endif-
1845 if (q) {
qDescription
TRUEevaluated 111100 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 9800 times by 7 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
9800-111100
1846 borrow = 0;-
1847 carry = 0;-
1848 do {-
1849#ifdef Pack_32-
1850 si = *sx++;-
1851 ys = (si & 0xffff) * q + carry;-
1852 zs = (si >> 16) * q + (ys >> 16);-
1853 carry = zs >> 16;-
1854 y = (*bx & 0xffff) - (ys & 0xffff) + borrow;-
1855 borrow = y >> 16;-
1856 Sign_Extend(borrow, y);-
1857 z = (*bx >> 16) - (zs & 0xffff) + borrow;-
1858 borrow = z >> 16;-
1859 Sign_Extend(borrow, z);-
1860 Storeinc(bx, z, y);-
1861#else-
1862 ys = *sx++ * q + carry;-
1863 carry = ys >> 16;-
1864 y = *bx - (ys & 0xffff) + borrow;-
1865 borrow = y >> 16;-
1866 Sign_Extend(borrow, y);-
1867 *bx++ = y & 0xffff;-
1868#endif-
1869 }
executed 900570 times by 11 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
900570
1870 while(sx <= sxe);
sx <= sxeDescription
TRUEevaluated 789470 times by 9 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 111100 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
111100-789470
1871 if (!*bxe) {
!*bxeDescription
TRUEnever evaluated
FALSEevaluated 111100 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
0-111100
1872 bx = b->x;-
1873 while(--bxe > bx && !*bxe)
--bxe > bxDescription
TRUEnever evaluated
FALSEnever evaluated
!*bxeDescription
TRUEnever evaluated
FALSEnever evaluated
0
1874 --n;
never executed: --n;
0
1875 b->wds = n;-
1876 }
never executed: end of block
0
1877 }
executed 111100 times by 11 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
111100
1878 if (cmp(b, S) >= 0) {
cmp(b, S) >= 0Description
TRUEevaluated 592 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 120308 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
592-120308
1879 q++;-
1880 borrow = 0;-
1881 carry = 0;-
1882 bx = b->x;-
1883 sx = S->x;-
1884 do {-
1885#ifdef Pack_32-
1886 si = *sx++;-
1887 ys = (si & 0xffff) + carry;-
1888 zs = (si >> 16) + (ys >> 16);-
1889 carry = zs >> 16;-
1890 y = (*bx & 0xffff) - (ys & 0xffff) + borrow;-
1891 borrow = y >> 16;-
1892 Sign_Extend(borrow, y);-
1893 z = (*bx >> 16) - (zs & 0xffff) + borrow;-
1894 borrow = z >> 16;-
1895 Sign_Extend(borrow, z);-
1896 Storeinc(bx, z, y);-
1897#else-
1898 ys = *sx++ + carry;-
1899 carry = ys >> 16;-
1900 y = *bx - (ys & 0xffff) + borrow;-
1901 borrow = y >> 16;-
1902 Sign_Extend(borrow, y);-
1903 *bx++ = y & 0xffff;-
1904#endif-
1905 }
executed 2783 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
2783
1906 while(sx <= sxe);
sx <= sxeDescription
TRUEevaluated 2191 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 592 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
592-2191
1907 bx = b->x;-
1908 bxe = bx + n;-
1909 if (!*bxe) {
!*bxeDescription
TRUEevaluated 592 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
FALSEnever evaluated
0-592
1910 while(--bxe > bx && !*bxe)
--bxe > bxDescription
TRUEevaluated 1603 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
FALSEevaluated 592 times by 7 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
!*bxeDescription
TRUEevaluated 1603 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
FALSEnever evaluated
0-1603
1911 --n;
executed 1603 times by 3 tests: --n;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
1603
1912 b->wds = n;-
1913 }
executed 592 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
592
1914 }
executed 592 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
592
1915 return q;
executed 120900 times by 11 tests: return q;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
120900
1916}-
1917-
1918/* dtoa for IEEE arithmetic (dmg): convert double to ASCII string.-
1919 *-
1920 * Inspired by "How to Print Floating-Point Numbers Accurately" by-
1921 * Guy L. Steele, Jr. and Jon L. White [Proc. ACM SIGPLAN '90, pp. 92-101].-
1922 *-
1923 * Modifications:-
1924 * 1. Rather than iterating, we use a simple numeric overestimate-
1925 * to determine k = floor(log10(d)). We scale relevant-
1926 * quantities using O(log2(k)) rather than O(k) multiplications.-
1927 * 2. For some modes > 2 (corresponding to ecvt and fcvt), we don't-
1928 * try to generate digits strictly left to right. Instead, we-
1929 * compute with fewer bits and propagate the carry if necessary-
1930 * when rounding the final digit up. This is often faster.-
1931 * 3. Under the assumption that input will be rounded nearest,-
1932 * mode 0 renders 1e23 as 1e23 rather than 9.999999999999999e22.-
1933 * That is, we allow equality in stopping tests when the-
1934 * round-nearest rule will give the same floating-point value-
1935 * as would satisfaction of the stopping test with strict-
1936 * inequality.-
1937 * 4. We remove common factors of powers of 2 from relevant-
1938 * quantities.-
1939 * 5. When converting floating-point integers less than 1e16,-
1940 * we use floating-point arithmetic rather than resorting-
1941 * to multiple-precision integers.-
1942 * 6. When asked to produce fewer than 15 digits, we first try-
1943 * to get by with floating-point arithmetic; we resort to-
1944 * multiple-precision integer arithmetic only if we cannot-
1945 * guarantee that the floating-point calculation has given-
1946 * the correctly rounded result. For k requested digits and-
1947 * "uniformly" distributed input, the probability is-
1948 * something like 10^(k-15) that we must resort to the Long-
1949 * calculation.-
1950 */-
1951-
1952#if defined(Q_OS_WIN) && defined (Q_CC_GNU) && !defined(_clear87) // See QTBUG-7576-
1953extern "C" {-
1954__attribute__ ((dllimport)) unsigned int __cdecl __MINGW_NOTHROW _control87 (unsigned int unNew, unsigned int unMask);-
1955__attribute__ ((dllimport)) unsigned int __cdecl __MINGW_NOTHROW _clearfp (void); /* Clear the FPU status word */-
1956}-
1957# define _clear87 _clearfp-
1958#endif-
1959-
1960/* This actually sometimes returns a pointer to a string literal-
1961 cast to a char*. Do NOT try to modify the return value. */-
1962-
1963Q_CORE_EXPORT char *qdtoa ( double d, int mode, int ndigits, int *decpt, int *sign, char **rve, char **resultp)-
1964{-
1965 // Some values of the floating-point control word can cause _qdtoa to crash with an underflow.-
1966 // We set a safe value here.-
1967#ifdef Q_OS_WIN-
1968 _clear87();-
1969 unsigned int oldbits = _control87(0, 0);-
1970#ifndef MCW_EM-
1971# ifdef _MCW_EM-
1972# define MCW_EM _MCW_EM-
1973# else-
1974# define MCW_EM 0x0008001F-
1975# endif-
1976#endif-
1977 _control87(MCW_EM, MCW_EM);-
1978#endif-
1979-
1980#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)-
1981 fenv_t envp;-
1982 feholdexcept(&envp);-
1983#endif-
1984-
1985 char *s = _qdtoa(d, mode, ndigits, decpt, sign, rve, resultp);-
1986-
1987#ifdef Q_OS_WIN-
1988 _clear87();-
1989#ifndef _M_X64-
1990 _control87(oldbits, 0xFFFFF);-
1991#else-
1992# ifndef _MCW_EM // Potentially missing on MinGW-
1993# define _MCW_EM 0x0008001f-
1994# endif-
1995# ifndef _MCW_RC-
1996# define _MCW_RC 0x00000300-
1997# endif-
1998# ifndef _MCW_DN-
1999# define _MCW_DN 0x03000000-
2000# endif-
2001 _control87(oldbits, _MCW_EM|_MCW_DN|_MCW_RC);-
2002#endif //_M_X64-
2003#endif //Q_OS_WIN-
2004-
2005#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)-
2006 fesetenv(&envp);-
2007#endif-
2008-
2009 return s;
executed 109846 times by 55 tests: return s;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
109846
2010}-
2011-
2012static char *_qdtoa( NEEDS_VOLATILE double d, int mode, int ndigits, int *decpt, int *sign, char **rve, char **resultp)-
2013{-
2014 /*-
2015 Arguments ndigits, decpt, sign are similar to those-
2016 of ecvt and fcvt; trailing zeros are suppressed from-
2017 the returned string. If not null, *rve is set to point-
2018 to the end of the return value. If d is +-Infinity or NaN,-
2019 then *decpt is set to 9999.-
2020-
2021 mode:-
2022 0 ==> shortest string that yields d when read in-
2023 and rounded to nearest.-
2024 1 ==> like 0, but with Steele & White stopping rule;-
2025 e.g. with IEEE P754 arithmetic , mode 0 gives-
2026 1e23 whereas mode 1 gives 9.999999999999999e22.-
2027 2 ==> max(1,ndigits) significant digits. This gives a-
2028 return value similar to that of ecvt, except-
2029 that trailing zeros are suppressed.-
2030 3 ==> through ndigits past the decimal point. This-
2031 gives a return value similar to that from fcvt,-
2032 except that trailing zeros are suppressed, and-
2033 ndigits can be negative.-
2034 4-9 should give the same return values as 2-3, i.e.,-
2035 4 <= mode <= 9 ==> same return as mode-
2036 2 + (mode & 1). These modes are mainly for-
2037 debugging; often they run slower but sometimes-
2038 faster than modes 2-3.-
2039 4,5,8,9 ==> left-to-right digit generation.-
2040 6-9 ==> don't try fast floating-point estimate-
2041 (if applicable).-
2042-
2043 Values of mode other than 0-9 are treated as mode 0.-
2044-
2045 Sufficient space is allocated to the return value-
2046 to hold the suppressed trailing zeros.-
2047 */-
2048-
2049 int bbits, b2, b5, be, dig, i, ieps, ilim0,-
2050 j, j1, k, k0, k_check, leftright, m2, m5, s2, s5,-
2051 try_quick;-
2052 int ilim = 0, ilim1 = 0, spec_case = 0; /* pacify gcc */-
2053 Long L;-
2054#ifndef Sudden_Underflow-
2055 int denorm;-
2056 ULong x;-
2057#endif-
2058 Bigint *b, *b1, *delta, *mhi, *S;-
2059 Bigint *mlo = NULL; /* pacify gcc */-
2060 double d2;-
2061 double ds, eps;-
2062 char *s, *s0;-
2063-
2064 if (getWord0(d) & Sign_bit) {
getWord0(d) & 0x80000000Description
TRUEevaluated 22157 times by 15 tests
Evaluated by:
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 87689 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
22157-87689
2065 /* set sign for everything, including 0's and NaNs */-
2066 *sign = 1;-
2067 setWord0(&d, getWord0(d) & ~Sign_bit); /* clear sign bit */-
2068 }
executed 22157 times by 15 tests: end of block
Executed by:
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QVariant
22157
2069 else-
2070 *sign = 0;
executed 87689 times by 55 tests: *sign = 0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
87689
2071-
2072#if defined(IEEE_Arith) + defined(VAX)-
2073#ifdef IEEE_Arith-
2074 if ((getWord0(d) & Exp_mask) == Exp_mask)
(getWord0(d) &... == 0x7ff00000Description
TRUEnever evaluated
FALSEevaluated 109846 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
0-109846
2075#else-
2076 if (getWord0(d) == 0x8000)-
2077#endif-
2078 {-
2079 /* Infinity or NaN */-
2080 *decpt = 9999;-
2081 s =-
2082#ifdef IEEE_Arith-
2083 !getWord1(d) && !(getWord0(d) & 0xfffff) ? const_cast<char*>("Infinity") :
!getWord1(d)Description
TRUEnever evaluated
FALSEnever evaluated
!(getWord0(d) & 0xfffff)Description
TRUEnever evaluated
FALSEnever evaluated
0
2084#endif-
2085 const_cast<char*>("NaN");-
2086 if (rve)
rveDescription
TRUEnever evaluated
FALSEnever evaluated
0
2087 *rve =
never executed: *rve = s[3] ? s + 8 : s + 3;
0
2088#ifdef IEEE_Arith
never executed: *rve = s[3] ? s + 8 : s + 3;
0
2089 s[3] ? s + 8 :
never executed: *rve = s[3] ? s + 8 : s + 3;
s[3]Description
TRUEnever evaluated
FALSEnever evaluated
0
2090#endif
never executed: *rve = s[3] ? s + 8 : s + 3;
0
2091 s + 3;
never executed: *rve = s[3] ? s + 8 : s + 3;
0
2092 return s;
never executed: return s;
0
2093 }-
2094#endif-
2095#ifdef IBM-
2096 d += 0; /* normalize */-
2097#endif-
2098 if (d == g_double_zero)
d == g_double_zeroDescription
TRUEevaluated 38418 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDoubleSpinBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
38418-71428
2099 {-
2100 *decpt = 1;-
2101 s = const_cast<char*>("0");-
2102 if (rve)
rveDescription
TRUEevaluated 38418 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDoubleSpinBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
  • tst_selftests - unknown status
FALSEnever evaluated
0-38418
2103 *rve = s + 1;
executed 38418 times by 24 tests: *rve = s + 1;
Executed by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDoubleSpinBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
  • tst_selftests - unknown status
38418
2104 return s;
executed 38418 times by 24 tests: return s;
Executed by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDoubleSpinBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
  • tst_selftests - unknown status
38418
2105 }-
2106-
2107 b = d2b(d, &be, &bbits);-
2108 i = (int)(getWord0(d) >> Exp_shift1 & (Exp_mask>>Exp_shift1));-
2109#ifndef Sudden_Underflow-
2110 if (i != 0) {
i != 0Description
TRUEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEnever evaluated
0-71428
2111#endif-
2112 d2 = d;-
2113 setWord0(&d2, getWord0(d2) & Frac_mask1);-
2114 setWord0(&d2, getWord0(d2) | Exp_11);-
2115#ifdef IBM-
2116 if (j = 11 - hi0bits(getWord0(d2) & Frac_mask))-
2117 d2 /= 1 << j;-
2118#endif-
2119-
2120 /* log(x) ~=~ log(1.5) + (x-1.5)/1.5-
2121 * log10(x) = log(x) / log(10)-
2122 * ~=~ log(1.5)/log(10) + (x-1.5)/(1.5*log(10))-
2123 * log10(d) = (i-Bias)*log(2)/log(10) + log10(d2)-
2124 *-
2125 * This suggests computing an approximation k to log10(d) by-
2126 *-
2127 * k = (i - Bias)*0.301029995663981-
2128 * + ( (d2-1.5)*0.289529654602168 + 0.176091259055681 );-
2129 *-
2130 * We want k to be too large rather than too small.-
2131 * The error in the first-order Taylor series approximation-
2132 * is in our favor, so we just round up the constant enough-
2133 * to compensate for any error in the multiplication of-
2134 * (i - Bias) by 0.301029995663981; since |i - Bias| <= 1077,-
2135 * and 1077 * 0.30103 * 2^-52 ~=~ 7.2e-14,-
2136 * adding 1e-13 to the constant term more than suffices.-
2137 * Hence we adjust the constant term to 0.1760912590558.-
2138 * (We could get a more accurate k by invoking log10,-
2139 * but this is probably not worthwhile.)-
2140 */-
2141-
2142 i -= Bias;-
2143#ifdef IBM-
2144 i <<= 2;-
2145 i += j;-
2146#endif-
2147#ifndef Sudden_Underflow-
2148 denorm = 0;-
2149 }
executed 71428 times by 53 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
71428
2150 else {-
2151 /* d is denormalized */-
2152-
2153 i = bbits + be + (Bias + (P-1) - 1);-
2154 x = i > 32 ? getWord0(d) << (64 - i) | getWord1(d) >> (i - 32)
i > 32Description
TRUEnever evaluated
FALSEnever evaluated
0
2155 : getWord1(d) << (32 - i);-
2156 d2 = x;-
2157 setWord0(&d2, getWord0(d2) - 31*Exp_msk1); /* adjust exponent */-
2158 i -= (Bias + (P-1) - 1) + 1;-
2159 denorm = 1;-
2160 }
never executed: end of block
0
2161#endif-
2162 ds = (d2-1.5)*0.289529654602168 + 0.1760912590558 + i*0.301029995663981;-
2163 k = int(ds);-
2164 if (ds < 0. && ds != k)
ds < 0.Description
TRUEevaluated 47424 times by 14 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
FALSEevaluated 24004 times by 52 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
ds != kDescription
TRUEevaluated 47424 times by 14 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
FALSEnever evaluated
0-47424
2165 k--; /* want k = floor(ds) */
executed 47424 times by 14 tests: k--;
Executed by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
47424
2166 k_check = 1;-
2167 if (k >= 0 && k <= Ten_pmax) {
k >= 0Description
TRUEevaluated 24004 times by 52 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEevaluated 47424 times by 14 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
k <= 22Description
TRUEevaluated 22393 times by 51 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEevaluated 1611 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
1611-47424
2168 if (d < tens[k])
d < tens[k]Description
TRUEevaluated 3288 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_qmakelib
FALSEevaluated 19105 times by 49 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • ...
3288-19105
2169 k--;
executed 3288 times by 7 tests: k--;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_qmakelib
3288
2170 k_check = 0;-
2171 }
executed 22393 times by 51 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
22393
2172 j = bbits - i - 1;-
2173 if (j >= 0) {
j >= 0Description
TRUEevaluated 67654 times by 46 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • ...
FALSEevaluated 3774 times by 31 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • ...
3774-67654
2174 b2 = 0;-
2175 s2 = j;-
2176 }
executed 67654 times by 46 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • ...
67654
2177 else {-
2178 b2 = -j;-
2179 s2 = 0;-
2180 }
executed 3774 times by 31 tests: end of block
Executed by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • ...
3774
2181 if (k >= 0) {
k >= 0Description
TRUEevaluated 20880 times by 52 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEevaluated 50548 times by 14 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
20880-50548
2182 b5 = 0;-
2183 s5 = k;-
2184 s2 += k;-
2185 }
executed 20880 times by 52 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
20880
2186 else {-
2187 b2 -= k;-
2188 b5 = -k;-
2189 s5 = 0;-
2190 }
executed 50548 times by 14 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QTreeWidget
50548
2191 if (mode < 0 || mode > 9)
mode < 0Description
TRUEnever evaluated
FALSEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
mode > 9Description
TRUEnever evaluated
FALSEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
0-71428
2192 mode = 0;
never executed: mode = 0;
0
2193 try_quick = 1;-
2194 if (mode > 5) {
mode > 5Description
TRUEnever evaluated
FALSEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
0-71428
2195 mode -= 4;-
2196 try_quick = 0;-
2197 }
never executed: end of block
0
2198 leftright = 1;-
2199 switch(mode) {-
2200 case 0:
never executed: case 0:
0
2201 case 1:
never executed: case 1:
0
2202 ilim = ilim1 = -1;-
2203 i = 18;-
2204 ndigits = 0;-
2205 break;
never executed: break;
0
2206 case 2:
executed 69690 times by 41 tests: case 2:
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • ...
69690
2207 leftright = 0;-
2208 /* no break */-
2209 case 4:
code before this statement executed 69690 times by 41 tests: case 4:
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • ...
never executed: case 4:
0-69690
2210 if (ndigits <= 0)
ndigits <= 0Description
TRUEevaluated 1681 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 68009 times by 41 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • ...
1681-68009
2211 ndigits = 1;
executed 1681 times by 2 tests: ndigits = 1;
Executed by:
  • tst_QString
  • tst_QTextStream
1681
2212 ilim = ilim1 = i = ndigits;-
2213 break;
executed 69690 times by 41 tests: break;
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • ...
69690
2214 case 3:
executed 1738 times by 20 tests: case 3:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
1738
2215 leftright = 0;-
2216 /* no break */-
2217 case 5:
code before this statement executed 1738 times by 20 tests: case 5:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
never executed: case 5:
0-1738
2218 i = ndigits + k + 1;-
2219 ilim = i;-
2220 ilim1 = i - 1;-
2221 if (i <= 0)
i <= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 1736 times by 20 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
2-1736
2222 i = 1;
executed 2 times by 1 test: i = 1;
Executed by:
  • tst_QDoubleSpinBox
2
2223 }
executed 1738 times by 20 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
1738
2224 QT_TRY {-
2225 *resultp = static_cast<char *>(malloc(i + 1));-
2226 Q_CHECK_PTR(*resultp);
never executed: qBadAlloc();
!(*resultp)Description
TRUEnever evaluated
FALSEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
0-71428
2227 } QT_CATCH(...) {
executed 71428 times by 53 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
71428
2228 Bfree(b);-
2229 QT_RETHROW;
never executed: throw;
0
2230 }-
2231 s = s0 = *resultp;-
2232-
2233 if (ilim >= 0 && ilim <= Quick_max && try_quick) {
ilim >= 0Description
TRUEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEnever evaluated
ilim <= 14Description
TRUEevaluated 68746 times by 45 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • ...
FALSEevaluated 2682 times by 18 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
try_quickDescription
TRUEevaluated 68746 times by 45 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • ...
FALSEnever evaluated
0-71428
2234-
2235 /* Try to get by with floating-point arithmetic. */-
2236-
2237 i = 0;-
2238 d2 = d;-
2239 k0 = k;-
2240 ilim0 = ilim;-
2241 ieps = 2; /* conservative */-
2242 if (k > 0) {
k > 0Description
TRUEevaluated 3325 times by 36 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • ...
FALSEevaluated 65421 times by 35 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • ...
3325-65421
2243 ds = tens[k&0xf];-
2244 j = k >> 4;-
2245 if (j & Bletch) {
j & 0x10Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 3133 times by 36 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • ...
192-3133
2246 /* prevent overflows */-
2247 j &= Bletch - 1;-
2248 d /= bigtens[n_bigtens-1];-
2249 ieps++;-
2250 }
executed 192 times by 1 test: end of block
Executed by:
  • tst_QString
192
2251 for(; j; j >>= 1, i++)
jDescription
TRUEevaluated 3072 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 3325 times by 36 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • ...
3072-3325
2252 if (j & 1) {
j & 1Description
TRUEevaluated 2112 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 960 times by 1 test
Evaluated by:
  • tst_QString
960-2112
2253 ieps++;-
2254 ds *= bigtens[i];-
2255 }
executed 2112 times by 1 test: end of block
Executed by:
  • tst_QString
2112
2256 d /= ds;-
2257 }
executed 3325 times by 36 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • ...
3325
2258 else if ((j1 = -k) != 0) {
(j1 = -k) != 0Description
TRUEevaluated 49389 times by 13 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
FALSEevaluated 16032 times by 35 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • ...
16032-49389
2259 d *= tens[j1 & 0xf];-
2260 for(j = j1 >> 4; j; j >>= 1, i++)
jDescription
TRUEevaluated 3840 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 49389 times by 13 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
3840-49389
2261 if (j & 1) {
j & 1Description
TRUEevaluated 2496 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1344 times by 1 test
Evaluated by:
  • tst_QString
1344-2496
2262 ieps++;-
2263 d *= bigtens[i];-
2264 }
executed 2496 times by 1 test: end of block
Executed by:
  • tst_QString
2496
2265 }
executed 49389 times by 13 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
49389
2266 if (k_check && d < 1. && ilim > 0) {
k_checkDescription
TRUEevaluated 47481 times by 13 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
FALSEevaluated 21265 times by 45 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • ...
d < 1.Description
TRUEevaluated 3920 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
FALSEevaluated 43561 times by 12 tests
Evaluated by:
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
ilim > 0Description
TRUEevaluated 3920 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
FALSEnever evaluated
0-47481
2267 if (ilim1 <= 0)
ilim1 <= 0Description
TRUEnever evaluated
FALSEevaluated 3920 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
0-3920
2268 goto fast_failed;
never executed: goto fast_failed;
0
2269 ilim = ilim1;-
2270 k--;-
2271 d *= 10.;-
2272 ieps++;-
2273 }
executed 3920 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
3920
2274 eps = ieps*d + 7.;-
2275 setWord0(&eps, getWord0(eps) - (P-1)*Exp_msk1);-
2276 if (ilim == 0) {
ilim == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 68744 times by 45 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • ...
2-68744
2277 S = mhi = 0;-
2278 d -= 5.;-
2279 if (d > eps)
d > epsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
0-2
2280 goto one_digit;
never executed: goto one_digit;
0
2281 if (d < -eps)
d < -epsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEnever evaluated
0-2
2282 goto no_digits;
executed 2 times by 1 test: goto no_digits;
Executed by:
  • tst_QDoubleSpinBox
2
2283 goto fast_failed;
never executed: goto fast_failed;
0
2284 }-
2285#ifndef No_leftright-
2286 if (leftright) {
leftrightDescription
TRUEnever evaluated
FALSEevaluated 68744 times by 45 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • ...
0-68744
2287 /* Use Steele & White method of only-
2288 * generating digits needed.-
2289 */-
2290 eps = 0.5/tens[ilim-1] - eps;-
2291 for(i = 0;;) {-
2292 L = Long(d);-
2293 d -= L;-
2294 *s++ = '0' + int(L);-
2295 if (d < eps)
d < epsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2296 goto ret1;
never executed: goto ret1;
0
2297 if (1. - d < eps)
1. - d < epsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2298 goto bump_up;
never executed: goto bump_up;
0
2299 if (++i >= ilim)
++i >= ilimDescription
TRUEnever evaluated
FALSEnever evaluated
0
2300 break;
never executed: break;
0
2301 eps *= 10.;-
2302 d *= 10.;-
2303 }
never executed: end of block
0
2304 }
never executed: end of block
0
2305 else {-
2306#endif-
2307 /* Generate ilim digits, then fix them up. */-
2308 eps *= tens[ilim-1];-
2309 for(i = 1;; i++, d *= 10.) {-
2310 L = Long(d);-
2311 d -= L;-
2312 *s++ = '0' + int(L);-
2313 if (i == ilim) {
i == ilimDescription
TRUEevaluated 68744 times by 45 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • ...
FALSEevaluated 319237 times by 44 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
68744-319237
2314 if (d > 0.5 + eps)
d > 0.5 + epsDescription
TRUEevaluated 27251 times by 27 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • ...
FALSEevaluated 41493 times by 41 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
27251-41493
2315 goto bump_up;
executed 27251 times by 27 tests: goto bump_up;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • ...
27251
2316 else if (d < 0.5 - eps) {
d < 0.5 - epsDescription
TRUEevaluated 41491 times by 41 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
2-41491
2317 while(*--s == '0') {}
executed 81744 times by 34 tests: end of block
Executed by:
  • tst_QBrush
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • ...
*--s == '0'Description
TRUEevaluated 81744 times by 34 tests
Evaluated by:
  • tst_QBrush
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • ...
FALSEevaluated 41491 times by 41 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
41491-81744
2318 s++;-
2319 goto ret1;
executed 41491 times by 41 tests: goto ret1;
Executed by:
  • tst_QBrush
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • ...
41491
2320 }-
2321 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QDoubleSpinBox
2
2322 }-
2323 }
executed 319237 times by 44 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • ...
319237
2324#ifndef No_leftright-
2325 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDoubleSpinBox
2
2326#endif-
2327 fast_failed:
code before this statement executed 2 times by 1 test: fast_failed:
Executed by:
  • tst_QDoubleSpinBox
2
2328 s = s0;-
2329 d = d2;-
2330 k = k0;-
2331 ilim = ilim0;-
2332 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDoubleSpinBox
2
2333-
2334 /* Do we have a "small" integer? */-
2335-
2336 if (be >= 0 && k <= Int_max) {
be >= 0Description
TRUEevaluated 893 times by 13 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 1791 times by 9 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
k <= 14Description
TRUEevaluated 434 times by 12 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 459 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
434-1791
2337 /* Yes. */-
2338 ds = tens[k];-
2339 if (ndigits < 0 && ilim <= 0) {
ndigits < 0Description
TRUEnever evaluated
FALSEevaluated 434 times by 12 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QVariant
  • tst_selftests - unknown status
ilim <= 0Description
TRUEnever evaluated
FALSEnever evaluated
0-434
2340 S = mhi = 0;-
2341 if (ilim < 0 || d <= 5*ds)
ilim < 0Description
TRUEnever evaluated
FALSEnever evaluated
d <= 5*dsDescription
TRUEnever evaluated
FALSEnever evaluated
0
2342 goto no_digits;
never executed: goto no_digits;
0
2343 goto one_digit;
never executed: goto one_digit;
0
2344 }-
2345 for(i = 1;; i++) {-
2346 L = Long(d / ds);-
2347 d -= L*ds;-
2348#ifdef Check_FLT_ROUNDS-
2349 /* If FLT_ROUNDS == 2, L will usually be high by 1 */-
2350 if (d < 0) {-
2351 L--;-
2352 d += ds;-
2353 }-
2354#endif-
2355 *s++ = '0' + int(L);-
2356 if (i == ilim) {
i == ilimDescription
TRUEnever evaluated
FALSEevaluated 483 times by 12 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QVariant
  • tst_selftests - unknown status
0-483
2357 d += d;-
2358 if (d > ds || (d == ds && L & 1)) {
d > dsDescription
TRUEnever evaluated
FALSEnever evaluated
d == dsDescription
TRUEnever evaluated
FALSEnever evaluated
L & 1Description
TRUEnever evaluated
FALSEnever evaluated
0
2359 bump_up:-
2360 while(*--s == '9')
*--s == '9'Description
TRUEevaluated 20374 times by 22 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
FALSEevaluated 23695 times by 27 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • ...
20374-23695
2361 if (s == s0) {
s == s0Description
TRUEevaluated 3556 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QString
FALSEevaluated 16818 times by 22 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
3556-16818
2362 k++;-
2363 *s = '0';-
2364 break;
executed 3556 times by 4 tests: break;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QString
3556
2365 }-
2366 ++*s++;-
2367 }
executed 27251 times by 27 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • ...
27251
2368 break;
executed 27251 times by 27 tests: break;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QToolButton
  • ...
27251
2369 }-
2370 if ((d *= 10.) == g_double_zero)
(d *= 10.) == g_double_zeroDescription
TRUEevaluated 434 times by 12 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 49 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QPropertyAnimation
  • tst_QTextDocumentFragment
  • tst_selftests - unknown status
49-434
2371 break;
executed 434 times by 12 tests: break;
Executed by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QVariant
  • tst_selftests - unknown status
434
2372 }
executed 49 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QPropertyAnimation
  • tst_QTextDocumentFragment
  • tst_selftests - unknown status
49
2373 goto ret1;
executed 27685 times by 35 tests: goto ret1;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • ...
27685
2374 }-
2375-
2376 m2 = b2;-
2377 m5 = b5;-
2378 mhi = mlo = 0;-
2379 if (leftright) {
leftrightDescription
TRUEnever evaluated
FALSEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
0-2250
2380 if (mode < 2) {
mode < 2Description
TRUEnever evaluated
FALSEnever evaluated
0
2381 i =-
2382#ifndef Sudden_Underflow-
2383 denorm ? be + (Bias + (P-1) - 1 + 1) :
denormDescription
TRUEnever evaluated
FALSEnever evaluated
0
2384#endif-
2385#ifdef IBM-
2386 1 + 4*P - 3 - bbits + ((bbits + be - 1) & 3);-
2387#else-
2388 1 + P - bbits;-
2389#endif-
2390 }
never executed: end of block
0
2391 else {-
2392 j = ilim - 1;-
2393 if (m5 >= j)
m5 >= jDescription
TRUEnever evaluated
FALSEnever evaluated
0
2394 m5 -= j;
never executed: m5 -= j;
0
2395 else {-
2396 s5 += j -= m5;-
2397 b5 += j;-
2398 m5 = 0;-
2399 }
never executed: end of block
0
2400 if ((i = ilim) < 0) {
(i = ilim) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2401 m2 -= i;-
2402 i = 0;-
2403 }
never executed: end of block
0
2404 }
never executed: end of block
0
2405 b2 += i;-
2406 s2 += i;-
2407 mhi = i2b(1);-
2408 }
never executed: end of block
0
2409 if (m2 > 0 && s2 > 0) {
m2 > 0Description
TRUEevaluated 1618 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
FALSEevaluated 632 times by 8 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QVariant
s2 > 0Description
TRUEevaluated 1618 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
FALSEnever evaluated
0-1618
2410 i = m2 < s2 ? m2 : s2;
m2 < s2Description
TRUEevaluated 1159 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTreeWidget
FALSEevaluated 459 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
459-1159
2411 b2 -= i;-
2412 m2 -= i;-
2413 s2 -= i;-
2414 }
executed 1618 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
1618
2415 if (b5 > 0) {
b5 > 0Description
TRUEevaluated 1159 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTreeWidget
FALSEevaluated 1091 times by 10 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
1091-1159
2416 if (leftright) {
leftrightDescription
TRUEnever evaluated
FALSEevaluated 1159 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTreeWidget
0-1159
2417 if (m5 > 0) {
m5 > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2418 mhi = pow5mult(mhi, m5);-
2419 b1 = mult(mhi, b);-
2420 Bfree(b);-
2421 b = b1;-
2422 }
never executed: end of block
0
2423 if ((j = b5 - m5) != 0)
(j = b5 - m5) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2424 b = pow5mult(b, j);
never executed: b = pow5mult(b, j);
0
2425 }
never executed: end of block
0
2426 else-
2427 b = pow5mult(b, b5);
executed 1159 times by 3 tests: b = pow5mult(b, b5);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTreeWidget
1159
2428 }-
2429 S = i2b(1);-
2430 if (s5 > 0)
s5 > 0Description
TRUEevaluated 625 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 1625 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
625-1625
2431 S = pow5mult(S, s5);
executed 625 times by 6 tests: S = pow5mult(S, s5);
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
625
2432-
2433 /* Check for special case that d is a normalized power of 2. */-
2434-
2435 if (mode < 2) {
mode < 2Description
TRUEnever evaluated
FALSEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
0-2250
2436 if (!getWord1(d) && !(getWord0(d) & Bndry_mask)
!getWord1(d)Description
TRUEnever evaluated
FALSEnever evaluated
!(getWord0(d) & 0xfffff)Description
TRUEnever evaluated
FALSEnever evaluated
0
2437#ifndef Sudden_Underflow-
2438 && getWord0(d) & Exp_mask
getWord0(d) & 0x7ff00000Description
TRUEnever evaluated
FALSEnever evaluated
0
2439#endif-
2440 ) {-
2441 /* The special case */-
2442 b2 += Log2P;-
2443 s2 += Log2P;-
2444 spec_case = 1;-
2445 }
never executed: end of block
0
2446 else-
2447 spec_case = 0;
never executed: spec_case = 0;
0
2448 }-
2449-
2450 /* Arrange for convenient computation of quotients:-
2451 * shift left if necessary so divisor has 4 leading 0 bits.-
2452 *-
2453 * Perhaps we should just compute leading 28 bits of S once-
2454 * and for all and pass them and a shift to quorem, so it-
2455 * can do shifts and ors to compute the numerator for q.-
2456 */-
2457#ifdef Pack_32-
2458 if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0x1f) != 0)
(i = ((s5 ? 32...) & 0x1f) != 0Description
TRUEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEnever evaluated
s5Description
TRUEevaluated 625 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 1625 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTreeWidget
  • tst_QVariant
0-2250
2459 i = 32 - i;
executed 2250 times by 11 tests: i = 32 - i;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2250
2460#else-
2461 if (i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0xf)-
2462 i = 16 - i;-
2463#endif-
2464 if (i > 4) {
i > 4Description
TRUEevaluated 2122 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 128 times by 1 test
Evaluated by:
  • tst_QString
128-2122
2465 i -= 4;-
2466 b2 += i;-
2467 m2 += i;-
2468 s2 += i;-
2469 }
executed 2122 times by 11 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2122
2470 else if (i < 4) {
i < 4Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QString
64
2471 i += 28;-
2472 b2 += i;-
2473 m2 += i;-
2474 s2 += i;-
2475 }
executed 64 times by 1 test: end of block
Executed by:
  • tst_QString
64
2476 if (b2 > 0)
b2 > 0Description
TRUEevaluated 2186 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QString
64-2186
2477 b = lshift(b, b2);
executed 2186 times by 11 tests: b = lshift(b, b2);
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2186
2478 if (s2 > 0)
s2 > 0Description
TRUEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEnever evaluated
0-2250
2479 S = lshift(S, s2);
executed 2250 times by 11 tests: S = lshift(S, s2);
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2250
2480 if (k_check) {
k_checkDescription
TRUEevaluated 1554 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
FALSEevaluated 696 times by 8 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QVariant
696-1554
2481 if (cmp(b,S) < 0) {
cmp(b,S) < 0Description
TRUEevaluated 512 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1042 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
512-1042
2482 k--;-
2483 b = multadd(b, 10, 0); /* we botched the k estimate */-
2484 if (leftright)
leftrightDescription
TRUEnever evaluated
FALSEevaluated 512 times by 1 test
Evaluated by:
  • tst_QString
0-512
2485 mhi = multadd(mhi, 10, 0);
never executed: mhi = multadd(mhi, 10, 0);
0
2486 ilim = ilim1;-
2487 }
executed 512 times by 1 test: end of block
Executed by:
  • tst_QString
512
2488 }
executed 1554 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
1554
2489 if (ilim <= 0 && mode > 2) {
ilim <= 0Description
TRUEnever evaluated
FALSEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
mode > 2Description
TRUEnever evaluated
FALSEnever evaluated
0-2250
2490 if (ilim < 0 || cmp(b,S = multadd(S,5,0)) <= 0) {
ilim < 0Description
TRUEnever evaluated
FALSEnever evaluated
cmp(b,S = multadd(S,5,0)) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2491 /* no digits, fcvt style */-
2492 no_digits:-
2493 k = -1 - ndigits;-
2494 goto ret;
executed 2 times by 1 test: goto ret;
Executed by:
  • tst_QDoubleSpinBox
2
2495 }-
2496 one_digit:
code before this statement never executed: one_digit:
0
2497 *s++ = '1';-
2498 k++;-
2499 goto ret;
never executed: goto ret;
0
2500 }-
2501 if (leftright) {
leftrightDescription
TRUEnever evaluated
FALSEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
0-2250
2502 if (m2 > 0)
m2 > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2503 mhi = lshift(mhi, m2);
never executed: mhi = lshift(mhi, m2);
0
2504-
2505 /* Compute mlo -- check for special case-
2506 * that d is a normalized power of 2.-
2507 */-
2508-
2509 mlo = mhi;-
2510 if (spec_case) {
spec_caseDescription
TRUEnever evaluated
FALSEnever evaluated
0
2511 mhi = Balloc(mhi->k);-
2512 Bcopy(mhi, mlo);-
2513 mhi = lshift(mhi, Log2P);-
2514 }
never executed: end of block
0
2515-
2516 for(i = 1;;i++) {-
2517 dig = quorem(b,S) + '0';-
2518 /* Do we yet have the shortest decimal string-
2519 * that will round to d?-
2520 */-
2521 j = cmp(b, mlo);-
2522 delta = diff(S, mhi);-
2523 j1 = delta->sign ? 1 : cmp(b, delta);
delta->signDescription
TRUEnever evaluated
FALSEnever evaluated
0
2524 Bfree(delta);-
2525#ifndef ROUND_BIASED-
2526 if (j1 == 0 && !mode && !(getWord1(d) & 1)) {
j1 == 0Description
TRUEnever evaluated
FALSEnever evaluated
!modeDescription
TRUEnever evaluated
FALSEnever evaluated
!(getWord1(d) & 1)Description
TRUEnever evaluated
FALSEnever evaluated
0
2527 if (dig == '9')
dig == '9'Description
TRUEnever evaluated
FALSEnever evaluated
0
2528 goto round_9_up;
never executed: goto round_9_up;
0
2529 if (j > 0)
j > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2530 dig++;
never executed: dig++;
0
2531 *s++ = dig;-
2532 goto ret;
never executed: goto ret;
0
2533 }-
2534#endif-
2535 if (j < 0 || (j == 0 && !mode
j < 0Description
TRUEnever evaluated
FALSEnever evaluated
j == 0Description
TRUEnever evaluated
FALSEnever evaluated
!modeDescription
TRUEnever evaluated
FALSEnever evaluated
0
2536#ifndef ROUND_BIASED-
2537 && !(getWord1(d) & 1)
!(getWord1(d) & 1)Description
TRUEnever evaluated
FALSEnever evaluated
0
2538#endif-
2539 )) {-
2540 if (j1 > 0) {
j1 > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2541 b = lshift(b, 1);-
2542 j1 = cmp(b, S);-
2543 if ((j1 > 0 || (j1 == 0 && dig & 1))
j1 > 0Description
TRUEnever evaluated
FALSEnever evaluated
j1 == 0Description
TRUEnever evaluated
FALSEnever evaluated
dig & 1Description
TRUEnever evaluated
FALSEnever evaluated
0
2544 && dig++ == '9')
dig++ == '9'Description
TRUEnever evaluated
FALSEnever evaluated
0
2545 goto round_9_up;
never executed: goto round_9_up;
0
2546 }
never executed: end of block
0
2547 *s++ = dig;-
2548 goto ret;
never executed: goto ret;
0
2549 }-
2550 if (j1 > 0) {
j1 > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2551 if (dig == '9') { /* possible if i == 1 */
dig == '9'Description
TRUEnever evaluated
FALSEnever evaluated
0
2552 round_9_up:-
2553 *s++ = '9';-
2554 goto roundoff;
never executed: goto roundoff;
0
2555 }-
2556 *s++ = dig + 1;-
2557 goto ret;
never executed: goto ret;
0
2558 }-
2559 *s++ = dig;-
2560 if (i == ilim)
i == ilimDescription
TRUEnever evaluated
FALSEnever evaluated
0
2561 break;
never executed: break;
0
2562 b = multadd(b, 10, 0);-
2563 if (mlo == mhi)
mlo == mhiDescription
TRUEnever evaluated
FALSEnever evaluated
0
2564 mlo = mhi = multadd(mhi, 10, 0);
never executed: mlo = mhi = multadd(mhi, 10, 0);
0
2565 else {-
2566 mlo = multadd(mlo, 10, 0);-
2567 mhi = multadd(mhi, 10, 0);-
2568 }
never executed: end of block
0
2569 }-
2570 }
never executed: end of block
0
2571 else-
2572 for(i = 1;; i++) {-
2573 *s++ = dig = quorem(b,S) + '0';-
2574 if (i >= ilim)
i >= ilimDescription
TRUEevaluated 2250 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 122615 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2250-122615
2575 break;
executed 2250 times by 11 tests: break;
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2250
2576 b = multadd(b, 10, 0);-
2577 }
executed 122615 times by 11 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
122615
2578-
2579 /* Round off last digit */-
2580-
2581 b = lshift(b, 1);-
2582 j = cmp(b, S);-
2583 if (j > 0 || (j == 0 && dig & 1)) {
j > 0Description
TRUEevaluated 900 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
FALSEevaluated 1350 times by 9 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
j == 0Description
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
FALSEevaluated 1284 times by 9 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
dig & 1Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
2-1350
2584 roundoff:-
2585 while(*--s == '9')
*--s == '9'Description
TRUEevaluated 149 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDriver
  • tst_QString
  • tst_QStringRef
FALSEevaluated 964 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
149-964
2586 if (s == s0) {
s == s0Description
TRUEnever evaluated
FALSEevaluated 149 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSqlDriver
  • tst_QString
  • tst_QStringRef
0-149
2587 k++;-
2588 *s++ = '1';-
2589 goto ret;
never executed: goto ret;
0
2590 }-
2591 ++*s++;-
2592 }
executed 964 times by 5 tests: end of block
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
964
2593 else {-
2594 while(*--s == '0') {}
executed 3567 times by 6 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QVariant
*--s == '0'Description
TRUEevaluated 3567 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QString
  • tst_QVariant
FALSEevaluated 1286 times by 9 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
1286-3567
2595 s++;-
2596 }
executed 1286 times by 9 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
1286
2597 ret:
code before this statement executed 2250 times by 11 tests: ret:
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2250
2598 Bfree(S);-
2599 if (mhi) {
mhiDescription
TRUEnever evaluated
FALSEevaluated 2252 times by 11 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
0-2252
2600 if (mlo && mlo != mhi)
mloDescription
TRUEnever evaluated
FALSEnever evaluated
mlo != mhiDescription
TRUEnever evaluated
FALSEnever evaluated
0
2601 Bfree(mlo);
never executed: Bfree(mlo);
0
2602 Bfree(mhi);-
2603 }
never executed: end of block
0
2604 ret1:
code before this statement executed 2252 times by 11 tests: ret1:
Executed by:
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTreeWidget
  • tst_QVariant
2252
2605 Bfree(b);-
2606 if (s == s0) { /* don't return empty string */
s == s0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 71426 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
2-71426
2607 *s++ = '0';-
2608 k = 0;-
2609 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDoubleSpinBox
2
2610 *s = 0;-
2611 *decpt = k + 1;-
2612 if (rve)
rveDescription
TRUEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEnever evaluated
0-71428
2613 *rve = s;
executed 71428 times by 53 tests: *rve = s;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
71428
2614 return s0;
executed 71428 times by 53 tests: return s0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
71428
2615}-
2616-
2617QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9