Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_stored_conditions.c
          +++ new/usr/src/tools/smatch/src/smatch_stored_conditions.c
↓ open down ↓ 230 lines elided ↑ open up ↑
 231  231  
 232  232          state = get_state_expr(link_id, expr);
 233  233          if (!state)
 234  234                  return NULL;
 235  235          return state->data;
 236  236  }
 237  237  
 238  238  void register_stored_conditions(int id)
 239  239  {
 240  240          my_id = id;
      241 +        set_dynamic_states(my_id);
 241  242  }
 242  243  
 243  244  void register_stored_conditions_links(int id)
 244  245  {
 245  246          link_id = id;
      247 +        db_ignore_states(link_id);
      248 +        set_dynamic_states(link_id);
 246  249          add_merge_hook(link_id, &merge_links);
 247  250          add_modification_hook(link_id, &match_link_modify);
 248  251  }
 249  252  
 250  253  #define RECURSE_LIMIT 50
 251  254  
 252  255  static void filter_by_sm(struct sm_state *sm,
 253  256                         struct state_list **true_stack,
 254  257                         struct state_list **false_stack,
 255  258                         int *recurse_cnt)
↓ open down ↓ 65 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX