-
Notifications
You must be signed in to change notification settings - Fork 284
Remove unused int concatenation irep_id #4633
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
Conversation
ID_cprover_string_concat_int_func is defined and used once to substitute StringBuffer.append(int), but then never again. As a result, any use of StringBuffer.append(int) will make jbmc crash with invariant violation. This commit removes ID_cprover_string_concat_int_func completely, which makes it possible to define behaviour of StringBuffer.append(int) in Java code.
|
I just put up a PR to try and add this in (#4632). I don't really mind which way we go - in Java or the C++, whichever's easier. |
|
I think removing the |
Implementing it in Java has the advantage that the
I guess they will come one by one. |
|
@JohnDumbell I'd prefer Java, that makes maintenance easier, string solver is already hard to follow for many :-) @allredj Indeed the rest will come later. The reason is that it will be a slightly bigger and more controversial change, due to us not having reliable conversion from double to string anywhere and so we'll need to cut some corners. The int to string should be a non-controversial. |
|
That's cool, I actually agree. Closed my PR. |
Complements this PR on cbmc: diffblue/cbmc#4633
Complements this PR on cbmc: diffblue/cbmc#4633
ID_cprover_string_concat_int_funcis defined and used once to substituteStringBuffer.append(int)Java method call, but then never again. As a result, any use ofStringBuffer.append(int)will make jbmc crash with invariant violation. This commit removesID_cprover_string_concat_int_funccompletely, which makes it possible to define behaviour ofStringBuffer.append(int)in Java code.