Skip to content

Commit

Permalink
Included cassert in standalone headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaqa committed Jan 7, 2025
1 parent 6e3362d commit fd395e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#ifndef OPENSMT_RANDOM_H
#define OPENSMT_RANDOM_H

#include <cassert>

namespace opensmt {
// Returns a random float 0 <= x < 1. Seed must never be 0.
static inline double drand(double & seed) {
Expand Down
1 change: 1 addition & 0 deletions src/common/ScopedVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#ifndef OPENSMT_SCOPEDVECTOR_H
#define OPENSMT_SCOPEDVECTOR_H

#include <cassert>
#include <vector>

namespace opensmt {
Expand Down
2 changes: 2 additions & 0 deletions src/common/SplayTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ stored and the comparison function C
#ifndef SPLAY_TREE_H
#define SPLAY_TREE_H

#include <cassert>

template <class T, class C >
class SplayTree
{
Expand Down
2 changes: 2 additions & 0 deletions src/common/numbers/NumberUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#ifndef OPENSMT_NUMBERUTILS_H
#define OPENSMT_NUMBERUTILS_H

#include <cassert>

#include <gmp.h>
#include <gmpxx.h>

Expand Down

0 comments on commit fd395e6

Please sign in to comment.