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


Quelle  bug1837686.js   Sprache: JAVA

 

// A bug in Ion's alias analysis was causing the two `global.get 0`s
// to be GVNd together, despite the fact that the call inside the try
// block changes the value.  In this case, this caused the returned
// value to be 7 rather than the correct value 5.

const wasm = wasmTextToBinary(`(module
  (global $g (mut i32) (i32.const 0))
  (func $f0
      i32.const 1
      global.set 0
  )
  (func $f1 (param i32) (param i32) (result i32)
    global.get 0

    i32.eqz
    if
      local.get 0
      i32.const 1
      i32.or
      local.set 0
    end

    try
        call $f0

        global.get 0
        i32.eqz
        if
            local.get 0
        i32.const 2
        i32.or
        local.set 0
        end
    catch_all
        i32.const 15
        local.set 0
    end
    local.get 0
)
  (func (export "test") (result i32)
    i32.const 4
    i32.const 0
    call $f1
  )
)`);

const mod = new WebAssembly.Module(wasm);
const ins = new WebAssembly.Instance(mod);
assertEq(ins.exports.test(), 5);

Messung V0.5
C=90 H=98 G=94

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge