@@ -359,15 +359,13 @@ void field_sensitivityt::field_assignments(
359359 goto_symex_statet &state,
360360 const ssa_exprt &lhs,
361361 const exprt &rhs,
362- symex_targett &target,
363- bool allow_pointer_unsoundness) const
362+ symex_targett &target) const
364363{
365364 const exprt lhs_fs = get_fields (ns, state, lhs, false );
366365
367366 if (lhs != lhs_fs)
368367 {
369- field_assignments_rec (
370- ns, state, lhs_fs, rhs, target, allow_pointer_unsoundness);
368+ field_assignments_rec (ns, state, lhs_fs, rhs, target);
371369 // Erase the composite symbol from our working state. Note that we need to
372370 // have it in the propagation table and the value set while doing the field
373371 // assignments, thus we cannot skip putting it in there above.
@@ -388,22 +386,18 @@ void field_sensitivityt::field_assignments(
388386// / \param lhs_fs: expanded symbol
389387// / \param ssa_rhs: right-hand-side value to assign
390388// / \param target: symbolic execution equation store
391- // / \param allow_pointer_unsoundness: allow pointer unsoundness
392389void field_sensitivityt::field_assignments_rec (
393390 const namespacet &ns,
394391 goto_symex_statet &state,
395392 const exprt &lhs_fs,
396393 const exprt &ssa_rhs,
397- symex_targett &target,
398- bool allow_pointer_unsoundness) const
394+ symex_targett &target) const
399395{
400396 if (is_ssa_expr (lhs_fs))
401397 {
402398 const ssa_exprt &l1_lhs = to_ssa_expr (lhs_fs);
403399 const ssa_exprt ssa_lhs =
404- state
405- .assignment (l1_lhs, ssa_rhs, ns, true , true , allow_pointer_unsoundness)
406- .get ();
400+ state.assignment (l1_lhs, ssa_rhs, ns, true , true ).get ();
407401
408402 // do the assignment
409403 target.assignment (
@@ -454,16 +448,10 @@ void field_sensitivityt::field_assignments_rec(
454448 expr_try_dynamic_cast<field_sensitive_ssa_exprt>(member_lhs))
455449 {
456450 field_assignments_rec (
457- ns,
458- state,
459- fs_ssa->get_object_ssa (),
460- member_rhs,
461- target,
462- allow_pointer_unsoundness);
451+ ns, state, fs_ssa->get_object_ssa (), member_rhs, target);
463452 }
464453
465- field_assignments_rec (
466- ns, state, member_lhs, member_rhs, target, allow_pointer_unsoundness);
454+ field_assignments_rec (ns, state, member_lhs, member_rhs, target);
467455 ++fs_it;
468456 }
469457 }
@@ -499,16 +487,10 @@ void field_sensitivityt::field_assignments_rec(
499487 expr_try_dynamic_cast<field_sensitive_ssa_exprt>(member_lhs))
500488 {
501489 field_assignments_rec (
502- ns,
503- state,
504- fs_ssa->get_object_ssa (),
505- member_rhs,
506- target,
507- allow_pointer_unsoundness);
490+ ns, state, fs_ssa->get_object_ssa (), member_rhs, target);
508491 }
509492
510- field_assignments_rec (
511- ns, state, member_lhs, member_rhs, target, allow_pointer_unsoundness);
493+ field_assignments_rec (ns, state, member_lhs, member_rhs, target);
512494 ++fs_it;
513495 }
514496 }
@@ -540,16 +522,10 @@ void field_sensitivityt::field_assignments_rec(
540522 expr_try_dynamic_cast<field_sensitive_ssa_exprt>(index_lhs))
541523 {
542524 field_assignments_rec (
543- ns,
544- state,
545- fs_ssa->get_object_ssa (),
546- index_rhs,
547- target,
548- allow_pointer_unsoundness);
525+ ns, state, fs_ssa->get_object_ssa (), index_rhs, target);
549526 }
550527
551- field_assignments_rec (
552- ns, state, index_lhs, index_rhs, target, allow_pointer_unsoundness);
528+ field_assignments_rec (ns, state, index_lhs, index_rhs, target);
553529 ++fs_it;
554530 }
555531 }
@@ -565,17 +541,10 @@ void field_sensitivityt::field_assignments_rec(
565541 {
566542 if (auto fs_ssa = expr_try_dynamic_cast<field_sensitive_ssa_exprt>(*fs_it))
567543 {
568- field_assignments_rec (
569- ns,
570- state,
571- fs_ssa->get_object_ssa (),
572- op,
573- target,
574- allow_pointer_unsoundness);
544+ field_assignments_rec (ns, state, fs_ssa->get_object_ssa (), op, target);
575545 }
576546
577- field_assignments_rec (
578- ns, state, *fs_it, op, target, allow_pointer_unsoundness);
547+ field_assignments_rec (ns, state, *fs_it, op, target);
579548 ++fs_it;
580549 }
581550 }
0 commit comments