-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
145 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// author: Kevin Laeufer <[email protected]> | ||
|
||
use crate::ir::*; | ||
use crate::sim::{Value, ValueStore}; | ||
use crate::sim::{ScalarValue, ValueStore}; | ||
|
||
/// Specifies how to initialize states that do not have | ||
#[derive(Debug, PartialEq, Copy, Clone)] | ||
|
@@ -20,7 +20,7 @@ pub trait Simulator { | |
fn step(&mut self); | ||
|
||
/// Change the value of an input | ||
fn set_input(&mut self, input_id: usize, value: Value); | ||
fn set_input(&mut self, input_id: usize, value: ScalarValue); | ||
} | ||
|
||
/// Interpreter based simulator for a transition system. | ||
|
@@ -66,7 +66,7 @@ impl<'a> Simulator for Interpreter<'a> { | |
todo!() | ||
} | ||
|
||
fn set_input(&mut self, input_id: usize, value: Value) { | ||
fn set_input(&mut self, input_id: usize, value: ScalarValue) { | ||
todo!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ mod values; | |
// author: Kevin Laeufer <[email protected]> | ||
pub mod interpreter; | ||
|
||
pub use values::{Value, ValueRef, ValueStore, Witness}; | ||
pub use values::{ScalarValue, ScalarValueRef, ValueStore, Witness}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters