Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckIntegrity (0.22 sec)

  1. src/cmd/compile/internal/ssa/poset.go

    		po.noneq[i1] = bs
    	} else if bs.Test(i2) {
    		// Already recorded
    		return
    	}
    	bs.Set(i2)
    	po.upushneq(i1, i2)
    }
    
    // CheckIntegrity verifies internal integrity of a poset. It is intended
    // for debugging purposes.
    func (po *poset) CheckIntegrity() {
    	// Record which index is a constant
    	constants := newBitset(int(po.lastidx + 1))
    	for _, c := range po.constants {
    		constants.Set(c)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/poset_test.go

    			t.Log("Undo stack", po.undo)
    			po.Undo()
    		default:
    			panic("unimplemented")
    		}
    
    		if false {
    			po.DotDump(fmt.Sprintf("op%d.dot", idx), fmt.Sprintf("Last op: %v", op))
    		}
    
    		po.CheckIntegrity()
    	}
    
    	// Check that the poset is completely empty
    	if err := po.CheckEmpty(); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestPoset(t *testing.T) {
    	testPosetOps(t, false, []posetTestOp{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 26 07:52:35 UTC 2019
    - 18.1K bytes
    - Viewed (0)
Back to top