Enabled PIC.
This commit is contained in:
parent
ee80baa0ea
commit
d227cc7f34
@ -18,6 +18,8 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
enable_language(C)
|
enable_language(C)
|
||||||
enable_language(CXX)
|
enable_language(CXX)
|
||||||
|
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE Release)
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@ -41,6 +41,19 @@ TEST(PrimePolynomial, OnlyGeneratesPrimes) {
|
|||||||
<< x << "^2 + " << x << " + 41 is not prime";
|
<< x << "^2 + " << x << " + 41 is not prime";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(PrimePolynomial, OnlyGeneratesPrimes_NoStreaming) {
|
||||||
|
symbolic_unsigned x, y, z;
|
||||||
|
DeepState_Assume(x > 0);
|
||||||
|
unsigned poly = (x * x) + x + 41;
|
||||||
|
DeepState_Assume(y > 1);
|
||||||
|
DeepState_Assume(z > 1);
|
||||||
|
DeepState_Assume(y < poly);
|
||||||
|
DeepState_Assume(z < poly);
|
||||||
|
DeepState_Assert(poly != (y * z));
|
||||||
|
DeepState_Assert(IsPrime(Pump(poly)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
DeepState_InitOptions(argc, argv);
|
DeepState_InitOptions(argc, argv);
|
||||||
return DeepState_Run();
|
return DeepState_Run();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user