Skip to content

Commit c3fef70

Browse files
author
thk123
committed
Add a clean configuration for expr2c
This configuration can be used in place of expr2cleanc
1 parent 3a40db1 commit c3fef70

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/ansi-c/expr2c.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ expr2c_configurationt expr2c_configurationt::default_configuration{true,
3636
"TRUE",
3737
"FALSE"};
3838

39+
expr2c_configurationt expr2c_configurationt::clean_configuration{false,
40+
false,
41+
false,
42+
"1",
43+
"0"};
44+
3945
/*
4046
4147
Precedences are as follows. Higher values mean higher precedence.

src/ansi-c/expr2c.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ struct expr2c_configurationt final
5353
/// This prints a human readable C like syntax that closely mirrors the
5454
/// internals of the GOTO program
5555
static expr2c_configurationt default_configuration;
56+
57+
/// This prints compilable C that loses some of the internal details of the
58+
/// GOTO program
59+
static expr2c_configurationt clean_configuration;
5660
};
5761

5862
std::string expr2c(const exprt &expr, const namespacet &ns);

0 commit comments

Comments
 (0)