Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed when translating safe/Arbiter/main.v #6

Open
nianzelee opened this issue Sep 5, 2022 · 2 comments
Open

Assertion failed when translating safe/Arbiter/main.v #6

nianzelee opened this issue Sep 5, 2022 · 2 comments

Comments

@nianzelee
Copy link

Hello,

I ran into an assertion failure when I tried to translate the file safe/Arbiter/main.v by the following command:

./v2c-bin/v2c verilog-c/safe/Arbiter/main.v --module main main.c

The error is:

v2c: /users/rajdeep/cbmc/trunk/src/util/std_expr.h:206: symbol_exprt& to_symbol_expr(exprt&): Assertion `expr.id()==dstring(57, 0) && !expr.has_operands()' failed.
Aborted (core dumped)

I downloaded v2c (version 0.1, accessed 2022-09-05) from this website and the input Verilog file is at commit 0b46ae0. My OS is Ubuntu 20.04.

Could you please let me know how to obtain the translated C file safe/Arbiter/main.c?

Thank you!

@Po-Chun-Chien
Copy link

I tried to compile v2c from the source but did not succeed.

v2c uses cbmc and hw-cbmc as external libraries.

In src/config.inc

CBMC = ~/cbmc/trunk
HW_CBMC= ~/hw-cbmc/trunk

include $(CBMC)/src/config.inc
include $(CBMC)/src/common

CXXFLAGS+=-g

However, v2c does not work with the latest versions of cbmc and hw-cbmc. Could you also provide the versions you used for compilation? Thanks!

@Gary-oak-Star
Copy link

I tried to compile v2c from the source but did not succeed.

v2c uses cbmc and hw-cbmc as external libraries.

In src/config.inc

CBMC = ~/cbmc/trunk
HW_CBMC= ~/hw-cbmc/trunk

include $(CBMC)/src/config.inc
include $(CBMC)/src/common

CXXFLAGS+=-g

However, v2c does not work with the latest versions of cbmc and hw-cbmc. Could you also provide the versions you used for compilation? Thanks!

Hi, did you solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants