Add expr test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
06320c8615
commit
e6a694ebcc
1 changed files with 10 additions and 0 deletions
|
@ -118,6 +118,14 @@ static void tst3() {
|
||||||
lean_verify(r1 == r2);
|
lean_verify(r1 == r2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void tst4() {
|
||||||
|
expr f = constant(name("f"));
|
||||||
|
expr a = var(0);
|
||||||
|
for (unsigned i = 0; i < 10000; i++) {
|
||||||
|
a = app({f, a});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
// continue_on_violation(true);
|
// continue_on_violation(true);
|
||||||
std::cout << "sizeof(expr): " << sizeof(expr) << "\n";
|
std::cout << "sizeof(expr): " << sizeof(expr) << "\n";
|
||||||
|
@ -125,5 +133,7 @@ int main() {
|
||||||
tst1();
|
tst1();
|
||||||
tst2();
|
tst2();
|
||||||
tst3();
|
tst3();
|
||||||
|
tst4();
|
||||||
|
std::cout << "done" << "\n";
|
||||||
return has_violations() ? 1 : 0;
|
return has_violations() ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue