Coder Social home page Coder Social logo

Soundness failure about bfc HOT 3 CLOSED

wilfred avatar wilfred commented on August 20, 2024
Soundness failure

from bfc.

Comments (3)

Wilfred avatar Wilfred commented on August 20, 2024

The failing test was combine_before_read_is_sound, the placeholder value was Some(0), and the program was:

[PointerIncrement { amount: 82, position: Some(Position { start: 0, end: 0 }) }, Increment { amount: Wrapping(-28), offset: 0, position: Some(Position { start: 0, end: 0 }) }, MultiplyMove { changes: {1: Wrapping(-1)}, position: Some(Position { start: 0, end: 0 }) }, Read { position: Some(Position { start: 0, end: 0 }) }, PointerIncrement { amount: 72, position: Some(Position { start: 0, end: 0 }) }, PointerIncrement { amount: -77, position: Some(Position { start: 0, end: 0 }) }, PointerIncrement { amount: -24, position: Some(Position { start: 0, end: 0 }) }, PointerIncrement { amount: 30, position: Some(Position { start: 0, end: 0 }) }, Loop { body: [Write { position: Some(Position { start: 0, end: 0 }) }, PointerIncrement { amount: 19, position: Some(Position { start: 0, end: 0 }) }, Set { amount: Wrapping(23), offset: 0, position: Some(Position { start: 0, end: 0 }) }, Read { position: Some(Position { start: 0, end: 0 }) }], position: Some(Position { start: 0, end: 0 }) }]

from bfc.

Wilfred avatar Wilfred commented on August 20, 2024

Oddly, the test on Traivs failed with 'Different outputs!', whereas my quick and dirty failing test is giving 'Optimised program did not terminate properly':

#[test]
fn combine_before_read_sound_foo() {
    let mut changes = HashMap::new();
    changes.insert(1, Wrapping(-1));
    let instrs = vec![PointerIncrement { amount: 82, position: Some(Position { start: 0, end: 0 }) },
                  Increment { amount: Wrapping(-28), offset: 0, position: Some(Position { start: 0, end: 0 }) },
                  MultiplyMove { changes: changes, position: Some(Position { start: 0, end: 0 }) },
                  Read { position: Some(Position { start: 0, end: 0 }) },
                  PointerIncrement { amount: 72, position: Some(Position { start: 0, end: 0 }) },
                  PointerIncrement { amount: -77, position: Some(Position { start: 0, end: 0 }) },
                  PointerIncrement { amount: -24, position: Some(Position { start: 0, end: 0 }) },
                  PointerIncrement { amount: 30, position: Some(Position { start: 0, end: 0 }) },
                  Loop { body:
                         vec![Write { position: Some(Position { start: 0, end: 0 }) },
                              PointerIncrement { amount: 19, position: Some(Position { start: 0, end: 0 }) },
                              Set { amount: Wrapping(23), offset: 0, position: Some(Position { start: 0, end: 0 }) },
                              Read { position: Some(Position { start: 0, end: 0 }) }],
                         position: Some(Position { start: 0, end: 0 }) }];


    assert!(!transform_is_sound(instrs, combine_before_read, false, Some(0)).is_failure());
}

from bfc.

Wilfred avatar Wilfred commented on August 20, 2024

The build in question was job #55 and I've attached the log in case Travis discards old logs.

log.txt

from bfc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.