mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-15 22:48:45 +00:00
Merge remote-tracking branch 'upstream/main'
This commit is contained in:
4
.github/workflows/rustdoc.yaml
vendored
4
.github/workflows/rustdoc.yaml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
- name: Install Rustup
|
- name: Install Rustup
|
||||||
run: if ! command -v rustup &>/dev/null; then (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y); fi
|
run: if ! command -v rustup &>/dev/null; then (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y); fi
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
run: source "$HOME/.cargo/env"; cargo doc --all
|
run: source "$HOME/.cargo/env"; cargo doc --all
|
||||||
|
|
||||||
- name: Deploy Docs
|
- name: Deploy Docs
|
||||||
uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
|
uses: peaceiris/actions-gh-pages@v4.0.0
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
* You may use [Why3 in your browser](https://www.why3.org/try/).
|
* You may use [Why3 in your browser](https://www.why3.org/try/).
|
||||||
* Clicking `Verify` button at the top will open a panel on the right side.
|
* Clicking `Verify` button at the top will open a panel on the right side.
|
||||||
* For each task in the panel (e.g. `loop invariant preservation`), you can right-click it and run the prover.
|
* For each task in the panel (e.g. `loop invariant preservation`), you can right-click it and run the prover.
|
||||||
|
* Important: The prover might not be able to verify the correct solution if the number of steps is too small. Make sure to test with 1000~5000 steps.
|
||||||
* Fill in `TODO`s until the prover can verify all tasks, notified with green check-marks.
|
* Fill in `TODO`s until the prover can verify all tasks, notified with green check-marks.
|
||||||
|
|
||||||
* To submit your solution, run `./scripts/submit.sh` and submit `assignment05.zip` in the `target` directory to gg.
|
* To submit your solution, run `./scripts/submit.sh` and submit `assignment05.zip` in the `target` directory to gg.
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ use std::ops::*;
|
|||||||
///
|
///
|
||||||
/// The `sign_extension()`, `two_complement()`, and `truncate()` are non-mandatory helper methods.
|
/// The `sign_extension()`, `two_complement()`, and `truncate()` are non-mandatory helper methods.
|
||||||
///
|
///
|
||||||
/// For testing and debugging pruposes, the `Display` trait is implemented for you, which shows the
|
/// For testing and debugging purposes, the `Display` trait is implemented for you, which shows the
|
||||||
/// integer in hexadecimal form.
|
/// integer in hexadecimal form.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct BigInt {
|
pub struct BigInt {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use itertools::Itertools;
|
|||||||
///
|
///
|
||||||
/// Returns `true` if the length of sequence is less or equal than 2.
|
/// Returns `true` if the length of sequence is less or equal than 2.
|
||||||
///
|
///
|
||||||
/// # Exmample
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use cs220::assignments::assignment09::small_exercises::*;
|
/// use cs220::assignments::assignment09::small_exercises::*;
|
||||||
|
|||||||
Reference in New Issue
Block a user