@@ -787,16 +787,16 @@ code_blockt &java_bytecode_convert_methodt::get_or_create_block_for_pcrange(
787
787
return this_block;
788
788
789
789
// Find the child code_blockt where the queried range begins:
790
- auto child_iter=this_block.operands ().begin ();
790
+ auto child_iter=this_block.statements ().begin ();
791
791
// Skip any top-of-block declarations;
792
792
// all other children are labelled subblocks.
793
- while (child_iter!=this_block.operands ().end () &&
794
- to_code (* child_iter). get_statement ()==ID_decl)
793
+ while (child_iter!=this_block.statements ().end () &&
794
+ child_iter-> get_statement ()==ID_decl)
795
795
++child_iter;
796
- assert (child_iter!=this_block.operands ().end ());
796
+ assert (child_iter!=this_block.statements ().end ());
797
797
std::advance (child_iter, child_offset);
798
- assert (child_iter!=this_block.operands ().end ());
799
- auto &child_label=to_code_label (to_code ( *child_iter) );
798
+ assert (child_iter!=this_block.statements ().end ());
799
+ auto &child_label=to_code_label (*child_iter);
800
800
auto &child_block=to_code_block (child_label.code ());
801
801
802
802
bool single_child (afterstart==findlim);
@@ -866,15 +866,15 @@ code_blockt &java_bytecode_convert_methodt::get_or_create_block_for_pcrange(
866
866
<< findlim_block_start_address << eom;
867
867
868
868
// Make a new block containing every child of interest:
869
- auto &this_block_children=this_block.operands ();
869
+ auto &this_block_children=this_block.statements ();
870
870
assert (tree.branch .size ()==this_block_children.size ());
871
871
for (auto blockidx=child_offset, blocklim=child_offset+nblocks;
872
872
blockidx!=blocklim;
873
873
++blockidx)
874
- newblock.move (to_code ( this_block_children[blockidx]) );
874
+ newblock.move (this_block_children[blockidx]);
875
875
876
876
// Relabel the inner header:
877
- to_code_label (to_code ( newblock.operands ()[0 ]) ).set_label (new_label_irep);
877
+ to_code_label (newblock.statements ()[0 ]).set_label (new_label_irep);
878
878
// Relabel internal gotos:
879
879
replace_goto_target (newblock, child_label_name, new_label_irep);
880
880
@@ -1761,15 +1761,15 @@ codet java_bytecode_convert_methodt::convert_instructions(
1761
1761
if (last_statement.get_statement ()==ID_goto)
1762
1762
{
1763
1763
// Insert stack twiddling before branch:
1764
- last_statement.make_block ();
1765
- last_statement. operands ().insert (
1766
- last_statement. operands ().begin (),
1767
- more_code.operands ().begin (),
1768
- more_code.operands ().end ());
1764
+ auto &block= last_statement.make_block ();
1765
+ block. statements ().insert (
1766
+ block. statements ().begin (),
1767
+ more_code.statements ().begin (),
1768
+ more_code.statements ().end ());
1769
1769
}
1770
1770
else
1771
- forall_operands (o_it, more_code)
1772
- c. copy_to_operands (*o_it );
1771
+ for ( const auto &m_c_s : more_code. statements () )
1772
+ to_code_block (c). add (m_c_s );
1773
1773
}
1774
1774
}
1775
1775
a_it2->second .stack =stack;
@@ -1843,7 +1843,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1843
1843
1844
1844
if (c.get_statement ()!=ID_skip)
1845
1845
{
1846
- auto &lastlabel=to_code_label (to_code ( root_block.operands ().back () ));
1846
+ auto &lastlabel=to_code_label (root_block.statements ().back ());
1847
1847
auto &add_to_block=to_code_block (lastlabel.code ());
1848
1848
add_to_block.add (c);
1849
1849
}
@@ -1907,11 +1907,11 @@ codet java_bytecode_convert_methodt::convert_instructions(
1907
1907
v.start_pc +v.length ,
1908
1908
std::numeric_limits<unsigned >::max ());
1909
1909
code_declt d (v.symbol_expr );
1910
- block.operands ().insert (block.operands ().begin (), d);
1910
+ block.statements ().insert (block.statements ().begin (), d);
1911
1911
}
1912
1912
1913
- for (auto &block : root_block.operands ())
1914
- code.move (to_code ( block) );
1913
+ for (auto &block : root_block.statements ())
1914
+ code.move (block);
1915
1915
1916
1916
return code;
1917
1917
}
0 commit comments