- let ps = get cache tree parent in
- let fcs = get cache tree fc in
- let nss = get cache tree ns in
- let is_left = node == T.first_child tree parent
- and is_right = node == T.next_sibling tree parent
- and has_left = fc != T.nil
- and has_right = ns != T.nil
- and kind = T.kind tree node
- in
- let config1 =
- Ata.eval_trans auto fcs nss ps config0
- is_left is_right has_left has_right kind
- in
- let () =
- TRACE(
- let config1 = config1.Ata.node in
- Html.trace (T.preorder tree node) _i "Config1<br/>sat: %a<br/>unsat: %a<br/>todo: %a<br/>"
- StateSet.print config1.Ata.sat
- StateSet.print config1.Ata.unsat
- (Ata.TransList.print ~sep:"<br/>") config1.Ata.todo)
- in
- if config0 != config1 then set cache tree node config1;
- let () = loop fc in
- let fcs1 = get cache tree fc in
- let config2 =
- Ata.eval_trans auto
- fcs1 nss ps config1
- is_left is_right has_left has_right kind
- in
- let () =
- TRACE(
- let config2 = config2.Ata.node in
- Html.trace (T.preorder tree node) _i "Config2<br/>sat: %a<br/>unsat: %a<br/>todo: %a<br/>"
- StateSet.print config2.Ata.sat
- StateSet.print config2.Ata.unsat
- (Ata.TransList.print ~sep:"<br/>") config2.Ata.todo)
- in
+ let ps = cache.(T.preorder tree parent) in
+ let fcs = cache.(fc_id) in
+ let nss = cache.(ns_id) in
+ let config1 = Ata.eval_trans auto fcs nss ps config0 in