Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  debugger_visualizer.rs

  Sprache: Rust
 

use debugger_test::debugger_test;
use smallvec::{smallvec, SmallVec};

#[inline(never)]
fn __break() {}

#[debugger_test(
    debugger = "cdb",
    commands = r#"
.nvlist
dx sv

g

dx sv

g

dx sv
"#,
    expected_statements = r#"
sv               : { len=0x2 is_inline=true } [Type: smallvec::SmallVec<array$<i32,4> >]
    [<Raw View>]     [Type: smallvec::SmallVec<array$<i32,4> >]
    [capacity]       : 4
    [len]            : 0x2 [Type: unsigned __int64]
    [0]              : 1 [Type: int]
    [1]              : 2 [Type: int]

sv               : { len=0x5 is_inline=false } [Type: smallvec::SmallVec<array$<i32,4> >]
    [<Raw View>]     [Type: smallvec::SmallVec<array$<i32,4> >]
    [capacity]       : 0x8 [Type: unsigned __int64]
    [len]            : 0x5 [Type: unsigned __int64]
    [0]              : 5 [Type: int]
    [1]              : 2 [Type: int]
    [2]              : 3 [Type: int]
    [3]              : 4 [Type: int]
    [4]              : 5 [Type: int]

sv               : { len=0x5 is_inline=false } [Type: smallvec::SmallVec<array$<i32,4> >]
    [<Raw View>]     [Type: smallvec::SmallVec<array$<i32,4> >]
    [capacity]       : 0x8 [Type: unsigned __int64]
    [len]            : 0x5 [Type: unsigned __int64]
    [0]              : 2 [Type: int]
    [1]              : 3 [Type: int]
    [2]              : 4 [Type: int]
    [3]              : 5 [Type: int]
    [4]              : 5 [Type: int]
"#
)]
#[inline(never)]
fn test_debugger_visualizer() {
    // This SmallVec can hold up to 4 items on the stack:
    let mut sv: SmallVec<[i32; 4]> = smallvec![12];
    __break();

    // Overfill the SmallVec to move its contents to the heap
    for i in 3..6 {
        sv.push(i);
    }

    // Update the contents of the first value of the SmallVec.
    sv[0] = sv[1] + sv[2];
    __break();

    // Sort the SmallVec in place.
    sv.sort();
    __break();
}

Messung V0.5 in Prozent
C=97 H=85 G=91

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-23) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik