We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf0875a + 5323702 commit f84d96bCopy full SHA for f84d96b
src/solvers/refinement/string_constraint_generator_main.cpp
@@ -534,7 +534,12 @@ exprt string_constraint_generatort::add_axioms_for_char_pointer(
534
{
535
exprt char_pointer=args(fun, 1)[0];
536
if(char_pointer.id()==ID_index)
537
- return char_pointer.op0();
+ return typecast_exprt(char_pointer.op0(), fun.type());
538
+ // TODO: It seems reasonable that the result of the function application
539
+ // should match the return type of the function. However it is not
540
+ // clear whether this typecast is properly handled in the string
541
+ // refinement. We need regression tests that use that function.
542
+
543
// TODO: we do not know what to do in the other cases
544
assert(false);
545
return exprt();
0 commit comments