Skip to content

Commit

Permalink
update clap
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrakananandi committed Jan 31, 2022
1 parent 62bca57 commit 7a04933
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ libm = "0.2.1"
float-cmp = "0.8.0"
lazy_static = "1.4.0"
itertools = "0.9.0"
clap = "3.0.0-beta.2"
clap = { version = "3.0.7", features = ["derive"] }
#clap = "3.0.0-beta.2"
z3 = {version="0.10.0", features = ["static-link-z3"]}
# z3 = {version="0.10.0"}
rustc-hash = "1"
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ It uses equality saturation in two novel ways to scale the rule synthesis:
currently in the ruleset.
!*/
use clap::Clap;
use clap::Parser;
use egg::*;
use rand::SeedableRng;
use rand_pcg::Pcg64;
Expand Down Expand Up @@ -633,7 +633,7 @@ struct SlimReport<L: SynthLanguage> {
}

/// All parameters for rule synthesis.
#[derive(Clap, Deserialize, Serialize)]
#[derive(Parser, Deserialize, Serialize)]
#[clap(rename_all = "kebab-case")]
pub struct SynthParams {
/// Seed for random number generator, used for random cvec value generation
Expand Down Expand Up @@ -723,7 +723,7 @@ pub struct SynthParams {
}

/// Derivability report.
#[derive(Clap)]
#[derive(Parser)]
#[clap(rename_all = "kebab-case")]
pub struct DeriveParams {
in1: String,
Expand All @@ -734,7 +734,7 @@ pub struct DeriveParams {
}

/// Report for rules generated by CVC4.
#[derive(Clap)]
#[derive(Parser)]
#[clap(rename_all = "kebab-case")]
pub struct ConvertParams {
cvc_log: String,
Expand All @@ -743,7 +743,7 @@ pub struct ConvertParams {

/// Ruler can be run to synthesize rules, compare two rulesets
/// for derivability, and convert CVC4 rewrites to patterns in Ruler.
#[derive(Clap)]
#[derive(Parser)]
#[clap(rename_all = "kebab-case")]
pub enum Command {
Synth(SynthParams),
Expand Down

0 comments on commit 7a04933

Please sign in to comment.