Skip to content

Commit a35adc7

Browse files
committed
Address comments from reviews
Signed-off-by: František Nečas <[email protected]>
1 parent 7c61202 commit a35adc7

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

src/2ls/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ OBJ+= $(CPROVER_DIR)/src/ansi-c/ansi-c$(LIBEXT) \
2727
$(CPROVER_DIR)/src/util/util$(LIBEXT) \
2828
$(CPROVER_DIR)/src/goto-instrument/unwind$(OBJEXT) \
2929
$(CPROVER_DIR)/src/goto-instrument/unwindset$(OBJEXT) \
30-
$(CPROVER_DIR)/src/goto-checker/goto-checker$(LIBEXT) \
30+
$(CPROVER_DIR)/src/goto-checker/goto-checker$(LIBEXT) \
3131
../domains/domains$(LIBEXT) \
3232
../ssa/ssa$(LIBEXT) \
3333
../solver/solver$(LIBEXT) \

src/2ls/cover_goals_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Author: Daniel Kroening, [email protected]
1818
#include "../ssa/local_ssa.h"
1919
#include "../ssa/unwindable_local_ssa.h"
2020
#include "../domains/incremental_solver.h"
21-
#include "types.h"
21+
#include "traces.h"
2222

2323
/// Try to cover some given set of goals incrementally. This can be seen as a
2424
/// heuristic variant of SAT-based set-cover. No minimality guarantee.

src/2ls/summary_checker_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Author: Peter Schrammel
2525
#include <solver/summary_db.h>
2626

2727
#include "cover_goals_ext.h"
28-
#include "types.h"
28+
#include "traces.h"
2929

3030
class graphml_witness_extt;
3131

src/2ls/types.h renamed to src/2ls/traces.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************\
22
3-
Module: Type declarations
3+
Module: GOTO traces
44
55
Author: František Nečas
66
77
\*******************************************************************/
88

99
/// \file
10-
/// Type declarations
10+
/// GOTO traces
1111

1212
#ifndef CPROVER_2LS_2LS_TYPES_H
1313
#define CPROVER_2LS_2LS_TYPES_H

src/domains/template_generator_base.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,10 @@ void template_generator_baset::add_var(
281281
if(var.type().id()==ID_array && options.get_bool_option("arrays"))
282282
{
283283
const array_typet &array_type=to_array_type(var.type());
284+
if(!array_type.size().is_constant())
285+
return;
284286
mp_integer size;
285-
if(array_type.size().is_constant())
286-
to_integer(to_constant_expr(array_type.size()), size);
287+
to_integer(to_constant_expr(array_type.size()), size);
287288
for(mp_integer i=0; i<size; i=i+1)
288289
{
289290
var_specs.push_back(var_spect());

0 commit comments

Comments
 (0)