Skip to content

Commit 38d41c9

Browse files
author
Sonny Martin
committed
Invariant cleanup
1 parent 872f5e5 commit 38d41c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/util/irep.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Author: Daniel Kroening, kroening@kroening.com
1313

1414
#include <ostream>
1515

16-
#include "invariant.h"
1716
#include "string2int.h"
1817
#include "string_hash.h"
1918
#include "irep_hash.h"

src/util/irep.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Author: Daniel Kroening, kroening@kroening.com
1010
#ifndef CPROVER_UTIL_IREP_H
1111
#define CPROVER_UTIL_IREP_H
1212

13-
#include <cassert>
1413
#include <string>
1514
#include <vector>
1615

1716
#include "deprecate.h"
17+
#include "invariant.h"
1818
#include "irep_ids.h"
1919

2020
#define SHARING
@@ -192,7 +192,7 @@ class irept
192192
if(data!=&empty_d)
193193
{
194194
// NOLINTNEXTLINE(build/deprecated)
195-
assert(data->ref_count!=0);
195+
PRECONDITION(data->ref_count != 0);
196196
data->ref_count++;
197197
#ifdef IREP_DEBUG
198198
std::cout << "COPY " << data << " " << data->ref_count << '\n';

0 commit comments

Comments
 (0)