File: main.v

package info (click to toggle)
coq-simple-io 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: ml: 273; makefile: 66
file content (22 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From Coq Require Import
     extraction.ExtrOcamlIntConv.

From SimpleIO Require Import
  SimpleIO
  IO_Sys.
Import IO.Notations.

(* begin hide *)
Set Warnings "-extraction-opaque-accessed,-extraction".
(* end hide *)

(* This test returns the number of arguments on the command line *)

Definition f : IO unit :=
  args <- OSys.argv ;;
  print_int (int_of_nat (length args)) ;;
  print_newline.

Definition y0 : io_unit := IO.unsafe_run f.

Separate Extraction y0.