[analyzer] Fixed method to get APSInt model
authorMikhail R. Gadelha <mikhail.ramalho@gmail.com>
Thu, 26 Jul 2018 11:17:13 +0000 (11:17 +0000)
committerMikhail R. Gadelha <mikhail.ramalho@gmail.com>
Thu, 26 Jul 2018 11:17:13 +0000 (11:17 +0000)
commit127093129aa049f05594c80f7f4ae09187bb94a8
treea14a1ca19898b2bd4522b0a86809c88e2468fb27
parent4a612d4bf290346ec018a74fd245c8e30ff93de7
[analyzer] Fixed method to get APSInt model

Summary:
This patch replaces the current method of getting an `APSInt` from Z3's model by calling generic API method `getBitvector` instead of `Z3_get_numeral_uint64`.

By calling `getBitvector`, there's no need to handle bitvectors with bit width == 128 separately.

And, as a bonus, clang now compiles correctly with Z3 4.7.1.

Reviewers: NoQ, george.karpenkov

Reviewed By: george.karpenkov

Subscribers: xazax.hun, szepet, a.sidorin

Differential Revision: https://reviews.llvm.org/D49818

llvm-svn: 338020
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTSolver.h
clang/lib/StaticAnalyzer/Core/Z3ConstraintManager.cpp