Skip to content

Commit

Permalink
Merge branch 'main' of github.com:babaeee/hakim into mz3
Browse files Browse the repository at this point in the history
  • Loading branch information
arshiamoeini committed Feb 2, 2024
2 parents 3f1ef22 + 3ff789b commit c789f98
Show file tree
Hide file tree
Showing 10 changed files with 293 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ flamegraph.svg
.z3-trace
hakim_log*
node_modules
ignore
203 changes: 188 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion front/src/components/proof/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import css from "./toolbar.module.css";
import logo from "../../logo.png"
import { flip, offset, shift, useFloating } from '@floating-ui/react-dom';
import { getDevState } from "../../dev_mode";
import { useAutoProofState } from "../../dev_mode/auto_proof_state";

export const ToolButton = ({ label, onClick }: { label: string, onClick: any }) => {
return (
Expand Down Expand Up @@ -111,10 +112,11 @@ const AutoProofButton = () => {
};

export const Toolbar = () => {
const autoState = useAutoProofState();
return (
<div className={css.toolContain}>
<ToolButton onClick={newAssert} label={g`new_assertion`} />
<AutoProofButton />
{autoState && <AutoProofButton />}
{
getDevState() === "debug" && <ToolButton onClick={() => {
const tactic = window.prompt(g`enter_tactic`);
Expand Down
Loading

0 comments on commit c789f98

Please sign in to comment.